Changelog
0.2.0 (unreleased)
New functions
simGL.ref_alt_to_index()— converts reference and alternate allele strings to ACGT integer indices, for use withsimGL.subset_GL().simGL.GL_to_vcf()— writes a VCF 4.2 file from normalized biallelic GLs and allele read counts, withGT,GL, andADFORMAT fields.
Bug fixes
simGL.incorporate_monomorphic(): fixed incorrect indexing whenstart > 0. The output array is sizedend - startbut absolute genomic positions were previously used as array indices.simGL.subset_GL(): fixed anIndexErrorwhen all allele pairs were already in ascending order (the empty index array defaulted tofloat64and could not be used as an integer index).
Improvements
simGL.allelereadcounts_to_GL(): the error rateemust now be strictly greater than zero. A new validator raisesTypeErrorfore = 0with an informative message referencing the ANGSD default.Extended docstrings for all public functions, including parameter descriptions, return types, and usage notes.
Fixed spelling errors (
dimetion→dimension,inputed→inputted,beggining→beginning) throughout the source code.
0.1.0
Initial release.