Description Usage Arguments Details Value See Also Examples
View source: R/chordDiagramVDJ.R
Creates a chord diagram showing VJ or DJ gene associations from one or more samples.
1 | chordDiagramVDJ(sample, association = "VJ", colors = c("red", "blue"))
|
sample |
A data frame consisting of frequencies of antigen receptor sequences. "vFamilyName", "jFamilyName", and if applicable, "dFamilyName" are a required columns. Using output from the LymphoSeq function topSeqs is recommended. |
association |
A character vector of gene familes to associate. Options include "VJ" or "DJ". |
colors |
A character vector of 2 colors corresponding to the V/D and J gene colors respectively. |
The size of the ribbons connecting VJ or DJ genes correspond to the number of samples or number of sequences that make up that recombination event. The thicker the ribbon, the higher the frequency of the recombination.
Returns a chord diagram showing VJ or DJ gene associations from one or more samples.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | file.path <- system.file("extdata", "TCRB_sequencing", package = "LymphoSeq")
file.list <- readImmunoSeq(path = file.path)
productive.nt <- productiveSeq(file.list = file.list, aggregate = "nucleotide")
top.seqs <- topSeqs(productive.seqs = productive.nt, top = 1)
chordDiagramVDJ(sample = top.seqs, association = "VJ", colors = c("red", "blue"))
# Remove "TCRB" from gene family name
top.seqs <- as.data.frame(apply(top.seqs, 2, function(x) gsub("TCRB", "", x)))
chordDiagramVDJ(sample = top.seqs, association = "VJ", colors = c("red", "blue"))
|
Loading required package: LymphoSeqDB
sh: 1: cannot create /dev/null: Permission denied
Could not detect number of cores, defaulting to 1.
|
| | 0%
|
|======= | 10%
|
|============== | 20%
|
|===================== | 30%
|
|============================ | 40%
|
|=================================== | 50%
|
|========================================== | 60%
|
|================================================= | 70%
|
|======================================================== | 80%
|
|=============================================================== | 90%
|
|======================================================================| 100%
|
| | 0%
|
|======= | 10%
|
|============== | 20%
|
|===================== | 30%
|
|============================ | 40%
|
|=================================== | 50%
|
|========================================== | 60%
|
|================================================= | 70%
|
|======================================================== | 80%
|
|=============================================================== | 90%
|
|======================================================================| 100%
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.