Skip to contents

Meta prior-knowledge

Usage

meta_pk(
  data,
  metadata_sample,
  metadata_info = NULL,
  save_table = "csv",
  path = NULL
)

Arguments

data

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.

metadata_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

metadata_info

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

save_table

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

path

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 <- tissue_norm %>%tibble::column_to_rownames("Code")
Res <- MetaProViz::meta_pk(data=Tissue_Norm[,-c(1:13)],
                          metadata_sample= Tissue_Norm[,c(2,4:5,12:13)])