getDefaultRetCorCenterSample: Gets the index of the sample with most peaks in it.

Description Usage Arguments Details Value Author(s) Examples

View source: R/optimizeRetCorGroupParameters.R

Description

Gets the index of the sample with most peaks in it. This is used if no center sample for retention time correction has been defined by the user.

Usage

1

Arguments

xset

xcmsSet object

Details

Gets the index of the sample with most peaks in it. This is used if no center sample for retention time correction has been defined by the user.

Value

The file index of the sample with most peaks in it.

Author(s)

Gunnar Libiseller

Examples

1
2
3
4
5
6
7
8
9
## The function is currently defined as
function (xset) 
{
    ret <- NULL
    for (i in 1:length(filepaths(xset))) {
        ret <- c(ret, sum(peaks(xset)[, "sample"] == i))
    }
    return(which.max(ret))
  }

IPO documentation built on Nov. 8, 2020, 8:31 p.m.