format_mQTL: Routine to reformat the data of animal crosses into the...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/format_mQTL.R

Description

This function enables to reformat data into the proper format. The user should provides in input metabolomic file, Genotype file and a file containing sex and pgm (parental grandmother).

Usage

1
format_mQTL(datafile, genofile, physdat, outdat, outgeno)

Arguments

datafile

metabolomic data file in text format

genofile

genotype data file in text format

physdat

a file containing sex and pgm in text format

outdat

Output data file with formatted phenotype data (metabolomic data + sex + pgm) in the format csvs

outgeno

Output data file with formatted genotype data in the csvs format

Value

formatted phenotype and genotype data files (in format csvs) are written to the user working directory (it is therefore preferable that the user create a new directory to be used throughout the study)

Author(s)

Lyamine Hedjazi

See Also

align_mQTL,

Examples

1
2
3
4
5
6
# Download data files
load_datafiles()

# Format data

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

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