format_mQTL {mQTL.NMR} | R Documentation

## Routine to reformat the data of animal crosses into the required format to perform mQTL mapping

### 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

    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

    # Download data files
    load_datafiles()

    # Format data

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

[Package mQTL.NMR version 1.14.0 Index]