haplosAlleles2num: Haplotypes

haplosAlleles2numR Documentation

Haplotypes

Description

Reformat haplotypes from alleles as string into numeric.

Usage

haplosAlleles2num(haplos, alleles, nb.cores = 1)

Arguments

haplos

matrix with haplotypes in rows (2 consecutive per genotype) and SNPs in columns

alleles

data.frame with SNPs in rows (names as row names) and alleles in 2 columns

nb.cores

the number of cores to use, i.e. at most how many child processes will be run simultaneously (not on Windows)

Value

matrix with 0 for the first-column alleles and 1 for the second-column alleles

Author(s)

Timothee Flutre

See Also

segSites2allDoses


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.