getMarkers {pRoloc} | R Documentation |
MSnSet
Convenience accessor to the organelle markers in an MSnSet
.
This function returns the organelle markers of an MSnSet
instance. As a side effect, it print out a marker table.
getMarkers(object, fcol = "markers", names = TRUE, verbose = TRUE)
object |
An instance of class |
fcol |
The name of the markers column in the |
names |
A |
verbose |
If |
A character
(matrix
) of length (ncol)
ncol(object)
, depending on the vector or matrix encoding of
the markers.
Laurent Gatto
See getMarkerClasses
to get the classes
only. See markers
for details about spatial markers
storage and encoding.
library("pRolocdata") data(dunkley2006) ## marker vectors myVmarkers <- getMarkers(dunkley2006) head(myVmarkers) ## marker matrix dunkley2006 <- mrkVecToMat(dunkley2006, mfcol = "Markers") myMmarkers <- getMarkers(dunkley2006, fcol = "Markers") head(myMmarkers)