-
Notifications
You must be signed in to change notification settings - Fork 10
Add pipeline metro map #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d54f693
Add pipeline metro map
adamrtalbot acc1ac5
Add CI workflow to auto-render metro map
adamrtalbot 28e4966
Replace pipeline diagram PNG with metro map SVG
adamrtalbot 305512a
Bump fold-threshold to 20 to fix CI render error
adamrtalbot 96a0e2a
fix(metro): show variant callers as parallel branches
adamrtalbot 25cd9fe
style(metro): reduce width with fold-threshold 18
adamrtalbot ddc55c2
feat(metro): fold map into horseshoe with parallel variant callers
adamrtalbot 0b11241
mermaid fixups
adamrtalbot 62e313e
Update .github/workflows/metro-map.yml
adamrtalbot 988c7d1
Add dashes to optional parts of the pipeline
RaqManzano e3cec35
fix(metro): correct logo path and re-render with nf-metro 1.1.0
adamrtalbot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: Render metro map | ||
|
|
||
| on: | ||
| push: | ||
| branches: [dev, master] | ||
| paths: | ||
| - "assets/metro_map.mmd" | ||
| pull_request: | ||
| paths: | ||
| - "assets/metro_map.mmd" | ||
|
|
||
| jobs: | ||
| render: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: astral-sh/setup-uv@v6 | ||
|
|
||
| - name: Install nf-metro@1.1.0 | ||
| run: uv tool install nf-metro | ||
|
|
||
| - name: Render metro map | ||
| run: | | ||
| nf-metro render assets/metro_map.mmd \ | ||
| -o assets/metro_map.svg \ | ||
| --theme nfcore \ | ||
| --embed-font \ | ||
| --fold-threshold 15 | ||
|
|
||
| - name: Check for changes | ||
| id: diff | ||
| run: | | ||
| git diff --exit-code assets/metro_map.svg || echo "changed=true" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Commit updated SVG | ||
| if: steps.diff.outputs.changed == 'true' && github.event_name == 'push' | ||
| run: | | ||
| git config user.name "github-actions[bot]" | ||
| git config user.email "github-actions[bot]@users.noreply.github.com" | ||
| git add assets/metro_map.svg | ||
| git commit -m "chore: re-render metro map [skip ci]" | ||
| git push | ||
|
|
||
| - name: Warn on PR if SVG is stale | ||
| if: steps.diff.outputs.changed == 'true' && github.event_name == 'pull_request' | ||
| run: | | ||
| echo "::warning::assets/metro_map.svg is out of date with assets/metro_map.mmd — it will be re-rendered on merge." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,119 @@ | ||
| %%metro title: nf-core/rnadnavar | ||
| %%metro logo: docs/images/nf-core-rnadnavar_logo_dark.png | ||
| %%metro style: dark | ||
| %%metro file: fastq_in | FASTQ | ||
| %%metro file: report_out | HTML | ||
| %%metro line: rna | RNA (Tumor + DNA Normal) | #e63946 | ||
| %%metro line: dna | DNA (Tumor + Normal) [OPTIONAL] | #4a90d9 | dashed | ||
| %%metro line: realignment | Realignment (RNA) [OPTIONAL] | #f5c542 | dashed | ||
| %%metro line_order: definition | ||
| %%metro legend: bl | ||
|
|
||
| graph LR | ||
| subgraph preprocessing [Pre-processing & Alignment] | ||
| fastq_in[ ] | ||
| fastqc[FastQC] | ||
| fastp[fastp] | ||
| bwa_mem[BWA-mem/BWA-mem2] | ||
| star[STAR] | ||
| samtools_merge[SAMtools Merge] | ||
|
|
||
| fastq_in -->|dna,rna| fastqc | ||
| fastqc -->|dna,rna| fastp | ||
| fastp -->|dna| bwa_mem | ||
| fastp -->|rna| star | ||
| bwa_mem -->|dna| samtools_merge | ||
| star -->|rna| samtools_merge | ||
| end | ||
|
|
||
| subgraph gatk_preproc [GATK Preprocessing] | ||
| markduplicates[MarkDuplicates] | ||
| splitncigar[SplitNCigarReads] | ||
| baserecalibrator[BaseRecalibrator] | ||
| applybqsr[ApplyBQSR] | ||
| samtools_stats[SAMtools Stats] | ||
| mosdepth[Mosdepth] | ||
|
|
||
| markduplicates -->|dna| baserecalibrator | ||
| markduplicates -->|rna| splitncigar | ||
| splitncigar -->|rna| baserecalibrator | ||
| baserecalibrator -->|dna,rna| applybqsr | ||
| applybqsr -->|dna,rna| samtools_stats | ||
| samtools_stats -->|dna,rna| mosdepth | ||
| end | ||
|
|
||
| subgraph variant_calling [Variant Calling (parallel)] | ||
| vc_fork[ ] | ||
| mutect2[Mutect2] | ||
| strelka[Strelka2] | ||
| sage[SAGE] | ||
| vc_join[ ] | ||
|
|
||
| vc_fork -->|dna,rna| mutect2 | ||
| vc_fork -->|dna,rna| strelka | ||
| vc_fork -->|dna,rna| sage | ||
| mutect2 -->|dna,rna| vc_join | ||
| strelka -->|dna,rna| vc_join | ||
| sage -->|dna,rna| vc_join | ||
| end | ||
|
|
||
| subgraph normalization [Normalization & Annotation] | ||
| vt_decompose[VT Decompose] | ||
| vt_normalize[VT Normalize] | ||
| ensemblvep[Ensembl VEP] | ||
|
|
||
| vt_decompose -->|dna,rna| vt_normalize | ||
| vt_normalize -->|dna,rna| ensemblvep | ||
| end | ||
|
|
||
| subgraph consensus [Consensus & Filtering] | ||
| vcf2maf[vcf2MAF] | ||
| run_consensus[Consensus] | ||
| maf_filtering[MAF Filtering] | ||
|
|
||
| vcf2maf -->|dna,rna| run_consensus | ||
| run_consensus -->|dna,rna| maf_filtering | ||
| end | ||
|
|
||
| subgraph realign [Realignment (RNA) [OPTIONAL]] | ||
| maf2bed[MAF2BED] | ||
| extract_reads[Extract Reads] | ||
| hisat2[HISAT2] | ||
| markdup_re[MarkDuplicates] | ||
| splitncigar_re[SplitNCigarReads] | ||
| bqsr_re[BQSR] | ||
| varcall_re[Variant Calling] | ||
| norm_re[Normalization] | ||
| annotate_re[Annotation] | ||
| consensus_re[Consensus] | ||
| filter_re[MAF Filtering] | ||
|
|
||
| maf2bed -->|realignment| extract_reads | ||
| extract_reads -->|realignment| hisat2 | ||
| hisat2 -->|realignment| markdup_re | ||
| markdup_re -->|realignment| splitncigar_re | ||
| splitncigar_re -->|realignment| bqsr_re | ||
| bqsr_re -->|realignment| varcall_re | ||
| varcall_re -->|realignment| norm_re | ||
| norm_re -->|realignment| annotate_re | ||
| annotate_re -->|realignment| consensus_re | ||
| consensus_re -->|realignment| filter_re | ||
| end | ||
|
|
||
| subgraph reporting [Reporting] | ||
| rna_filter[RNA MAF Filtering] | ||
| rna_filter -->|rna,realignment| multiqc | ||
| multiqc[MultiQC] | ||
| report_out[ ] | ||
|
|
||
| multiqc -->|rna,realignment| report_out | ||
| end | ||
|
|
||
| %% Inter-section edges | ||
| maf_filtering -->|realignment| maf2bed | ||
| samtools_merge -->|dna,rna| markduplicates | ||
| mosdepth -->|dna,rna| vc_fork | ||
| vc_join -->|dna,rna| vt_decompose | ||
| ensemblvep -->|dna,rna| vcf2maf | ||
| filter_re -->|realignment| rna_filter | ||
| maf_filtering -->|rna| rna_filter |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.