|
1 |
| -import sys |
2 |
| - |
| 1 | +import msprime |
3 | 2 | import numpy.testing as nt
|
4 | 3 | import pysam
|
5 | 4 | import pytest
|
|
9 | 8 |
|
10 | 9 |
|
11 | 10 | def run_simulation(num_samples=2, ploidy=1, seed=42, sequence_length=100_000):
|
12 |
| - # Import here to avoid problems on OSX (see below) |
13 |
| - # https://github.com/sgkit-dev/bio2zarr/issues/336 |
14 |
| - import msprime |
15 |
| - |
16 | 11 | ts = msprime.sim_ancestry(
|
17 | 12 | num_samples,
|
18 | 13 | population_size=10**4,
|
@@ -52,8 +47,6 @@ def write_vcf(ts, vcf_path, contig_id="1", indexed=False):
|
52 | 47 | return vcf_path
|
53 | 48 |
|
54 | 49 |
|
55 |
| -# https://github.com/sgkit-dev/bio2zarr/issues/336 |
56 |
| -@pytest.mark.skipif(sys.platform == "darwin", reason="msprime OSX pip packages broken") |
57 | 50 | class TestTskitRoundTripVcf:
|
58 | 51 | @pytest.mark.parametrize("ploidy", [1, 2, 3, 4])
|
59 | 52 | def test_ploidy(self, ploidy, tmp_path):
|
@@ -127,8 +120,6 @@ def test_mixed_indexed(self, num_contigs, tmp_path):
|
127 | 120 | self.validate_tss_vcf_list(contig_ids, tss, vcfs, tmp_path)
|
128 | 121 |
|
129 | 122 |
|
130 |
| -# https://github.com/sgkit-dev/bio2zarr/issues/336 |
131 |
| -@pytest.mark.skipif(sys.platform == "darwin", reason="msprime OSX pip packages broken") |
132 | 123 | class TestIncompatibleContigs:
|
133 | 124 | def test_different_lengths(self, tmp_path):
|
134 | 125 | vcfs = []
|
|
0 commit comments