cleanPeptides {dagLogo} | R Documentation |
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.
cleanPeptides(dat, anchors)
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. |
an data.frame with columns: 'symbol', 'peptides' and 'anchor'
Jianhong Ou, Julie Zhu
dat <- read.csv(system.file("extdata", "peptides2filter.csv", package="dagLogo")) dat dat.new <- cleanPeptides(dat, anchors = c("s", "t"))