Skip to content

Commit

Permalink
Merge pull request #197 from jeromekelleher/improve-casts2
Browse files Browse the repository at this point in the history
More cast updates
  • Loading branch information
jeromekelleher authored May 14, 2024
2 parents 6dd3c7d + 0d6dd36 commit 65ad5cf
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 11 deletions.
21 changes: 16 additions & 5 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ PYPATH=$(shell pwd)/../
B2Z_VERSION:=$(shell PYTHONPATH=${PYPATH} \
python3 -c 'import bio2zarr; print(bio2zarr.__version__.split("+")[0])')

CASTS=_static/vcf2zarr_convert.cast\
_static/vcf2zarr_explode.cast


BUILDDIR = _build

dev: _static/vcf2zarr_convert.cast
dev: ${CASTS}
PYTHONPATH=${PYPATH} ./build.sh

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


_static/vcf2zarr_convert.cast:
rm -fR sample.zarr
sample.vcf.gz:
cp ../tests/data/vcf/sample.vcf.gz ./
cp ../tests/data/vcf/sample.vcf.gz.tbi ./
asciinema-automation cast_scripts/vcf2zarr_convert.sh _static/vcf2zarr_convert.cast

_static/vcf2zarr_convert.cast: sample.vcf.gz
rm -f sample.vcz
asciinema-automation cast_scripts/vcf2zarr_convert.sh $@

_static/vcf2zarr_explode.cast: sample.vcf.gz
rm -Rf sample.icf
asciinema-automation cast_scripts/vcf2zarr_explode.sh $@

4 changes: 2 additions & 2 deletions docs/cast_scripts/vcf2zarr_convert.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#$ delay 10
vcf2zarr convert sample.vcf.gz sample.zarr -p 4
#$ delay 5
vcf2zarr convert sample.vcf.gz sample.vcz
#$ expect \$
3 changes: 3 additions & 0 deletions docs/cast_scripts/vcf2zarr_explode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#$ delay 5
vcf2zarr explode sample.vcf.gz sample.icf
#$ expect \$
14 changes: 10 additions & 4 deletions docs/vcf2zarr/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ need for small, intermediate and large datasets.

## Small

<!-- ```{code-cell} bash -->
<!-- vcf2zarr convert ../tests/data/vcf/sample.vcf.gz sample.zarr -vf -->
<!-- ``` -->

<div id="vcf2zarr_convert"></div>
<script>
AsciinemaPlayer.create('_static/vcf2zarr_convert.cast',
Expand All @@ -35,5 +31,15 @@ need for small, intermediate and large datasets.

## Intermediate

<div id="vcf2zarr_explode"></div>
<script>
AsciinemaPlayer.create('_static/vcf2zarr_explode.cast',
document.getElementById('vcf2zarr_explode'), {
cols:80,
rows:12
});
</script>


## Large

0 comments on commit 65ad5cf

Please sign in to comment.