View source: R/optimizeRetCorGroupParameters.R
getDefaultRetCorCenterSample | R Documentation |
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.
getDefaultRetCorCenterSample(xset)
xset |
|
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.
The file index of the sample with most peaks in it.
Gunnar Libiseller
## 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)) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.