Skip to content

selscan v3.1.0: Bug fixes, corrected definitions, and faster loading and scans.

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Nov 14:03
· 20 commits to main since this release

selscan v3.1.0: Bug fixes, corrected definitions, and faster loading and scans.
- WARNING: nSL, iHH12, XP-nSL, and --alt values differ from v3.0.x because they now follow their definitions (see Changed).
- Changed: nSL has no EHH cutoff and is limited only by --max-extend-nsl.
- Changed: iHH12 stops when EHH12 falls below --cutoff and applies the gap scale once (it was applied twice).
- Changed: XP-nSL counts distance in retained sites, as nSL does.
- Changed: --alt uses squared haplotype frequencies for all statistics.
- Changed: norm frequency bins are left-closed.
- Changed: norm writes the gene table next to its first input, as ..genetable. NEW: --gene-out sets its path.
- Changed: The unphased --ehh table reports EHH for each homozygote class and its complement (ehh2, ehh0, cehh2, cehh0, ehh).
- Changed: Under --alt, unphased XP-EHH and XP-nSL stop integrating a population once its individuals are all unique, as phased XP and iHS do.
- Changed: --threads defaults to 1 (it was the number of logical CPUs).
- Changed: The --pi output has a header line (chr start end pi), a chr column, and tab-separated columns.
- Changed: On Windows, the characters \ / : * ? " < > | in a --ehh or --ehh12 locus ID become _ in the output file name (the log gives the name).
- Fixed: Windows builds since v2.1 gave wrong results or crashed for data with more than 32 haplotypes.
- Fixed: --max-gap is now applied to phased iHS and nSL.
- Fixed: XP-EHH and XP-nSL no longer drop sites at joint frequency 0.5 or, unphased, sites without heterozygotes.
- Fixed: Unphased XP population 2 values, the --wagh normalization, and the unphased iHS cutoff.
- Fixed: A combined run (e.g. --ihs --nsl) now gives the same values as each statistic run alone.
- Fixed: XP VCF files are paired by position and REF/ALT instead of by line, and unpaired sites are counted in the log.
- Fixed: The XP readers reject missing ('.') genotypes, which were read as 0.
- Fixed: Every input format drops all records at a duplicated position.
- Fixed (norm): Gene tables, window percentiles, --crit-percent (iHH12 is now one-tailed), --log-input, the permutation test, and several crashes.
- Fixed: --ehh, --ehh12, and --pi crashes. Errors now exit with status 1 and a message.
- Fixed: iHS and iHH12 no longer drop cores whose EHH decays at the last site before the chromosome edge.
- Fixed: With --keep-low-freq, monomorphic sites no longer inflate iHS and nSL.
- Fixed: --hap files with an odd number of haplotypes are read correctly (the last haplotype was ignored).
- Fixed: Haploid or malformed VCF genotypes are an error. With --unphased they were misread.
- Fixed: With --vcf and --map, each map position must match its VCF record.
- Fixed: Blank lines are skipped in hap, thap, tped and map files, and unphased alleles are checked for 0/1 coding.
- Fixed (norm): --bp-win honours --win-offset and stops if a file holds more than one chromosome or is unsorted. --min-snps must be at least 1.
- Fixed (norm): --ihs-detail output can be normalized. Input headers are checked before any output is written, and inputs with no data are an error.
- Fixed: Positions of 2^31 bp or more, or non-numeric positions, are an error (they were silently wrapped).
- Improved: Clearer messages when a map does not match the genotype file, and the log gives the reason each VCF record was removed.
- NEW: --version and --perm-seed. --help prints to stdout.
- Improved: VCF loading is 13-24x faster, iHS 3-5x, and nSL about 7x.
- selscan no longer requires GSL, and make check runs the regression tests.
- Binaries are attached to GitHub releases instead of being kept in the repository.