Releases: CAST-genomics/haptools
Releases · CAST-genomics/haptools
v0.6.2
v0.6.0
0.6.0 (2025-12-10)
Features
--mafoption for filtering output oftransformcommand (#274) (cf4219f)- add
--chunk-sizeparameter tosimgenotypeand fix RuntimeError when reference coordinates extend past the final map file coordinate (#268) (4c22846) - use chunking when reading from PGENs in
simgenotype(#270) (5ae546d)
Performance Improvements
v0.5.0
0.5.0 (2024-12-11)
Features
- a new
Haplotypes.merge()method (#256) (cf4ccb2) - allow for specifying the order of population labels in
Breakpoints.encode()(#262) (09a916a) - allow multiple variants in
pearson_corr_ld()(#258) (808c31e) - support for Apple M1 silicon (#255) (3f055ac)
- support for numpy 2.0 (#250) (69192d0)
Bug Fixes
- allow
simphenotypeto accept TR PGENs without--repeats(#263) (16a84d1) - issue warnings instead of errors when trying to check the header of hap files and issue error when output of transform is not provided to simphenotype (#254) (0226653)
- load an empty array if there are no variants in
GenotypesVCF.read(#257) (9eedc3a)
Documentation
v0.4.2
v0.4.1
v0.4.0
0.4.0 (2024-01-14)
This new version incorporates a number of bug fixes and exciting new features! Notably, it adds support for python 3.11 (whilst keeping support for python 3.7 for @TaraMirmira). And per a recent request by @XimeiWulilyy (and @s041629 a while ago), the haptools transform command now accepts multiallelic variants. Also, a quick shoutout to @RJDan for pointing out issues with the example script for converting .blocks.det files into .hap files.
Features
- a new
GenotypesPLINKTRclass for reading TRs from PGEN files (#222) (3c7abe6)
This brings us one giant step closer to being able to analyze TRs in PLINK2! See #221 for the remaining work that is needed. Credit for this work belongs to the awesome @gonzalogc1 - allow multiallelic variants in
transform(#232) (371415c) - support for python 3.11 (#207) (8e01ed4)
Bug Fixes
UnboundLocalErrorarising from headerless.hapfiles (#229) (a499b0c)- bug where
Phenotypes.subset(inplace=True)would raise an AttributeError (#226) (cff6d9b) - convert
samplesargument inGenotypes.readinto a set and fixtr_harmonizerbug arising when TRTools is also installed (#225) (06cc273) - Not having 23 chromosomes in genotype blocks when 23 chromosomes listed in centromere file resulted in Value Error (#234) (ef36798)
Documentation
v0.3.0
0.3.0 (2023-06-02)
Features
.snplistinput tosimphenotype(#217) (cb18970)- Added ability to read tandem repeats with GenotypesTR (#204) (6257264)
- Added ability to set vcftype for reading str files (#214) (0d734cd)
- Clump (#211) (3740ec1)
- do not require sorting
.haplines by line type (#208) (f221397) - new
Phenotypes.subset()method (#203) (c5594d9) - simphenotype
--environmentoption (#216) (bf69147) - Simphenotype and Index Repeat Support (#209) (9e2ffe1)
Bug Fixes
Covariates.__init__after updates to parent class (#206) (ce2337b)- Added logic to finding all coord files (#201) (be1d992)
- check missing to check for 254 (#213) (afeab85)
- explicitly ignore repeats in the
ldcommand (#218) (b9d0da1) - GenotypesTR to properly load repeat count instead of GT (#212) (93a4eb2)