getMarkerClasses | R Documentation |
Convenience accessor to the organelle classes in an 'MSnSet'.
This function returns the organelle classes of an
MSnSet
instance. As a side effect, it prints out the classes.
getMarkerClasses(object, fcol = "markers", ...)
object |
An instance of class |
fcol |
The name of the markers column in the |
... |
Additional parameters passed to |
A character
vector of the organelle classes in the data.
Lisa Breckels and Laurent Gatto
getMarkers
to extract the marker
proteins. See markers
for details about spatial
markers storage and encoding.
library("pRolocdata")
data(dunkley2006)
organelles <- getMarkerClasses(dunkley2006)
## same if markers encoded as a matrix
dunkley2006 <- mrkVecToMat(dunkley2006, mfcol = "Markers")
organelles2 <- getMarkerClasses(dunkley2006, fcol = "Markers")
stopifnot(all.equal(organelles, organelles2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.