Skip to content

Commit

Permalink
Fixed normalization function to return back into tempSCE, and updated…
Browse files Browse the repository at this point in the history
… function documentation
  • Loading branch information
Akshay Aravind committed Oct 7, 2023
1 parent 61da00f commit 7990962
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion R/plotBubble.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' @param ylab The y-axis label
#' @param colorLow The color to be used for lowest value of mean expression
#' @param colorHigh The color to be used for highest value of mean expression
#' @param scale Option to scale the data
#' @param scale Option to scale the data. Default: /code{FALSE}. Selected assay will not be scaled.
#' @return A ggplot of the bubble plot.
#' @importFrom rlang .data
#' @importFrom reshape2 melt
Expand Down
6 changes: 3 additions & 3 deletions R/runClusterSummaryMetrics.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' @param featureNames A string or vector of strings with each gene to aggregate.
#' @param displayName A string that is the name of the column used for genes.
#' @param groupNames The name of a colData entry that can be used as groupNames.
#' @param scale Option to scale the data
#' @param scale Option to scale the data. Default: /code{FALSE}. Selected assay will not be scaled.
#' @return A dataframe with mean expression and percent of cells in cluster that
#' express for each cluster.
#' @examples
Expand Down Expand Up @@ -48,9 +48,9 @@ runClusterSummaryMetrics <- function(inSCE, useAssay="logcounts", featureNames,


if(isTRUE(scale)){
runNormalization(inSCE=tempSCE, useAssay=useAssay,scale = TRUE, normalizationMethod = NULL, transformation = NULL,
tempSCE <- runNormalization(inSCE=tempSCE, outAssayName = "scaled", useAssay=useAssay,scale = TRUE, normalizationMethod = NULL, transformation = NULL,
pseudocountsBeforeNorm = NULL, pseudocountsBeforeTransform = NULL)
useAssay <- "counts"
useAssay <- "scaled"
}

avgExpr <- assay(scuttle::aggregateAcrossCells(tempSCE, ids=SingleCellExperiment::colData(inSCE)[,groupNames],
Expand Down
2 changes: 1 addition & 1 deletion man/plotBubble.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/runClusterSummaryMetrics.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7990962

Please sign in to comment.