View source: R/get_clone_sizes.R
countCloneSizes | R Documentation |
Get clonotype frequencies from a seurat object's metadata, either as one
whole table, or in a list of tables, based on the current / some custom
ident of each cell. Note that depending on the ident (indicated by the
by_cluster
argument) there may be more or less clonotypes counted based
on the number of rows containing NA for that column of that ident if it
isn't the active ident.
countCloneSizes(
seurat_obj,
clonecall = "strict",
extra_filter = NULL,
...,
by_cluster = TRUE,
sort_decreasing = NULL
)
seurat_obj |
a seurat object combined with a VDJ library with
|
clonecall |
character. The column name in the seurat object metadata to
use. See |
extra_filter |
character. An additional string that should be formatted
exactly like a statement one would pass into dplyr::filter that does
additional filtering to cells in the seurat object - on top of the other
keyword arguments - based on the metadata. This means that it will be
logically AND'ed with any keyword argument filters. This is a more flexible
alternative / addition to the filtering keyword arguments. For example, if
one wanted to filter by the length of the amino acid sequence of TCRs, one
could pass in something like |
... |
additional "subsetting" keyword arguments indicating the rows
corresponding to elements in the seurat object metadata that should be
filtered by. E.g., |
by_cluster |
Logical or Character. If |
sort_decreasing |
a logical or NULL. If |
A list of tables or a single table depending on by_cluster
mergeCloneSizes
data("combined_pbmc")
countCloneSizes(combined_pbmc)
countCloneSizes(combined_pbmc, "aa")
countCloneSizes(combined_pbmc, "nt", orig.ident = c("P17B", "P17L"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.