Learn R Programming

mQTL (version 1.0)

format_mQTL: Routine to reformat the data into the required format

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

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

See Also

align_mQTL,

Examples

Run this code
# NOT RUN {
  
# }
# 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)
# }

Run the code above in your browser using DataLab