Skip to content

Commit

Permalink
cyvcf2
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Nov 7, 2022
1 parent bcdb5ea commit ae2b087
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions requirements/CI-tests-conda/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ h5py==3.6.0
lmdb==0.9.29
msprime==1.1.1
numcodecs==0.9.1
# Held at 1.21.6 for sgkit compat
numpy==1.21.6
python-lmdb==1.3.0

5 changes: 1 addition & 4 deletions requirements/CI-tests-pip/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ seaborn==0.11.2
sortedcontainers==2.4.0
tqdm==4.64.0
tskit==0.5.3

# Held at 1.21.6 for sgkit compat
numpy==1.21.6
# Held at 1.3.5 for sgkit compat
pandas==1.3.5
# Held at 2.10.3 for sgkit compat
zarr==2.10.3
sgkit[vcf]==0.5.0
sgkit[vcf]==0.5.0;platform_system!="Windows"
7 changes: 6 additions & 1 deletion tests/test_sgkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,19 @@
"""
Tests for the data files.
"""
import sys

import msprime
import numpy as np
import sgkit.io.vcf
import pytest

import tsinfer


@pytest.mark.skipif(sys.platform == "win32", reason="No cyvcf2 on windows")
def test_sgkit_dataset(tmp_path):
import sgkit.io.vcf

ts = msprime.sim_ancestry(
samples=50,
ploidy=3,
Expand Down

0 comments on commit ae2b087

Please sign in to comment.