Learn R Programming

specmine (version 3.1.6)

fold_change: Fold change analysis

Description

Perform fold change analysis on the dataset.

Usage

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

Run this code
# NOT RUN {
  ## Example of fold change
  library(specmine.datasets)
  data(cachexia)
  fold.change.results = fold_change(cachexia, "Muscle.loss", 
			"control", write.file = FALSE)
# }

Run the code above in your browser using DataLab