Learn R Programming

wrTopDownFrag (version 1.0.4)

.countLET: Count Letters

Description

Count how many time a given letter occurs in each element of 'seq'

Usage

.countLET(sequ, countCh = "K", silent = FALSE, debug = FALSE, callFrom = NULL)

Value

This function returns a numeric vector of counts for 'countCh' (single element !) in each element of 'seq'

Arguments

sequ

(character) eg peptide sequence(s)

countCh

(charcter)

silent

(logical) suppress messages

debug

(logical) for bug-tracking: more/enhanced messages and intermediate objects written in global name-space

callFrom

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

See Also

AAfragSettings, makeFragments

Examples

Run this code
protP2 <- c(mesp="MESPEPTIDES", pepe="PEPEPEP")
.countLET(protP2,"P")

Run the code above in your browser using DataLab