Skip to content

Commit 02d9949

Browse files
Merge pull request #196 from jeromekelleher/improve-casts
Improve cast infrastructure
2 parents 5cb84db + 271bff4 commit 02d9949

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

.github/workflows/docs.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ jobs:
3434
- name: Install package
3535
run: |
3636
python3 -m pip install .
37-
38-
- name: Record casts
39-
run: |
40-
asciinema-automation docs/cast_scripts/vcf2zarr_convert.sh docs/_static/demo.cast
4137
4238
- name: Build Docs
4339
run: |

docs/Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,21 @@ B2Z_VERSION:=$(shell PYTHONPATH=${PYPATH} \
55

66
BUILDDIR = _build
77

8-
dev:
8+
dev: _static/vcf2zarr_convert.cast
99
PYTHONPATH=${PYPATH} ./build.sh
1010

11-
dist:
11+
dist: _static/vcf2zarr_convert.cast
1212
@echo Building distribution for bio2zarr version ${B2Z_VERSION}
1313
cd doxygen && doxygen
1414
sed -i -e s/__BIO2ZARR_VERSION__/${B2Z_VERSION}/g _config.yml
1515
PYTHONPATH=${PYPATH} ./build.sh
1616

1717
clean:
1818
rm -fR $(BUILDDIR)
19+
20+
21+
_static/vcf2zarr_convert.cast:
22+
rm -fR sample.zarr
23+
cp ../tests/data/vcf/sample.vcf.gz ./
24+
cp ../tests/data/vcf/sample.vcf.gz.tbi ./
25+
asciinema-automation cast_scripts/vcf2zarr_convert.sh _static/vcf2zarr_convert.cast
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#$ delay 10
2-
vcf2zarr convert tests/data/vcf/sample.bcf tmp.zarr -p 4
2+
vcf2zarr convert sample.vcf.gz sample.zarr -p 4
33
#$ expect \$

docs/vcf2zarr_tutorial.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ kernelspec:
1111
---
1212
# Vcf2zarr tutorial
1313

14-
This is a step-by-step tutorial showing you how to convert your
15-
VCF data into Zarr format. There's three different ways to
16-
convert your data, basically providing different levels of
14+
This is a step-by-step tutorial showing you how to convert your
15+
VCF data into Zarr format. There's three different ways to
16+
convert your data, basically providing different levels of
1717
convenience and flexibility corresponding to what you might
1818
need for small, intermediate and large datasets.
1919

@@ -23,10 +23,11 @@ need for small, intermediate and large datasets.
2323
<!-- vcf2zarr convert ../tests/data/vcf/sample.vcf.gz sample.zarr -vf -->
2424
<!-- ``` -->
2525

26-
<div id="demo"></div>
26+
<div id="vcf2zarr_convert"></div>
2727
<script>
28-
AsciinemaPlayer.create('_static/demo.cast', document.getElementById('demo'), {
29-
cols:80,
28+
AsciinemaPlayer.create('_static/vcf2zarr_convert.cast',
29+
document.getElementById('vcf2zarr_convert'), {
30+
cols:80,
3031
rows:12
3132
});
3233
</script>

0 commit comments

Comments
 (0)