makefeature: Generate missing rate matrix and extract 3 features...

Description Usage Arguments Value Author(s) See Also

View source: R/makefeature.R

Description

makefeature generates the missing rate matrix from the data frame of metabolomics signal (generated by read.metfile), according to specified window size and slide size. With the missing rate matrix, makefeature gives 3 features characterizing the missing rates pattern of the metabolites, including variance of missing rate, number of switches and longest block.

Usage

1
makefeature(data, wsize = 100, ssize = 0.5, defswitch = 0.2)

Arguments

data

A data frame of metabolites signal. Rows are metabolites and columns are samples in injection order. The data frame can be created by read.metfile.

wsize

Window size. Default is 100.

ssize

Slide size. Default is 0.5.

defswitch

Definition of a switch. If the absolute missing rate difference of adjacent windows is greater than defswitch, it will be defined as a switch. Default is 0.2.

Value

A list contains features generated from the metabolites signal matrix. The list contains the following entries:

Author(s)

Liu Cao

See Also

See read.metfile for how to generate the the input metabolites signal data frame.


liucaomics/genuMet documentation built on Nov. 11, 2019, 12:13 a.m.