Skip to contents

Meta prior-knowledge

Usage

MetaPK(
  InputData,
  SettingsFile_Sample,
  SettingsInfo = NULL,
  SaveAs_Table = "csv",
  FolderPath = NULL
)

Arguments

InputData

DF with unique sample identifiers as row names and metabolite numerical values in columns with metabolite identifiers as column names. Use NA for metabolites that were not detected. includes experimental design and outlier column.

SettingsFile_Sample

Optional: DF which contains information about the samples, which will be combined with your input data based on the unique sample identifiers used as rownames. Column "Conditions" with information about the sample conditions (e.g. "N" and "T" or "Normal" and "Tumor"), can be used for feature filtering and colour coding in the PCA. Column "AnalyticalReplicate" including numerical values, defines technical repetitions of measurements, which will be summarised. Column "BiologicalReplicates" including numerical values. Please use the following names: "Conditions", "Biological_Replicates", "Analytical_Replicates".Default = NULL

SettingsInfo

Optional: NULL or vector with column names that should be used, i.e. c("Age", "gender", "Tumour-stage"). default: NULL

SaveAs_Table

Optional: File types for the analysis results are: "csv", "xlsx", "txt". Default = "csv"

FolderPath

Optional: Path to the folder the results should be saved at. default: NULL

Value

DF with prior knowledge based on patient metadata

Examples

Tissue_Norm <- MetaProViz::ToyData("Tissue_Norm")
Res <- MetaProViz::MetaPK(InputData=Tissue_Norm[,-c(1:13)],
                          SettingsFile_Sample= Tissue_Norm[,c(2,4:5,12:13)])