Skip to content

Commit 65ad5cf

Browse files
Merge pull request #197 from jeromekelleher/improve-casts2
More cast updates
2 parents 6dd3c7d + 0d6dd36 commit 65ad5cf

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
@@ -20,10 +20,6 @@ need for small, intermediate and large datasets.
2020

2121
## Small
2222

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

3632
## Intermediate
3733

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

0 commit comments

Comments
 (0)