Skip to content

Commit

Permalink
fix quotes in NAMESPACE
Browse files Browse the repository at this point in the history
  • Loading branch information
sneumann committed Jan 30, 2025
2 parents 211b2f6 + b678591 commit 0a349b9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ importFrom("stats", "as.dendrogram", "cor", "dendrapply", "dist",
importFrom("utils", "flush.console", "read.table")


importFrom("SummarizedExperiment","colData")
importFrom("SummarizedExperiment","rowData", "rowData<-")
importFrom("SummarizedExperiment","assay")
importFrom(SummarizedExperiment,colData)
importFrom("SummarizedExperiment","rowData","rowData<-")
importFrom(SummarizedExperiment,assay)
3 changes: 2 additions & 1 deletion R/DataProcessing.R
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,8 @@ getMS2spectrumInfoForCluster <- function(dataList, clusterDataList, treeLabel){
#fragmentsX <- dataList$fragmentMasses[featuresIntersection]
#fragmentsY <- apply(X = data.numericmatrix(dataList$featureMatrix[clusterMembersPrecursors, featuresIntersection]), MARGIN = 2, FUN = mean)
fragmentsX <- dataList$fragmentMasses[featuresUnion]
fragmentsY <- apply(X = data.numericmatrix(dataList$featureMatrix[clusterMembersPrecursors, featuresUnion]), MARGIN = 2, FUN = mean)
#fragmentsY <- apply(X = data.numericmatrix(dataList$featureMatrix[clusterMembersPrecursors, featuresUnion]), MARGIN = 2, FUN = mean)
fragmentsY <- apply( X = data.matrix(dataList$featureMatrix[clusterMembersPrecursors, featuresUnion, drop = FALSE]), MARGIN = 2, FUN = mean )

selectedPositive <- clusterDataList$innerNodeFeaturesCountsMatrix[clusterIndex, featuresUnion]
coverageSelected <- selectedPositive / numberOfClusterMembers
Expand Down
3 changes: 2 additions & 1 deletion R/parsePeakAbundanceMatrixQF.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ parsePeakAbundanceMatrixQF <- function(qfeatures,
dataFrame <- cbind(rowData(qfeatures)[[1]][,cols_to_keep] ,assay(qfeatures))
#workaround for avoiding change in colnames during coercion
cnames <- colnames(dataFrame)
dataFrame <- as.data.frame(dataFrame, check.names = FALSE)
dataFrame <- as.data.frame(dataFrame)
colnames(dataFrame) <- cnames
oldFormat <- ncol(colData(qfeatures))==3
numRowDataCols <- ncol(rowData(qfeatures)[[1]])
Expand Down Expand Up @@ -194,6 +194,7 @@ parsePeakAbundanceMatrixQF <- function(qfeatures,
#' @importFrom SummarizedExperiment rowData
#' @importFrom SummarizedExperiment rowData<-
#' @export
#' @importFrom SummarizedExperiment rowData<-
#'
#' @examples
addSiriusAnnotations <- function(qfeatures,
Expand Down
10 changes: 5 additions & 5 deletions vignettes/discoveringregulatedmetabolitefamilies.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pcaDimensionTwo <<- 2
resultObj <- calcPlotPCAscores(
pcaObj = pca,
dataList = project,
dataList = dataList, #project,
filterObj = filterObj,
pcaDimensionOne = pcaDimensionOne,
pcaDimensionTwo = pcaDimensionTwo,
Expand All @@ -108,7 +108,7 @@ pcaDimensionTwo <<- 2
resultObj <- calcPlotPCAloadings(
pcaObj = pca,
dataList = project,
dataList = dataList, #project,
filter = filterObj,
pcaDimensionOne = pcaDimensionOne,
pcaDimensionTwo = pcaDimensionTwo,
Expand Down Expand Up @@ -136,9 +136,9 @@ HCA on MS2 in Figure \@ref(fig:hca).
```{r hca, fig.cap="HCA on MS2.", echo=FALSE}
if (FALSE) {
p <- calcPlotDendrogram_plotly(dataList=project,
p <- calcPlotDendrogram_plotly(dataList=dataList, #project,
filterObj=filterObj,
clusterDataList=project,
clusterDataList=dataList, #project,
distanceMeasure = "Jaccard",
showClusterLabels=FALSE,
hcaPrecursorLabels="m/z / RT",
Expand All @@ -156,7 +156,7 @@ load(fileName)
fileName <- system.file("extdata/testdata/hcaFilter.Rdata", package = "MetFamily")
load(fileName)
returnObj <- calcPlotDendrogram(dataList=project,
returnObj <- calcPlotDendrogram(dataList=dataList, #project,
filter=filter,
clusterDataList=clusterDataList,
annoPresentAnnotationsList = annoPresentAnnotationsList ,
Expand Down

0 comments on commit 0a349b9

Please sign in to comment.