Skip to content

Commit 128cbfa

Browse files
Add plink2zarr script and add tests in CI
Closes #401
1 parent 072044e commit 128cbfa

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ jobs:
6969
python -m bio2zarr vcf2zarr dencode-partition sample.vcz 1
7070
python -m bio2zarr vcf2zarr dencode-partition sample.vcz 2
7171
python -m bio2zarr vcf2zarr dencode-finalise sample.vcz
72+
- name: Run tskit2zarr example
73+
run: |
74+
python -m bio2zarr tskit2zarr convert tests/data/tskit/example.trees sample.vcz -f
75+
- name: Run plink2zarr example
76+
run: |
77+
python -m bio2zarr plink2zarr convert tests/data/plink/example sample.vcz -f
7278
- name: Run tests
7379
run: |
7480
pytest --cov=bio2zarr
@@ -137,6 +143,14 @@ jobs:
137143
run: |
138144
vcfpartition --help
139145
python -m bio2zarr vcfpartition --help
146+
- name: Check tskit2zarr CLI
147+
run: |
148+
tskit2zarr --help
149+
python -m bio2zarr tskit2zarr --help
150+
- name: Check plink2zarr CLI
151+
run: |
152+
plink2zarr --help
153+
python -m bio2zarr plink2zarr --help
140154
141155
test-numpy-version:
142156
name: Test numpy versions

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ documentation = "https://sgkit-dev.github.io/bio2zarr/"
5252
vcf2zarr = "bio2zarr.cli:vcf2zarr_main"
5353
vcfpartition = "bio2zarr.cli:vcfpartition"
5454
tskit2zarr = "bio2zarr.cli:tskit2zarr_main"
55+
plink2zarr = "bio2zarr.cli:plink2zarr_main"
5556

5657
[project.optional-dependencies]
5758
dev = [

0 commit comments

Comments
 (0)