Reads a numeric genotype file and converts it to a sparse matrix format.
dense2sparse(
file.name,
num.genotypes = NULL,
separator = NULL,
fixed = TRUE,
recode = TRUE,
na.strings = c("NA", ".", "-9", "NN"),
progress = TRUE
)A sparse matrix of class dgCMatix.
Path to the numeric genotype file. Could be (and should be) gzipped.
Maximum number of genotypes to read. An upper bound is OK.
"\t" or "," etc. that separates the entries in a line.
Is `separator` a fixed string (TRUE) or a regex (FALSE)?
recode each SNP so its major allele is 0 (per-SNP)
tokens treated as missing
Whether to show a progress bar (default TRUE).