Description Usage Arguments Value Examples
View source: R/clonalHomeostasis.R
This function calculates the space occupied by clonotype proportions. The grouping of these clonotypes is based on the parameter cloneTypes, at default, cloneTypes will group the clonotypes into bins of Rare = 0 to 0.0001, Small = 0.0001 to 0.001, etc. To adjust the proportions, change the number or labeling of the cloneTypes paramter. If a matrix output for the data is preferred, set exportTable = TRUE.
1 2 3 4 5 6 7 | clonalHomeostasis(
df,
cloneTypes = c(Rare = 1e-04, Small = 0.001, Medium = 0.01, Large = 0.1, Hyperexpanded
= 1),
cloneCall = "gene+nt",
exportTable = FALSE
)
|
df |
The product of CombineContig() or expression2List() |
cloneTypes |
The cutpoints of the proportions. |
cloneCall |
How to call the clonotype - CDR3 gene (gene), CDR3 nucleotide (nt) or CDR3 amino acid (aa), or CDR3 gene+nucleotide (gene+nt). |
exportTable |
Exports a table of the data into the global environment in addition to the visualization |
ggplot of the space occupied by the specific propotion of clonotypes
1 2 3 4 5 | #Making combined contig data
x <- contig_list
combined <- combineTCR(x, rep(c("PX", "PY", "PZ"), each=2),
rep(c("P", "T"), 3), cells ="T-AB")
clonalHomeostasis(combined, cloneCall = "gene")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.