format_mQTL {mQTL.NMR} | R Documentation |
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).
format_mQTL(datafile, genofile, physdat, outdat, outgeno)
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 |
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)
Lyamine Hedjazi
# Download data files load_datafiles() # Format data format_mQTL(phenofile,genofile,physiodat,cleandat,cleangen)