R/scanpyFunctions.R
runScanpyNormalizeData.Rd
runScanpyNormalizeData Wrapper for NormalizeData() function from scanpy library Normalizes the sce object according to the input parameters
runScanpyNormalizeData(
inSCE,
useAssay,
targetSum = 10000,
maxFraction = 0.05,
normAssayName = "scanpyNormData"
)
(sce) object to normalize
Assay containing raw counts to use for normalization.
If NULL, after normalization, each observation (cell) has a
total count equal to the median of total counts for observations (cells)
before normalization. Default 1e4
Include cells that have more counts than max_fraction of
the original total counts in at least one cell. Default 0.05
Name of new assay containing normalized data. Default
scanpyNormData
.
Normalized SingleCellExperiment
object
data(scExample, package = "singleCellTK")
sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'")
rownames(sce) <- rowData(sce)$feature_name
if (FALSE) {
sce <- runScanpyNormalizeData(sce, useAssay = "counts")
}