R: Compute the amino acid length of a protein sequence

lengthpep {Peptides} | R Documentation

## Compute the amino acid length of a protein sequence

### Description

This function counts the number of amino acids in a protein sequence

### Usage

    lengthpep(seq)

### Arguments

`seq` | An amino-acids sequence

### Details

All proteins are formed by linear chains of small residues known as amino acids attached to each other by peptide bonds. The function `lengthpep` counts the number of amino acids in a sequence and returns a vector with the count for each peptide used as argument.

### Examples

    # COMPARED TO ExPASy ProtParam
    # http://web.expasy.org/protparam
    # SEQUENCE: QWGRRCCGWGPGRRYCVRWC
    # Number of amino acids: 20

    lengthpep(seq = "QWGRRCCGWGPGRRYCVRWC")
    # [1] 20

[Package Peptides version 2.4.4 Index]