format_mQTL: Routine to reformat the data into the required format

Description Usage Arguments Value Author(s) See Also Examples

View source: R/mQTL.R

Description

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

Usage

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

Arguments

datafile

metabolomic data file

genofile

genotype data file

physdat

a file containing sex and pgm

outdat

phenotype data (metabolomic data + sex + pgm) in the format csvs

outgeno

genotype data

Value

It returns phynotype and genotype files in the proper format

Author(s)

Lyamine Hedjazi

See Also

align_mQTL,

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  ## Not run: 
## Clean the raw data to match the genotype and phenotype and create the proper format

  rawfile<-"MetaboFile.dat" ## Metabolomic data file
  genofile<-"GenoFile.dat" ## Genotype data file
  physiodat="physiodat.dat" ## data file containing sex and pgm 
  cleandat<-"CleanMetaboFile.dat" ## Metabolomic data file in csvs format
  cleangen<-"CleanGenoFile.dat" ## Genotype data file in csvs format

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

## End(Not run)

mQTL documentation built on May 1, 2019, 7:30 p.m.