normalise_mQTL: Normalisation of metabolomic data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/normalise_mQTL.R

Description

Takes use of the base function normalise to provide a normalised metabolomic data file.

Usage

1
normalise_mQTL(infile,outfile,method,refIdx=1, noiseInt=c(11,12))

Arguments

infile

a text file with non-normalised spectra profiles

outfile

a text file with normalised spectra profiles

method

a character defining the normalization method: - Constant sum normalisation (method<-'CS') - Constant noise normalisation (method<-'CN') - Qoutient probabilistic method (method<-'PQN') - Linear baseline normalisation (method<-'LBN') - Auto-scaling (method<-'AS') - Pareto scaling (method<-'PS')

refIdx

index of reference individual (set by the user)

noiseInt

noise region on the resonance axis as an interval (ex. [11,12] ppm)

Value

a file containing normalised spectra profiles

Author(s)

Lyamine Hedjazi

See Also

normalise

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Download data files
load_datafiles()

# Format data

format_mQTL(phenofile,genofile,physiodat,cleandat,cleangen)

# Constant Sum normlisation
nmeth<-'CS'
normalise_mQTL(cleandat,CSnorm,nmeth)

mQTL.NMR documentation built on Nov. 1, 2018, 2:13 a.m.