Skip to contents

An S4 class representing a filter to pre-process the input data.

The object consists of 3 slots

Constructor for the S4 Filter object.

Usage

Filter(id, filter, parameters, logger = Logger(verbose = F))

Arguments

id

a name to identify the filter. If filtering method is one of the supported by renoir, the constructor will automatically select a filter. See list_supported_unsupervised_screening_methods() for the supported methods.

filter

(optional) function to filter the initial data. Used if id is not one of the supported by renoir. If filter is provided it must conform to the renoir common interface, and must have the following formal arguments:

x

the input matrix, where rows are observations and columns are variables.

logger

a Logger

...

additional arguments

The output must be a Filtered object

parameters

list containing the parameters to fix for the chosen filtering method

logger

a Logger

Value

A Filtered object.

Slots

id

a name to identify the filter

filter

filter function

parameters

list containing the parameters for the chosen filtering method

logger

a Logger

Author

Alessandro Barberis