Skip to content

Commit

Permalink
Add workflow rule graph
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmig committed Jul 25, 2024
1 parent ab87f37 commit 8db811b
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

A Snakemake pipeline to find SARS-CoV-2 clusters in a reference phylogeny.

![Simplified workflow rules](/docs/rules-simple.png)

It requires an input directory (`INPUT_DIR` parameter, default: `input/`) containing at least
one `.txt` file with a list of sample IDs (one per line). Each ID list is evaluated
separately, possibly in parallel.
Expand Down
Binary file added docs/rules-simple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions docs/rules.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
digraph snakemake_dag {
graph[bgcolor=white, margin=0];
node[shape=box, style=rounded, fontname=sans, fontsize=10, penwidth=2];
edge[penwidth=2, color=grey];
0[label = "all", color = "0.47 0.6 0.85", style="rounded"];
1[label = "calculate_clusters", color = "0.35 0.6 0.85", style="rounded"];
2[label = "build_phylo4", color = "0.00 0.6 0.85", style="rounded"];
3[label = "phylogenetic_placement", color = "0.51 0.6 0.85", style="rounded"];
4[label = "extract_records", color = "0.43 0.6 0.85", style="rounded"];
5[label = "get_problematic_vcf", color = "0.39 0.6 0.85", style="rounded"];
6[label = "get_reference_tree", color = "0.59 0.6 0.85", style="rounded"];
7[label = "summarize_results", color = "0.27 0.6 0.85", style="rounded"];
8[label = "estimate_fitness", color = "0.04 0.6 0.85", style="rounded"];
9[label = "build_haplotype_metadata", color = "0.31 0.6 0.85", style="rounded"];
10[label = "report_estimated_fitness", color = "0.08 0.6 0.85", style="rounded"];
11[label = "report_haplotype_timeline", color = "0.12 0.6 0.85", style="rounded"];
12[label = "report_summarized_timeline", color = "0.24 0.6 0.85", style="rounded"];
13[label = "report_age_differences", color = "0.63 0.6 0.85", style="rounded"];
14[label = "build_age_corrected_haplotype_metadata", color = "0.55 0.6 0.85", style="rounded"];
15[label = "report_age_vs_background", color = "0.20 0.6 0.85", style="rounded"];
16[label = "report_missing_data", color = "0.16 0.6 0.85", style="rounded"];
11 -> 0
8 -> 0
10 -> 0
16 -> 0
15 -> 0
12 -> 0
7 -> 0
1 -> 0
13 -> 0
2 -> 1
4 -> 1
4 -> 2
3 -> 2
6 -> 3
5 -> 3
4 -> 3
1 -> 7
4 -> 7
9 -> 8
1 -> 9
4 -> 9
8 -> 10
9 -> 11
9 -> 12
14 -> 13
9 -> 14
14 -> 15
14 -> 16
}
Binary file added docs/rules.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8db811b

Please sign in to comment.