View source: R/calculate_aa_scores.R
calculate_aa_scores | R Documentation |
Calculate a score for each amino acid position in a protein sequence based on the product of the -log10(adjusted p-value) and the absolute log2(fold change) per peptide covering this amino acid. In detail, all the peptides are aligned along the sequence of the corresponding protein, and the average score per amino acid position is computed. In a limited proteolysis coupled to mass spectrometry (LiP-MS) experiment, the score allows to prioritize and narrow down structurally affected regions.
calculate_aa_scores(
data,
protein,
diff = diff,
adj_pval = adj_pval,
start_position,
end_position,
retain_columns = NULL
)
data |
a data frame containing at least the input columns. |
protein |
a character column in the data frame containing the protein identifier or name. |
diff |
a numeric column in the |
adj_pval |
a numeric column in the |
start_position |
a numeric column |
end_position |
a numeric column in the data frame containing the end position of a peptide or precursor. |
retain_columns |
a vector indicating if certain columns should be retained from the input
data frame. Default is not retaining additional columns |
A data frame that contains the aggregated scores per amino acid position, enabling to draw fingerprints for each individual protein.
Patrick Stalder
data <- data.frame(
pg_protein_accessions = c(rep("protein_1", 10)),
diff = c(2, -3, 1, 2, 3, -3, 5, 1, -0.5, 2),
adj_pval = c(0.001, 0.01, 0.2, 0.05, 0.002, 0.5, 0.4, 0.7, 0.001, 0.02),
start = c(1, 3, 5, 10, 15, 25, 28, 30, 41, 51),
end = c(6, 8, 10, 16, 23, 35, 35, 35, 48, 55)
)
calculate_aa_scores(
data,
protein = pg_protein_accessions,
diff = diff,
adj_pval = adj_pval,
start_position = start,
end_position = end
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.