Skip to content

Commit

Permalink
fix hca and other warning
Browse files Browse the repository at this point in the history
  • Loading branch information
NorStorz committed Nov 12, 2024
1 parent 262bb3f commit 4e82129
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
2 changes: 1 addition & 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

0 comments on commit 4e82129

Please sign in to comment.