Skip to content

Commit e07c9d7

Browse files
Merge pull request #192 from jeromekelleher/first-tutorial-infra
First pass at executable tutorial
2 parents b55465b + dffea3d commit e07c9d7

File tree

4 files changed

+37
-11
lines changed

4 files changed

+37
-11
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Docs
1+
name: Docs
22

33
on:
44
pull_request:
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build-docs:
13-
name: Docs
13+
name: Build
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Cancel Previous Runs
@@ -29,6 +29,11 @@ jobs:
2929
run: |
3030
pip install --upgrade pip wheel
3131
pip install -r docs/requirements.txt
32+
python3 -m bash_kernel.install
33+
34+
- name: Install package
35+
run: |
36+
python3 -m pip install .
3237
3338
- name: Build Docs
3439
run: |

docs/_toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
format: jb-book
22
root: intro
33
chapters:
4+
- file: vcf2zarr_tutorial
45
- file: cli

docs/requirements.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
bed_reader
2-
click
3-
cyvcf2
1+
bash_kernel
42
jupyter-book
5-
msprime
6-
pysam
7-
sgkit
83
sphinx-click
9-
tabulate
10-
tqdm
11-
zarr>=2.17

docs/vcf2zarr_tutorial.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
jupytext:
3+
formats: md:myst
4+
text_representation:
5+
extension: .md
6+
format_name: myst
7+
kernelspec:
8+
display_name: Bash
9+
language: bash
10+
name: bash
11+
---
12+
# Vcf2zarr tutorial
13+
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
17+
convenience and flexibility corresponding to what you might
18+
need for small, intermediate and large datasets.
19+
20+
## Small
21+
22+
```{code-cell} bash
23+
vcf2zarr convert ../tests/data/vcf/sample.vcf.gz sample.zarr -vf
24+
```
25+
26+
## Intermediate
27+
28+
## Large

0 commit comments

Comments
 (0)