Commit e78648c
committed
refactor: extract AnophelesHetAnalysis into anoph/heterozygosity.py
- Move heterozygosity and ROH analysis methods from anopheles.py to
new AnophelesHetAnalysis class in anoph/heterozygosity.py
- Implement _roh_hmm_cache_name property (fixes #900)
- Add ValueError guard for window_size > available sites in _sample_count_het
- Replace deprecated inplace=True in _roh_hmm_predict
- Add unit tests in tests/anoph/test_heterozygosity.py
Part of #3661 parent 7354522 commit e78648c
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
55 | | - | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
0 commit comments