R/positionalProperty.R
positionalProperty.Rd
This function calculates the mean selected property for amino acids along the residues of the CDR3 amino acid sequence. The ribbon surrounding the individual line represents the 95% confidence interval.
positionalProperty(
input.data,
chain = "TRB",
group.by = NULL,
order.by = NULL,
aa.length = 20,
method = "Atchley",
exportTable = FALSE,
palette = "inferno"
)
The product of combineTCR()
,
combineBCR()
, or combineExpression()
"TRA", "TRB", "TRG", "TRG", "IGH", "IGL"
The variable to use for grouping
A vector of specific plotting order or "alphanumeric" to plot groups in order
The maximum length of the CDR3 amino acid sequence.
The method to calculate the property - "Atchley", "Kidera", "stScales", "tScales", or "VHSE"
Returns the data frame used for forming the graph
Colors to use in visualization - input any hcl.pals
ggplot of line graph of diversity by position
More information for the individual methods can be found at the following citations:
Atchley: citation
Kidera: citation
stScales: citation
tScales: citation
VHSE: citation
#Making combined contig data
combined <- combineTCR(contig_list,
samples = c("P17B", "P17L", "P18B", "P18L",
"P19B","P19L", "P20B", "P20L"))
positionalProperty(combined,
chain = "TRB",
method = "Atchley",
aa.length = 20)