cleanCounts | R Documentation |
Filter a counts matrix based on gene (row) and cell (column) requirements.
cleanCounts(
counts,
min.lib.size = 1,
max.lib.size = Inf,
min.reads = 1,
min.detected = 1,
verbose = FALSE,
plot = FALSE
)
counts |
A sparse read count matrix. The rows correspond to genes, columns correspond to individual cells |
min.lib.size |
Minimum number of genes detected in a cell. Cells with fewer genes will be removed (default: 1) |
max.lib.size |
Maximum number of genes detected in a cell. Cells with more genes will be removed (default: Inf) |
min.reads |
Minimum number of reads per gene. Genes with fewer reads will be removed (default: 1) |
min.detected |
Minimum number of cells a gene must be seen in. Genes not seen in a sufficient number of cells will be removed (default: 1) |
verbose |
Verbosity (default: FALSE) |
plot |
Whether to plot (default: FALSE) |
a filtered read count matrix
data(mOB)
counts <- cleanCounts(mOB$counts, min.lib.size = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.