This function updates an MSnSet
instances and sets
markers class to unknown
if there are less than n
instances.
minMarkers(object, n = 10, fcol = "markers")
An instance of class "MSnSet"
.
Minumum of marker instances per class.
The name of the markers column in the featureData
slot. Default is markers
.
An instance of class "MSnSet"
with a new
feature variables, named after the original fcol
variable and
the n
value.
getPredictions
to filter based on
classification scores.
library(pRolocdata)
data(dunkley2006)
d2 <- minMarkers(dunkley2006, 20)
getMarkers(dunkley2006)
#> organelleMarkers
#> ER lumen ER membrane Golgi Mitochondrion PM
#> 14 45 28 55 46
#> Plastid Ribosome TGN unknown vacuole
#> 20 19 13 428 21
getMarkers(d2, fcol = "markers20")
#> organelleMarkers
#> ER membrane Golgi Mitochondrion PM Plastid
#> 45 28 55 46 20
#> unknown vacuole
#> 474 21