flag_detection: Flag features with low detection rate

Description Usage Arguments Value Examples

Description

Flags features with too high amount of missing values. There are two detection rate limits, both defined as the minimum proportion of samples that need to have a value (not NA) for the feature to be kept. qc_limit is the detection rate limit for QC samples, group_limit is the detection rate limit for the actual study groups. If the group limit is passed for AT LEAST ONE GROUP, then the feature is kept. Features with low detection rate in QCs are flagged as "Low_qc_detection", while low detection rate in the study groups is flagged as "Low_group_detection". The detection rates for all the groups are recorded in results(object)

Usage

1
2
flag_detection(object, qc_limit = 0.7, group_limit = 0.8,
  group = group_col(object))

Arguments

object

a MetaboSet object

qc_limit

the detection rate limit for QC samples

group_limit

the detection rate limit for study groups

group

the columns name in sample information to use as the grouping variable

Value

a MetaboSet object with the features flagged

Examples

1
2
ex_set <- flag_detection(merged_sample)
results(ex_set)

antonvsdata/amp documentation built on Jan. 8, 2020, 3:15 a.m.