convertToFamilias: Convert genotype data to Familias format

Description Usage Arguments Details Value Author(s) Examples

Description

Genotype data are transformed from lines two columns. If there is only one column for each marker and two lines for each individual, the data is transformed so that there is one line for each individual. The pecularities of the input format of Familias is handled.

Usage

1
convertToFamilias(infile, outfile = paste("out", infile, sep = ""))

Arguments

infile

File name.

outfile

File name for output file.

Details

The first column is the name of the individual, the second indicates sex (X X for females, X Y for males) while the remaining columns are marker names (no blanks are allowed in names; usual rules for variable names apply). There are two lines for each individual. The smallest example (below) is for a female called 32293 with genotypes 15/16 for Marker1:

Name Sex Marker
32293 X 15
32293 X 16

Typically, Familias is started by loading a file containing the database (markers and allele frequencies). This file needs only be prepared once for each individual. The Case Related DNA Data can then be read from the file produced by convertToFamilias. Note that allele must have precisely the same name (8 and 8.0 are different alleles for instance)

Value

A file with default file name as input file name preceded by "out". This file can be read by Familias in the Case Related DNA Data window.

Author(s)

Thore.Egeland@nmbu.no

Examples

1
## Not run: convertToFamilias("denise3.txt") 


Search within the euroMix package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.