Last chance! 50% off unlimited learning
Sale ends in
MSnSet
instance. As a side effect, it prints out the classes.
getMarkerClasses(object, fcol = "markers", verbose = TRUE, ...)
"MSnSet"
.featureData
slot. Default is markers
.TRUE
, a character vector of the organelle
classes is printed and the classes are returned invisibly. If FALSE
,
the markers are returned.sort
from the base package.character
vector of the organelle classes in the data.
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))
Run the code above in your browser using DataLab