pep_encode: Encode a peptide

Description Usage Arguments Details Value Examples

View source: R/utils_pep.R

Description

Peptides are encoded using the BLOSUM62 probability matrix (See BLOSUM62_PROB data matrix)

Usage

1

Arguments

pep

A character vector of peptides to be encoded

Details

Each position in the peptide become a vector of 20 values, corresponding to the rounded log odds ratio for substituting the amino acid in the peptide with each of the 20 standard proteogenic amino acids.

The final result is a 3D array (tensor) of peptide 'images' with n rows, k columns and 20 slices, which is stored as a 3D array (tensor)

Value

A 3D array (tensor) of peptide 'images'

Examples

1
2
pep_encode(pep_ran(k=9,n=10))
dim(pep_encode(pep_ran(k=9,n=10)))

leonjessen/PepTools documentation built on Feb. 23, 2018, 6:36 p.m.