Description Usage Arguments Value Author(s) See Also Examples
View source: R/countsSampling.R
This function is used to downsample the read counts in a cell for single-cell RNA-seq (scRNA-seq) data. It takes a non-negative vector of scRNA-seq raw read counts of a cell as input.
1 | countsSampling(counts, fraction = 0.1)
|
counts |
A cell's raw read counts for each gene, could be a vector or a SingleCellExperiment object. |
fraction |
Fraction of reads to be downsampled, should be between 0-1, default is 0.1. |
A vector of the downsampled read counts of each gene in the cell.
Zhun Miao.
scRecover
, for imputation of single-cell RNA-seq data.
estDropoutNum
, for estimating dropout gene number in a cell.
normalization
, for normalization of single-cell RNA-seq data.
scRecoverTest
, a test dataset for scRecover.
1 2 3 4 5 | # Load test data
data(scRecoverTest)
# Downsample the read counts in oneCell
oneCell.down <- countsSampling(counts = oneCell, fraction = 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.