Description Usage Arguments Value Methods (by class) See Also Examples
This function flattens the content of the object into a table by merging the content intelligently (it knows the links between the different objects).
1 2 3 4 5 6 7 8 9 10 11 12 13 | flatten(object, safeNames = TRUE)
## S4 method for signature 'mzIDpsm'
flatten(object, safeNames = TRUE)
## S4 method for signature 'mzIDpeptides'
flatten(object, safeNames = TRUE)
## S4 method for signature 'mzID'
flatten(object, safeNames = TRUE)
## S4 method for signature 'mzIDCollection'
flatten(object, safeNames = TRUE)
|
object |
The object to be flattened |
safeNames |
Logical. Should column names be lowered to ensure compitability between different versions of the mzIdentML schema. Defaults to TRUE |
A data.frame
with the flattened result or a list of
data.frames
mzIDpsm
: Merge id and scans according to the mapping
mzIDpeptides
: Merge peptides with their modifications
mzID
: Flatten an mzID object with respect to psm'
mzIDCollection
: Flatten all mzID object in the collection into a list of
data frames.
mzID-class
mzIDCollection-class
mzIDpsm
mzIDpeptides
1 2 3 | exampleFile <- system.file('extdata', '55merge_tandem.mzid', package = 'mzID')
mzResults <- mzID(exampleFile)
head(flatten(mzResults))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.