Skip to content

Commit

Permalink
update namespace for some imported functions which moved
Browse files Browse the repository at this point in the history
  • Loading branch information
d-callan committed Mar 27, 2024
1 parent 9a362a1 commit c6e4ec1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ importFrom(igraph,graph_from_data_frame)
importFrom(microbiomeComputations,DifferentialAbundanceResult)
importFrom(microbiomeComputations,alphaDiv)
importFrom(microbiomeComputations,betaDiv)
importFrom(microbiomeComputations,correlation)
importFrom(microbiomeComputations,differentialAbundance)
importFrom(microbiomeComputations,rankedAbundance)
importFrom(microbiomeComputations,selfCorrelation)
Expand Down Expand Up @@ -69,10 +68,11 @@ importFrom(microbiomeData,getCollection)
importFrom(microbiomeData,getCollectionNames)
importFrom(microbiomeData,getMetadataVariableNames)
importFrom(microbiomeData,getSampleMetadata)
importFrom(microbiomeData,getSampleMetadataIdColumns)
importFrom(microbiomeData,updateCollectionName)
importFrom(veupathUtils,ComputeResult)
importFrom(veupathUtils,CorrelationResult)
importFrom(veupathUtils,correlation)
importFrom(veupathUtils,getSampleMetadata)
importFrom(veupathUtils,getSampleMetadataIdColumns)
importFrom(veupathUtils,matchArg)
importFrom(veupathUtils,selfCorrelation)
1 change: 0 additions & 1 deletion R/computes.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ microbiomeComputations::betaDiv
microbiomeComputations::differentialAbundance

#' @importFrom veupathUtils correlation
#' @importFrom microbiomeComputations correlation
#' @export
veupathUtils::correlation

Expand Down
8 changes: 4 additions & 4 deletions R/methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ setMethod("getComputeResult", "DifferentialAbundanceResult", function(object, fo
return(data.table::setDT(object@statistics))
})

#' @importFrom microbiomeData getSampleMetadata
#' @importFrom microbiomeData getSampleMetadataIdColumns
#' @importFrom veupathUtils getSampleMetadata
#' @importFrom veupathUtils getSampleMetadataIdColumns
mergeComputeResultAndMetadata <- function(computeResult, dataset, metadataVariables) {
dt <- getComputeResult(computeResult, "data.table")
metadata <- microbiomeData::getSampleMetadata(dataset, includeIds = TRUE, metadataVariables = metadataVariables)
metadata <- veupathUtils::getSampleMetadata(dataset, includeIds = TRUE, metadataVariables = metadataVariables)

metadataIdColumns <- microbiomeData::getSampleMetadataIdColumns(dataset)
metadataIdColumns <- veupathUtils::getSampleMetadataIdColumns(dataset)
dt <- merge(dt, metadata, by = metadataIdColumns, all.x = TRUE)

return(dt)
Expand Down

0 comments on commit c6e4ec1

Please sign in to comment.