Displaying 1 result from an estimated 1 matches for "s4_peptide_class".
2012 Aug 10
3
Parsing large XML documents in R - how to optimize the speed?
...,
function(protein.node) {
protein <- new('S4_protein_class')
## fill in a couple of attributes of the protein object using xmlValue
and xmlAttrs(protein.node)
protein@peptides <- xpathApply(protein.node, "./peptide",
function(peptide.node) {
peptide <- new('S4_peptide_class')
## fill in a couple of attributes of the peptide object using xmlValue
and xmlAttrs(peptide.node)
peptide@aas <- sapply(xmlElementsByTagName(peptide.node, name="aa"),
function(aa.node) {
aa <- new('S4_aa_class')
## fill in a couple of attributes of...