Skip to content

Commit

Permalink
fill computationDetails for correlation compute results
Browse files Browse the repository at this point in the history
  • Loading branch information
d-callan committed Mar 18, 2024
1 parent 293bafb commit 310ae90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/method-correlation.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function(data1, data2, method = c('spearman','pearson'), format = c('ComputeRes
return(corrResult)
} else {
result <- veupathUtils::buildCorrelationComputeResult(corrResult, data1, data1@sampleMetadata, method, verbose)
result@computationDetails <- 'correlation'
return(result)
}
})
Expand Down Expand Up @@ -84,6 +85,7 @@ function(data, method = c('spearman','pearson','sparcc'), format = c('ComputeRes
return(corrResult)
} else {
result <- veupathUtils::buildCorrelationComputeResult(corrResult, data, NULL, method, verbose)
result@computationDetails <- 'selfCorrelation'
return(result)
}
})
Expand All @@ -105,6 +107,7 @@ function(data, method = c('spearman','pearson','sparcc'), format = c('ComputeRes
return(corrResult)
} else {
result <- veupathUtils::buildCorrelationComputeResult(corrResult, data, NULL, method, verbose)
result@computationDetails <- 'selfCorrelation'
return(result)
}
})
Expand Down Expand Up @@ -153,6 +156,7 @@ function(data1, data2, method = c('spearman','pearson'), format = c('ComputeResu
return(corrResult)
} else {
result <- veupathUtils::buildCorrelationComputeResult(corrResult, data1, data2, method, verbose)
result@computationDetails <- 'correlation'
return(result)
}
})

0 comments on commit 310ae90

Please sign in to comment.