Description Usage Arguments Details Author(s) See Also Examples
Constructor to create peptide collection to be used in
summarizePeptides
.
1 |
position |
A |
position
can have additional columns. These columns will be kept in
the resulting peptide collection. This is especially useful to include
clades and grouping parameters for the makeCalls
function.
If the input contains all the z-scores (z1 to z5), then they will not be re-calculated. If some (but not all) z-scores are missing, a warning message will be sent and the z-scores are re-calculated.
Renan Sauteraud
1 2 3 4 5 6 7 8 9 10 11 12 13 | #construct data.frame object
AA <- c("A", "C", "D", "E", "F", "G", "H", "I", "K", "L", "M", "N", "P",
"Q","R", "S", "T", "V", "W", "Y")
starts <- seq(1, 30, 3)
ends <- starts + 14
peptides <- sapply(1:10, function(x) {
paste0(AA[floor(runif(15, 1, 20))], collapse = "")
})
data <- data.frame(start = starts, end = ends, peptide = peptides)
#from data.frame
new_pep <- create_db(data)
#from GRanges
new_pep <- create_db(new_pep)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.