Skip to content

Commit

Permalink
Fix scikit-allel roundtrip test when contig lengths found
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite authored and mergify[bot] committed Nov 3, 2022
1 parent f86b71e commit 6fc8d53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sgkit/tests/io/vcf/test_vcf_roundtrip.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ def test_all_fields(
assert allel_ds_contigs <= sg_ds_contigs
del allel_ds.attrs["contigs"]
del sg_ds.attrs["contigs"]
# scikit-allel doesn't store contig lengths
if "contig_lengths" in sg_ds.attrs:
del sg_ds.attrs["contig_lengths"]

if allel_ds_contigs < sg_ds_contigs:
# variant_contig variables are not comparable, so remove them before comparison
Expand Down

0 comments on commit 6fc8d53

Please sign in to comment.