x.sexcheck: consistency checks for x.linked locus

Description Usage Arguments Value See Also Examples

Description

Given an x.linked locus object and a vector of gender codes, the function will check to make sure the gender codes match the codes used to originally define the locus, and that no individuals defined as males are heterozygous.

Usage

1

Arguments

x

an object of class locus

sex

a vector of codes identifying the gender of each individual contained in the locus object

stop

if T , any warnings are converted to errors and execution is halted immediately

Value

T if one or more errors were found F if no errors were found

See Also

locus

Examples

1
2
3
4
5
6
7
c1 <- c(101,10, 112,112,21,112)
c2 <- c(101,101,112,100,21, 10)

gender <- rep(c("M","F"),3)
loc2 <- locus(c1,c2,chrom="X",locus.alias="DXS1234", x.linked=TRUE, sex=gender)

loc2


Search within the haplo.stats 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.