Skip to content

Commit

Permalink
Add backwards algorithm for haploid data, using lshmm for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
astheeggeggs authored and mergify[bot] committed Jul 13, 2023
1 parent 60d75c6 commit f7ba548
Show file tree
Hide file tree
Showing 4 changed files with 603 additions and 794 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
/usr/share/miniconda/envs/anaconda-client-env
~/osx-conda
~/.profile
key: ${{ runner.os }}-${{ matrix.python}}-conda-v11-${{ hashFiles('python/requirements/CI-tests-conda/requirements.txt') }}-${{ hashFiles('python/requirements/CI-tests-pip/requirements.txt') }}
key: ${{ runner.os }}-${{ matrix.python}}-conda-v12-${{ hashFiles('python/requirements/CI-tests-conda/requirements.txt') }}-${{ hashFiles('python/requirements/CI-tests-pip/requirements.txt') }}

- name: Install Conda
uses: conda-incubator/setup-miniconda@v2
Expand Down
2 changes: 1 addition & 1 deletion python/requirements/CI-tests-pip/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lshmm==0.0.4; python_version < '3.11'
lshmm==0.0.4
numpy==1.21.6; python_version < '3.11' # Held at 1.21.6 for Python 3.7 compatibility
numpy==1.24.1; python_version > '3.10'
pytest==7.1.3
Expand Down
1 change: 0 additions & 1 deletion python/tests/test_genotype_matching_fb.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,6 @@ def compute_next_probability_dict(
query_is_missing,
):
mu = self.mu[site_id]

template_is_hom = np.logical_not(template_is_het)

if query_is_missing:
Expand Down
Loading

0 comments on commit f7ba548

Please sign in to comment.