Usage
gwasExactHW(genoData,
scan.chromosome.filter = NULL,
scan.exclude = NULL,
geno.counts = TRUE,
chromosome.set = NULL,
block.size = 5000,
verbose = TRUE,
outfile = NULL)
Arguments
genoData
GenotypeData
object, should contain sex and
phenotypes in scan annotation. Chromosomes are
expected to be in contiguous blocks.scan.chromosome.filter
a logical matrix that can be used to
exclude some chromosomes, some scans, or some specific scan-chromosome
pairs. Entries should be TRUE
if that scan-chromosome pair should be
included in the analysis, FALSE
if not. The number of rows must be
equal to the number of scans in genoData
, and the number of
columns must be equal to the largest integer chromosome value in genoData
. The column number must match the chromosome number.
e.g. A scan.chromosome.filter matrix used for an analyis when
genoData
has SNPs with chromosome=(1-24, 26, 27) (i.e. no Y
(25) chromosome SNPs) must have 27 columns (all FALSE
in the
25th column). But a scan.chromosome.filter matrix used for an analysis
genoData
has SNPs chromosome=(1-26) (i.e no Unmapped (27)
chromosome SNPs) must have only 26 columns.
scan.exclude
an integer vector containing the IDs of entire scans to
be excluded.
geno.counts
if TRUE
(default), genotype counts are
returned in the output data.frame.
chromosome.set
integer vector with chromosome(s) to be
analyzed. Use 23, 24, 25, 26, 27 for X, XY, Y, M, Unmapped
respectively.
block.size
Number of SNPs to be read from genoData
at
once.
verbose
if TRUE
(default), will print status updates while the function runs.
e.g. it will print "chr 1 block 1 of 10" etc. in the R console after each block of SNPs is done being analyzed.
outfile
a character string to append in front of ".chr.i_k.RData" for naming the output data-frame;
where i is the first chromosome, and k is the last chromosome used in
that call to the function. "chr.i_k." will be
omitted if chromosome.set=NULL
.