Reads ds_asc_*.rds produced by the per-cell-type SLURM array and rebuilds aligned ref/alt matrices (union of SNPs x all samples), plus combined sample annotation. Empties (_EMPTY.rds) are skipped.

mergeDsASCArray(dir, pattern = "^ds_asc_.*\\.rds$")

Arguments

dir

Directory containing ds_asc_*.rds.

pattern

File pattern (default "^ds_asc_.*\.rds$").

Value

list(ref, alt, annot, snpIds) with ref/alt integer matrices.