sniffCSV: Identify type of 'R/qtl' data in CSV file.

Description Usage Arguments Details Value See Also

View source: R/csv.R

Description

This function identifies the type of data in the input CSV file. This can be 'cross', 'geno', 'pheno', or 'map'. Alternatively, it can be 'unknown' if the data cannot be identified.

Usage

1
sniffCSV(infile)

Arguments

infile

Input CSV file path.

Details

Note that this function should be used with some discretion, as some R/qtl input file types cannot be distinguished. For example, a covariate data file containing a sample ID column will be misidentified as containing phenotype data.

Value

A string describing the type of data in the input CSV file.

See Also

Other CSV functions: hasMapCSV, readCovarCSV, readCrossCSV, readGenoCSV, readMapCSV, readMapframeCSV, readPhenoCSV, recodeCSV, writeCrossCSV, writeGenoCSV, writeMapCSV, writeMapframeCSV, writePhenoCSV


gact/shmootl documentation built on Nov. 11, 2021, 6:23 p.m.