minMarkers: Creates a reduced marker variable

Description Usage Arguments Value Author(s) See Also Examples

View source: R/MSnSet.R

Description

This function updates an MSnSet instances and sets markers class to unknown if there are less than n instances.

Usage

1
minMarkers(object, n = 10, fcol = "markers")

Arguments

object

An instance of class "MSnSet".

n

Minumum of marker instances per class.

fcol

The name of the markers column in the featureData slot. Default is markers.

Value

An instance of class "MSnSet" with a new feature variables, named after the original fcol variable and the n value.

Author(s)

Laurent Gatto

See Also

getPredictions to filter based on classification scores.

Examples

1
2
3
4
5
library(pRolocdata)
data(dunkley2006)
d2 <- minMarkers(dunkley2006, 20)
getMarkers(dunkley2006)
getMarkers(d2, fcol = "markers20")

pRoloc documentation built on Nov. 8, 2020, 6:26 p.m.