permuteAllelesInGenosDose: Genotypes

View source: R/quantgen.R

permuteAllelesInGenosDoseR Documentation

Genotypes

Description

Permute alleles in genotypes once alleles have been permuted in the corresponding haplotypes.

Usage

permuteAllelesInGenosDose(X, snps.toperm, verbose = 0)

Arguments

X

matrix of bi-allelic SNP genotypes encoded, for each SNP, in number of copies of its second allele, i.e. as allele doses in 0,1,2, with genotypes in rows and SNPs in columns; the "second" allele is arbitrary, it can be the minor or the major allele

snps.toperm

vector of SNP identifiers corresponding to the SNPs to which allele permutation will be performed (column names of X)

verbose

verbosity level (0/1)

Value

matrix of genotypes

Author(s)

Timothee Flutre

See Also

permuteAllelesInHaplosNum


timflutre/rutilstimflutre documentation built on Aug. 18, 2024, 7:43 p.m.