fold_change: Fold change analysis

Description Usage Arguments Value Examples

View source: R/univariate.R

Description

Perform fold change analysis on the dataset.

Usage

1
2
3
fold_change(dataset, metadata.var, ref.value, 
threshold.min.fc = NULL, write.file = FALSE, 
file.out = "fold_change.csv")

Arguments

dataset

list representing the dataset from a metabolomics experiment.

metadata.var

metadata to use to calculate the fold change.

ref.value

class name to indicate the initial value.

threshold.min.fc

minimum threshold of the fold change value.

write.file

boolean value to write or not a file with the results.

file.out

name of the file.

Value

Table of results with fold change and log2 of fold change.

Examples

1
2
3
4
5
  ## Example of fold change
  library(specmine.datasets)
  data(cachexia)
  fold.change.results = fold_change(cachexia, "Muscle.loss", 
			"control", write.file = FALSE)

specmine documentation built on Sept. 21, 2021, 5:06 p.m.