Learn R Programming

Peptides (version 1.1.2)

lengthpep: 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
amino acid sequence string

Value

Return the residue count as a numeric vector of length one

Examples

Run this code
# COMPARED TO ExPASy ProtParam
# http://web.expasy.org/protparam
# SEQUENCE: QWGRRCCGWGPGRRYCVRWC
# Number of amino acids: 20
  
lengthpep("QWGRRCCGWGPGRRYCVRWC")
# [1] 20

Run the code above in your browser using DataLab