Xfix {GenABEL}R Documentation

function to set heterozygous male X-linked genotypes to NA

Description

Sets heterozygous male X-linked genotypes to NA

Usage

        Xfix(data)

Arguments

data Object of gwaa.data-class

Details

Value

The same object of gwaa.data-class, with fixed genotypes

Note

Author(s)

Yurii Aulchenko

References

See Also

check.marker

Examples

data(ge03d2c)
# many errors
mc0 <- check.marker(ge03d2c)
# take only people and markers passing QC
fixed0 <- ge03d2c[mc0$idok,mc0$snpok]
# major errors fixed, still few males are heterozygous for X-chromsome markers
mc1 <- check.marker(fixed0)
# fix minor X-chromosome problems
fixed1 <- Xfix(fixed0)
# no errors
mc2 <- check.marker(fixed1)
summary(mc2)

[Package GenABEL version 1.3-1 Index]