From dec8818b9cf3a3b24f857b6c1857b55a7b53989b Mon Sep 17 00:00:00 2001
From: Sander Bollen <a.h.b.bollen@lumc.nl>
Date: Wed, 29 Nov 2017 14:16:01 +0100
Subject: [PATCH] graph

---
 README.md | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/README.md b/README.md
index 5ef13cf..a341a1c 100644
--- a/README.md
+++ b/README.md
@@ -91,6 +91,24 @@ The following reference files **may** be provided:
 
 # Graph
 
+Below you can see the rulegraph of the pipeline. The main variant calling flow
+is highlighted in red. This only shows dependencies
+between rules, and not between jobs. The actual job graph is considerably
+more complex, as nearly all rules are duplicated by sample and some
+(the scatter jobs) additionally by chunk. 
+
+As a rough estimate of the total number of jobs in pipeline you can use
+the followig formula:
+
+```math
+jobs = 4+(22*n_samples)+(1*n_samples*n_beds)+(1*n_samples*n_chunks)+(1*n_chunks)
+``` 
+
+This gives about 12,000 jobs for a 96-sample run with 2 bed files and 100 chunks.
+
+NOTE: the graph will only render if your markdown viewer supports `plantuml`.
+Having trouble viewing the graph? See [this](img/rulegraph.svg) static SVG in stead.
+
 ```plantuml
 digraph snakemake_dag {
     graph[bgcolor=white, margin=0];
-- 
GitLab