convertFeaturesToSortedMatrix: Feature set converter.

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Converts a loaded set of features into a matrix of features. Each row of the matrix will represent a feature, and contain its retention time, mass-to- charge, and signal intensity values, in that order. The matrix will also be sorted by ascending RT.

Usage

1

Arguments

featureSet

The set of features to convert, as a FeatureMap.

Value

The corresponding sorted matrix for the feature set.

Examples

1
2
3
4
5
6
7
## Not run: 
featureSet <- loadFeatureFile("inst/extdata/featureSetA.featureXML")
featureMatrix <- convertFeaturesToSortedMatrix(featureSet)
featureMatrix[1, ]
# Returns [800.002794376452, 614.596298389786, 10900.7001953125]

## End(Not run)

ychen-uoft/msFeatureCmp documentation built on Dec. 23, 2021, 7:17 p.m.