convAASeq2mass {wrProteo}R Documentation

Molecular mass for amino-acids

Description

This function calculates the molecular mass of one-letter code amion-acid sequences.

Usage

convAASeq2mass(
  x,
  massTy = "mono",
  seqName = TRUE,
  silent = FALSE,
  callFrom = NULL
)

Arguments

x

(character) aminoacid sequence (single upper case letters for describing a peptide/protein)

massTy

(character) default 'mono' for mono-isotopic masses (alternative 'average')

seqName

(logical) optional (alternative) names for the content of 'x' (ie aa seq) as name (always if 'x' has no names)

silent

(logical) suppress messages

callFrom

(character) allow easier tracking of message(s) produced

Value

This functions returns a vector with masses for all amino-acids (argument 'massTy' to switch form mono-isotopic to average mass)

See Also

massDeFormula, AAmass, convToNum

Examples

convAASeq2mass(c("PEPTIDE","fPROTEINES"))
pep1 <- c(aa="AAAA", de="DEFDEF")
convAASeq2mass(pep1, seqN=FALSE)

[Package wrProteo version 1.12.0 Index]