cleanPeptides {dagLogo}R Documentation

clean up peptides

Description

clean the input file. The function removes peptides without any anchors, adds peptide for each additional anchor in each peptide, and allows multiple anchors as input.

Usage

cleanPeptides(dat, anchors)

Arguments

dat

input data. The input dat contains two columns symbol and peptides. the anchor AA must be in lower case.

anchors

a vector of character, anchor Amino Acid, must be lower case.

Value

an data.frame with columns: 'symbol', 'peptides' and 'anchor'

Author(s)

Jianhong Ou, Julie Zhu

Examples

dat <- read.csv(system.file("extdata", "peptides2filter.csv", package="dagLogo"))
dat
dat.new <- cleanPeptides(dat, anchors = c("s", "t"))

[Package dagLogo version 1.22.1 Index]