summarizeClonotypes | R Documentation |
Takes a matrix of cell-level clonotype counts and sums them within groups (typically samples).
summarizeClonotypes(x, by, ...)
## S4 method for signature 'Matrix'
summarizeClonotypes(
x,
by,
mode = c("sum", "tab"),
lang = c("r", "cpp"),
BPPARAM = SerialParam()
)
## S4 method for signature 'SingleCellExperiment'
summarizeClonotypes(
x,
by = "sample",
contigs = "contigs",
clonoStats = "clonoStats",
...
)
## S4 method for signature 'matrix'
summarizeClonotypes(x, by, ...)
## S4 method for signature 'clonoStats'
summarizeClonotypes(x, by, ...)
x |
A (usually sparse) matrix of cell-level clonotype counts (cells are
rows and clonotypes are columns). Alternatively, a
|
by |
A character vector or factor by which to summarize the clonotype
counts. If |
... |
additional arguments. |
mode |
Type of summarization to perform. Default is |
lang |
Indicates which implementation of the |
BPPARAM |
A BiocParallelParam object specifying the
parallel backend for distributed clonotype assignment operations (split by
|
contigs |
character. If |
clonoStats |
character. If |
If mode = 'sum'
, returns a matrix clonotype abundances where
each row corresponds to a clonotype and each column a value of by
(if by
denotes sample labels, this is a matrix of sample-level
clonotype counts). If mode = 'tab'
, returns a matrix of clonotype
frequencies, where each row corresponds to a frequency (singletons,
doubletons, etc.) and each column a value of by
.
example(addVDJtoSCE)
x <- clonoStats(contigs, assignment = TRUE)
summarizeClonotypes(x, by = sce$sample)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.