lengthpep: Compute the amino acid length of a protein sequence

View source: R/lengthpep.R

lengthpepR 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

Peptides documentation built on May 31, 2023, 9:47 p.m.