chordDiagramVDJ: Chord diagram of VJ or DJ gene associations

View source: R/chordDiagramVDJ.R

chordDiagramVDJR Documentation

Chord diagram of VJ or DJ gene associations

Description

Creates a chord diagram showing VJ or DJ gene associations from one or more samples.

Usage

chordDiagramVDJ(study_table, association = "VJ", colors = c("red", "blue"))

Arguments

study_table

A tibble consisting of frequencies of antigen receptor sequences. "v_family", "j_family", and if applicable, "d_family" are a required columns. Using output from the LymphoSeq function topSeqs is recommended.

association

A character vector of gene families to associate. Options include "VJ" or "DJ".

colors

A character vector of 2 colors corresponding to the V/D and J gene colors respectively.

Details

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.

Value

Returns a chord diagram showing VJ or DJ gene associations from one or more samples.

See Also

topSeqs

Examples

file_path <- system.file("extdata", "TCRB_sequencing", package = "LymphoSeq2")

stable <- readImmunoSeq(file_path)

ntable <- productiveSeq(stable, aggregate = "junction")

top_seqs <- topSeqs(ntable, top = 1)

chordDiagramVDJ(top_seqs, association = "VJ", colors = c("red", "blue"))



elulu3/LymphoSeqTest documentation built on Aug. 27, 2022, 5:47 a.m.