Skip to content

Commit 15a182f

Browse files
committed
fix: align bash/docs with Nextflow, add clinvar/pypgx fail-fast
- Add --tree [email protected] to bash haplogrep3 script and docs - Add clinvar + clinvar_index and pypgx_bundle to startup validation - README: add --hla_dat, --slivar_bin, --pypgx_bundle, --ancestry_ref - docs/nextflow.md: fix vcfanno output dir (publishes to vep/), update BAM-required tool list - docs/interpreting-results.md: PharmCAT output path for both paths
1 parent bbee473 commit 15a182f

6 files changed

Lines changed: 13 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,17 @@ nextflow run main.nf --input samplesheet.csv --reference /path/to/GRCh38.fasta -
295295

296296
# Enable database-requiring tools (VEP, CPSR, ClinVar, ExpansionHunter)
297297
nextflow run main.nf --input samplesheet.csv --reference /path/to/GRCh38.fasta \
298-
--tools 'pharmcat,cpic,vcfanno,roh,prs,mito_haplogroup,hla_typing,telomere_hunter,mosdepth,mito_variants,cyrius,html_report,multiqc,vep,slivar,clinical_filter,cpsr,clinvar,expansion_hunter' \
298+
--tools 'pharmcat,cpic,vcfanno,roh,prs,mito_haplogroup,hla_typing,telomere_hunter,mosdepth,mito_variants,cyrius,html_report,multiqc,vep,slivar,clinical_filter,cpsr,clinvar,expansion_hunter,pypgx,ancestry' \
299299
--vep_cache /path/to/vep_cache \
300300
--pcgr_data /path/to/pcgr_data \
301301
--vep_cache_cpsr /path/to/vep_cache_113 \
302302
--clinvar /path/to/clinvar.vcf.gz \
303303
--clinvar_index /path/to/clinvar.vcf.gz.tbi \
304304
--expansion_catalog /path/to/variant_catalog.json \
305+
--hla_dat /path/to/hla.dat \
306+
--slivar_bin /path/to/slivar \
307+
--pypgx_bundle /path/to/pypgx-bundle \
308+
--ancestry_ref /path/to/1kg_common_snps.vcf.gz \
305309
-profile docker
306310
```
307311

docs/12-mito-haplogroup.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ docker run --rm -v ${GENOME_DIR}/${SAMPLE}/vcf:/data staphb/bcftools:1.21 \
2626
# Step 2: Run haplogrep3
2727
docker run --rm -v ${GENOME_DIR}/${SAMPLE}:/data jtb114/haplogrep3 \
2828
classify \
29+
2930
--input /data/vcf/${SAMPLE}_chrM.vcf.gz \
3031
--output /data/mito/${SAMPLE}_haplogroup.txt \
3132
--extend-report

docs/interpreting-results.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The most common "pathogenic" finding in any genome is **heterozygous carrier sta
8282

8383
**What it tells you:** How your genes affect drug metabolism. These results are clinically relevant and should be shared with your prescribing physician.
8484

85-
**Where to look:** `${SAMPLE}/vcf/` — PharmCAT writes its reports alongside the VCF. Open the HTML report in a browser.
85+
**Where to look:** `${SAMPLE}/pharmcat/` (Nextflow) or `${SAMPLE}/vcf/` (bash scripts) — PharmCAT writes its reports there. Open the HTML report in a browser.
8686

8787
**Key genes to check:**
8888
| Gene | Affects | Common Impact |

docs/nextflow.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Only the failed and downstream steps re-run.
6363
| `bam` | No* | Path to aligned BAM (needed for BAM-based steps like pypgx) |
6464
| `bam_index` | No* | Path to BAM index (`.bam.bai`) |
6565

66-
\* BAM is technically optional (VCF-only runs are valid for annotation and PGx), but most default tools (mosdepth, expansion_hunter, telomere_hunter, cyrius, hla_typing, mito_variants) require BAM input. **Provide BAM for full analysis.**
66+
\* BAM is technically optional (VCF-only runs are valid for annotation and PGx), but most default tools (mosdepth, telomere_hunter, cyrius, mito_variants) and opt-in tools (expansion_hunter, hla_typing, pypgx) require BAM input. **Provide BAM for full analysis.**
6767

6868
### Using Sarek Output
6969

@@ -116,8 +116,7 @@ results/
116116
│ ├── clinvar/ # ClinVar pathogenic variant screen
117117
│ ├── pypgx/ # pypgx star allele calling (optional)
118118
│ ├── cpic/ # CPIC drug-gene recommendations (optional)
119-
│ ├── vep/ # VEP variant annotation
120-
│ ├── vcfanno/ # Enriched VCF (CADD, SpliceAI, REVEL, AlphaMissense)
119+
│ ├── vep/ # VEP + vcfanno enriched VCF (CADD, SpliceAI, REVEL, AlphaMissense)
121120
│ ├── slivar/ # Prioritized variants + compound hets
122121
│ ├── clinical/ # Clinically relevant variant subset
123122
│ ├── cpsr/ # Cancer predisposition report

main.nf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ def db_requirements = [
3737
['expansion_hunter', 'expansion_catalog', '--expansion_catalog'],
3838
['hla_typing', 'hla_dat', '--hla_dat'],
3939
['slivar', 'slivar_bin', '--slivar_bin'],
40+
['clinvar', 'clinvar', '--clinvar'],
41+
['clinvar', 'clinvar_index', '--clinvar_index'],
42+
['pypgx', 'pypgx_bundle', '--pypgx_bundle'],
4043
]
4144

4245
db_requirements.each { tool, param_name, flag ->

scripts/12-mito-haplogroup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ docker run --rm \
4242
-v "${GENOME_DIR}/${SAMPLE}:/data" \
4343
${HAPLOGREP3_IMAGE} \
4444
classify \
45+
4546
--input "/data/vcf/${SAMPLE}_chrM.vcf.gz" \
4647
--output "/data/mito/${SAMPLE}_haplogroup.txt" \
4748
--extend-report

0 commit comments

Comments
 (0)