Bar plot of the fraction of paired single chains by frequency
plot_paired_by_read_fraction_range.RdThis function returns a bar plot of the fraction of single-chains (alpha or beta, default is beta)
that were paired within different frequency ranges
(default is [10^-1, 10^-2], [10^-2, 10^-3], ... , [10^-5,10^-6], [10^-6, 0]) for each sample.
Usage
plot_paired_by_read_fraction_range(
data,
chain = c("beta", "alpha"),
cutoffs = 10^(-6:-1),
freq = FALSE,
samples = NULL,
color_scheme = NULL
)Arguments
- data
a TIRTLseqDataSet object or a data frame created using
get_paired_by_read_fraction_range()- chain
the TCR chain to plot (default is "beta")
- cutoffs
a vector of cutoffs for the read fraction ranges
- freq
if TRUE, plot the number of pairs, if FALSE plot the fraction paired (default is FALSE, plot the fraction paired)
- samples
(optional) the samples to include in the plot
- color_scheme
(optional) the color scheme to use in the plot
Examples
load_example_data(dataset = "SJTRC_longitudinal")
#> Example data already loaded into object: 'SJTRC_longitudinal'
plot_paired_by_read_fraction_range(SJTRC_longitudinal, chain = "beta")