View source: R/cloneArborescence.R
cloneArborescence | R Documentation |
Function to calculate the arborescence for a fully connected graph of B cell clone members.
cloneArborescence(
clone,
cloneID,
columnSeqID,
columnSubclass,
tree,
outputFolder,
plotFormat = "png",
colourSpecification = list(colours = list(M = "#FF0000", IgA1 = "#9999CF", IgA2 =
"#000088", IgG1 = "#326600", IgG2 = "#58B200", IgG3 = "#8BFF19", IgG4 = "#CBFF99"),
germlineColour = "#AAAAAA")
)
clone |
Matrix / data frame holding the clone information. |
cloneID |
Identifier of clone. |
columnSeqID |
Name of the column holding the ID of the observation. |
columnSubclass |
Name of the column holding the isotype subclass (see manual page of function getArborescence for a list of allowed levels in this column). |
tree |
Character, filename of the phylogenetic tree. |
outputFolder |
Folder, where the arborescence data and plot are to be stored. |
plotFormat |
Either 'png' or 'pdf'. (default: 'png') |
colourSpecification |
List of colours, a meaningful default is set. |
A list with the following elements:
igraph
object holding the arborescence tree.
A data.frame object holding the edgelist of the arborescence tree.
ggplot
object of a lineage plot where sequences are ordered by their distance from the germline and coloured by isotypes. See vignette for more details.
data.frame showing edges in the tree which switches isotype, and an estimated distance-from-germline of this switching event. This is defaulted as the mean distance-from-germline of the two nodes connected by the said edge.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.