|
3 | 3 | import re
|
4 | 4 | from unittest import mock
|
5 | 5 |
|
6 |
| -import cyvcf2 |
7 | 6 | import numpy as np
|
8 | 7 | import numpy.testing as nt
|
9 | 8 | import pytest
|
@@ -55,9 +54,22 @@ def test_filters(self, ds):
|
55 | 54 | ],
|
56 | 55 | )
|
57 | 56 |
|
58 |
| - def test_header(self, ds): |
59 |
| - vcf = cyvcf2.VCF(self.data_path) |
60 |
| - assert ds.attrs["vcf_header"] == vcf.raw_header |
| 57 | + def test_vcf_meta_information(self, ds): |
| 58 | + assert ds.attrs["vcf_meta_information"] == [ |
| 59 | + ["fileformat", "VCFv4.0"], |
| 60 | + ["fileDate", "20090805"], |
| 61 | + ["source", "myImputationProgramV3.1"], |
| 62 | + ["reference", "1000GenomesPilot-NCBI36"], |
| 63 | + ["phasing", "partial"], |
| 64 | + ["ALT", '<ID=DEL:ME:ALU,Description="Deletion of ALU element">'], |
| 65 | + ["ALT", '<ID=CNV,Description="Copy number variable region">'], |
| 66 | + ["bcftools_viewVersion", "1.11+htslib-1.11-4"], |
| 67 | + [ |
| 68 | + "bcftools_viewCommand", |
| 69 | + "view -O b sample.vcf.gz; Date=Tue Feb 27 14:41:07 2024", |
| 70 | + ], |
| 71 | + ["bcftools_viewCommand", "view sample.bcf; Date=Wed Mar 27 11:42:16 2024"], |
| 72 | + ] |
61 | 73 |
|
62 | 74 | def test_source(self, ds):
|
63 | 75 | assert ds.attrs["source"] == f"bio2zarr-{provenance.__version__}"
|
|
0 commit comments