This function the of kmer for nucleotide (nt) or amino acid (aa) sequences. Select the length of the kmer to quantify using the motif.length parameter.
percentKmer(
input.data,
chain = "TRB",
cloneCall = "aa",
group.by = NULL,
order.by = NULL,
motif.length = 3,
top.motifs = 30,
exportTable = FALSE,
palette = "inferno"
)
The product of combineTCR()
,
combineBCR()
, or combineExpression()
"TRA", "TRB", "TRG", "TRG", "IGH", "IGL"
How to call the clone - CDR3 nucleotide (nt) or CDR3 amino acid (aa)
The variable to use for grouping
A vector of specific plotting order or "alphanumeric" to plot groups in order
The length of the kmer to analyze
Return the n most variable motifs as a function of median absolute deviation
Returns the data frame used for forming the graph.
Colors to use in visualization - input any hcl.pals
ggplot of percentage of kmers as a heatmap
#Making combined contig data
combined <- combineTCR(contig_list,
samples = c("P17B", "P17L", "P18B", "P18L",
"P19B","P19L", "P20B", "P20L"))
percentKmer(combined,
chain = "TRB",
motif.length = 3)