calculate_aa_scores: Calculate scores for each amino acid position in a protein...

Description Usage Arguments Value Author(s) Examples

View source: R/calculate_aa_scores.R

Description

[Experimental] 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.

Usage

1
2
3
4
5
6
7
8
9
calculate_aa_scores(
  data,
  protein,
  diff = diff,
  adj_pval = adj_pval,
  start_position,
  end_position,
  retain_columns = NULL
)

Arguments

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 data data frame containing the log2 fold change.

adj_pval

a numeric column in the data data frame containing the adjusted p-value.

start_position

a numeric column data in the data frame containing the start position of a peptide or precursor.

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 retain_columns = NULL. Specific columns can be retained by providing their names (not in quotations marks, just like other column names, but in a vector).

Value

A data frame that contains the aggregated scores per amino acid position, enabling to draw fingerprints for each individual protein.

Author(s)

Patrick Stalder

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
calculate_aa_scores(
  data,
  protein = pg_protein_accessions,
  diff = diff,
  adj_pval = adj_pval,
  start_position = start,
  end_position = end
)

## End(Not run)

protti documentation built on Sept. 17, 2021, 5:12 p.m.