View source: R/Af_compare_across_repertoires.R
Af_compare_across_repertoires | R Documentation |
Compare tree topology metrics across different (groups) of AntibodyForests objects.
Af_compare_across_repertoires(
AntibodyForests_list,
metrics,
plot,
text.size,
colors,
significance,
parallel,
num.cores
)
AntibodyForests_list |
A list of AntibodyForests objects to compare. |
metrics |
Which metrics to use for comparison. Options are: . betweenness : The number of shortest paths that pass through each node (Default) . degree : The number of edges connected to each node (Default) 'nr.nodes' : The total number of nodes 'nr.cells' : The total number of cells in this clonotype 'mean.depth' : Mean of the number of edges connecting each node to the germline 'mean.edge.length' : Mean of the edge lengths between each node and the germline 'sackin.index' : Sum of the number of nodes between each terminal node and the germline, normalized by the number of terminal nodes 'spectral.density' : Metrics of the spectral density profiles (calculated with package RPANDA)
|
plot |
What kind of plot to make. boxplot (default) freqpoly |
text.size |
Font size in the plot (default 20). |
colors |
Optionally specific colors for the groups. If not provided, the default ggplot2 colors are used. |
significance |
If TRUE, the significance of a T test between the groups is plotted in the boxplot (default FALSE) |
parallel |
If TRUE, the metric calculations are parallelized (default FALSE) |
num.cores |
Number of cores to be used when parallel = TRUE. (Defaults to all available cores - 1) |
Plots to compare the repertoires on the supplied metrics.
boxplots <- Af_compare_across_repertoires(list("S1" = AntibodyForests::small_af[1],
"S2" = AntibodyForests::small_af[2]),
metrics = c("betweenness", "degree"),
plot = "boxplot")
boxplots$betweenness
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.