Description Usage Arguments Value Examples
View source: R/parser-functions.R
Combine phenotype data for each metabolite group in Peak.list with summed intensity values
1 2 3 4 5 6 7 8 9 | combine_phenodata(
Sample.df,
Peak.list,
Summed.list,
search.par,
QC.id,
BLANK,
IonMode
)
|
Sample.df |
a data frame with class info as columns. Must contain a
separate row entry for each unique sex/class combination. Must contain the
columns |
Peak.list |
data frame. Must have the columns |
Summed.list |
data frame containing metabolite group as first column and the rest summed intensities for each sample |
search.par |
a single-row data frame with 11 variables containing
user-defined search parameters. Must contain the columns
|
QC.id |
character vector specifying identifier in filename designating a
Pooled QC sample. Only the first value will be used. Default is
|
BLANK |
a logical indicating whether blanks are being evaluated |
IonMode |
a character string defining the ionization mode. Must be one
of |
Peak.list.summed with the munged phenotype columns up front followed by QC and sample columns
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(LUMA)
file <- system.file('extdata','Search_Parameters.txt', package = "LUMA") # is
# case sensitive on Linux
search.par <- read.table(file, sep = "\t", header = TRUE) #Ignore Warning message
file2 <- system.file('extdata','Sample_Class.txt', package = "LUMA") # is
# case sensitive on Linux
Sample.df <- read.table(file2, sep = "\t", header = TRUE) #Ignore Warning message
Peak.list <- LUMA::Peaklist_Pos$output_parsed
Summed.list <- sum_features(Peak.list = Peak.list, Sample.df = Sample.df ,
search.par = search.par, BLANK = FALSE, IonMode = "Positive")
test <- combine_phenodata(Sample.df = Sample.df, Peak.list = Peak.list,
Summed.list = Summed.list, search.par = search.par, BLANK = FALSE, IonMode =
"Positive")
nrow(Peak.list) - nrow(test) ##Combines multiple features into single entries per metabolite
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.