Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/hetByScanChrom.R
This function calculates the fraction of heterozygous genotypes for each chromosome for a set of scans.
1 2 | hetByScanChrom(genoData, snp.exclude = NULL,
verbose = TRUE)
|
genoData |
|
snp.exclude |
An integer vector containing the id's of SNPs to be excluded. |
verbose |
Logical value specifying whether to show progress information. |
This function calculates the percent of heterozygous and missing genotypes in each chromosome of each scan given in genoData
.
The result is a matrix containing the heterozygosity rates with scans as rows and chromosomes as columns, including a column "A" for all autosomes.
Cathy Laurie
1 2 3 4 5 | file <- system.file("extdata", "illumina_geno.gds", package="GWASdata")
gds <- GdsGenotypeReader(file)
genoData <- GenotypeData(gds)
het <- hetByScanChrom(genoData)
close(genoData)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.