annotatePeptides: Annotate peptides with protein ids

Description Usage Arguments Examples

View source: R/annotatePeptides.R

Description

peptides which do not have protein assignment drop out

Usage

1
annotatePeptides(pepinfo, fasta, prefix = "(([RK])|(^)|(^M))", suffix = "")

Arguments

pepinfo

- list of peptides - sequence, optional modified sequence, charge state.

fasta

- object as created by readPeptideFasta

prefix

- default "(([RK])|(^)|(^M))"

suffix

- default ""

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(prozor)
data(pepprot)

file = file.path(path.package("prozor"),"extdata/shortfasta.fasta" )

fasta = readPeptideFasta(file = file)
res = annotatePeptides(pepprot[1:20,], fasta)
head(res)
res = annotatePeptides(pepprot[1:20,"peptideSeq"],fasta)
length(res)

prozor documentation built on May 29, 2017, 9:49 p.m.

Search within the prozor package
Search all R packages, documentation and source code