Skip to content

Commit 0d6dd36

Browse files
More cast updates
1 parent 9983e73 commit 0d6dd36

File tree

4 files changed

+31
-11
lines changed

4 files changed

+31
-11
lines changed

docs/Makefile

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@ PYPATH=$(shell pwd)/../
33
B2Z_VERSION:=$(shell PYTHONPATH=${PYPATH} \
44
python3 -c 'import bio2zarr; print(bio2zarr.__version__.split("+")[0])')
55

6+
CASTS=_static/vcf2zarr_convert.cast\
7+
_static/vcf2zarr_explode.cast
8+
9+
610
BUILDDIR = _build
711

8-
dev: _static/vcf2zarr_convert.cast
12+
dev: ${CASTS}
913
PYTHONPATH=${PYPATH} ./build.sh
1014

11-
dist: _static/vcf2zarr_convert.cast
15+
dist: ${CASTS}
1216
@echo Building distribution for bio2zarr version ${B2Z_VERSION}
1317
cd doxygen && doxygen
1418
sed -i -e s/__BIO2ZARR_VERSION__/${B2Z_VERSION}/g _config.yml
@@ -18,8 +22,15 @@ clean:
1822
rm -fR $(BUILDDIR)
1923

2024

21-
_static/vcf2zarr_convert.cast:
22-
rm -fR sample.zarr
25+
sample.vcf.gz:
2326
cp ../tests/data/vcf/sample.vcf.gz ./
2427
cp ../tests/data/vcf/sample.vcf.gz.tbi ./
25-
asciinema-automation cast_scripts/vcf2zarr_convert.sh _static/vcf2zarr_convert.cast
28+
29+
_static/vcf2zarr_convert.cast: sample.vcf.gz
30+
rm -f sample.vcz
31+
asciinema-automation cast_scripts/vcf2zarr_convert.sh $@
32+
33+
_static/vcf2zarr_explode.cast: sample.vcf.gz
34+
rm -Rf sample.icf
35+
asciinema-automation cast_scripts/vcf2zarr_explode.sh $@
36+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#$ delay 10
2-
vcf2zarr convert sample.vcf.gz sample.zarr -p 4
1+
#$ delay 5
2+
vcf2zarr convert sample.vcf.gz sample.vcz
33
#$ expect \$
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#$ delay 5
2+
vcf2zarr explode sample.vcf.gz sample.icf
3+
#$ expect \$

docs/vcf2zarr/tutorial.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ need for small, intermediate and large datasets.
1919

2020
## Small
2121

22-
<!-- ```{code-cell} bash -->
23-
<!-- vcf2zarr convert ../tests/data/vcf/sample.vcf.gz sample.zarr -vf -->
24-
<!-- ``` -->
25-
2622
<div id="vcf2zarr_convert"></div>
2723
<script>
2824
AsciinemaPlayer.create('_static/vcf2zarr_convert.cast',
@@ -34,5 +30,15 @@ need for small, intermediate and large datasets.
3430

3531
## Intermediate
3632

33+
<div id="vcf2zarr_explode"></div>
34+
<script>
35+
AsciinemaPlayer.create('_static/vcf2zarr_explode.cast',
36+
document.getElementById('vcf2zarr_explode'), {
37+
cols:80,
38+
rows:12
39+
});
40+
</script>
41+
42+
3743
## Large
3844

0 commit comments

Comments
 (0)