Imports SNP genotype data from Illumina FinalReport files using
data.table::fread and builds the SnpMatrix directly from the
long-format calls. This is reliable even for very large files (millions of
lines, hundreds of samples), where snpStats::read.snps.long may fail
to read all samples. Empty or unreadable confidence values are treated as no
calls. The original file on disk is never modified.
Additional optional arguments.
Path to the directory containing FinalReport.txt
List specifying column indices (sample, snp, allele1, allele2, confidence)
Allele codes (e.g., c("A", "B")); a genotype is coded as
the count of codes[2] alleles (homozygous codes[1],
heterozygous, homozygous codes[2]).
Confidence threshold; calls below it are set to missing
Field separator
Lines to skip
Logical; show progress
Deprecated; kept for backward compatibility and ignored.
An SNPDataLong object