Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Jul 18, 2024
1 parent a753872 commit 4399e9f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,20 @@ produces:

![upset plot of 10 sketches intersections](examples/10sketches.upset.png)

### `venn` - plot 2- or 3-way sketch intersections using Venn diagrams

Plot a Venn diagram of the intersections between two or three sketches.

This command:
```
sourmash scripts venn sketches/{2,47,63}.sig.zip \
-o 3sketches.venn.png
```

produces:

![venn diagram of 3 sketches intersections](examples/3sketches.venn.png)

## Support

We suggest filing issues in [the main sourmash issue tracker](https://github.com/dib-lab/sourmash/issues) as that receives more attention!
Expand Down
Binary file added examples/3sketches.venn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions examples/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ rule all:
"10sketches.upset.png",
"tsne.64sketches.cmp.png",
"tsne2.64sketches.cmp.png",
"3sketches.venn.png",

rule cmp_3sketches:
input:
Expand Down Expand Up @@ -253,3 +254,13 @@ rule upset_10sketches:
shell: """
sourmash scripts upset {input.sigs} -o {output.fig}
"""

rule venn_3sketches:
input:
expand("sketches/{n}.sig.zip", n=sketches_3)
output:
png="3sketches.venn.png",
shell: """
sourmash scripts venn {input} -o {output}
"""

0 comments on commit 4399e9f

Please sign in to comment.