Skip to content

Commit

Permalink
feat: Meryl wrapper (#506)
Browse files Browse the repository at this point in the history
* Added meryl count

* Added meryl union

* Added test

* Added meryl stats

* Made union wrapper more general

* Fixed docs and tests

* Cleanup

* Update bio/meryl/count/environment.yaml

Co-authored-by: Johannes Köster <johannes.koester@uni-due.de>
  • Loading branch information
fgvieira and johanneskoester committed Aug 16, 2022
1 parent c27be68 commit f5ddac1
Show file tree
Hide file tree
Showing 272 changed files with 260 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bio/meryl/count/environment.yaml
@@ -0,0 +1,7 @@
channels:
- conda-forge
- bioconda
- nodefaults
dependencies:
- meryl =1.3
- snakemake-wrapper-utils =0.4
13 changes: 13 additions & 0 deletions bio/meryl/count/meta.yaml
@@ -0,0 +1,13 @@
name: meryl count
description: |
A genomic k-mer counter (and sequence utility) with nice features.
url: https://github.com/marbl/meryl
authors:
- Filipe G. Vieira
input:
- fasta file
output:
- meryl database
notes: |
* The `command` param allows to specify how to count the kmers: `count` (canonical kmers) [default], `count-forward` (only forward kmers), or `count-reverse` (only reverse kmers).
* The `extra` param allows for additional program arguments (kmer size `k` is mandatory).
15 changes: 15 additions & 0 deletions bio/meryl/count/test/Snakefile
@@ -0,0 +1,15 @@
rule meryl_count:
input:
fasta="{genome}.fasta",
output:
directory("{genome}/"),
log:
"logs/meryl_count/{genome}.log",
params:
command="count",
extra="k=32",
threads: 2
resources:
mem_mb=2048,
wrapper:
"master/bio/meryl/count"
2 changes: 2 additions & 0 deletions bio/meryl/count/test/genome.fasta
@@ -0,0 +1,2 @@
>Sheila
GCTAGCTCAGAAAAAAAAAAGATGCGAGGCGTAGGCGATGCGATCGATCGATCTATAGGCTCGAGGCTAGGGCTAGCTGA
34 changes: 34 additions & 0 deletions bio/meryl/count/wrapper.py
@@ -0,0 +1,34 @@
__author__ = "Filipe G. Vieira"
__copyright__ = "Copyright 2022, Filipe G. Vieira"
__license__ = "MIT"


from snakemake.shell import shell
from snakemake_wrapper_utils.snakemake import get_mem


extra = snakemake.params.get("extra", "")
log = snakemake.log_fmt_shell(stdout=True, stderr=True)


command = snakemake.params.get("command", "count")
assert command in [
"count",
"count-forward",
"count-reverse",
], "invalid command specified."


mem_gb = get_mem(snakemake, out_unit="GiB")


shell(
"meryl"
" {command}"
" threads={snakemake.threads}"
" memory={mem_gb}"
" {extra}"
" {snakemake.input}"
" output {snakemake.output}"
" {log}"
)
6 changes: 6 additions & 0 deletions bio/meryl/sets/environment.yaml
@@ -0,0 +1,6 @@
channels:
- bioconda
- conda-forge
- defaults
dependencies:
- meryl =1.3
12 changes: 12 additions & 0 deletions bio/meryl/sets/meta.yaml
@@ -0,0 +1,12 @@
name: meryl sets
description: |
A genomic k-mer counter (and sequence utility) with nice features.
url: https://github.com/marbl/meryl
authors:
- Filipe G. Vieira
input:
- meryl database(s)
output:
- meryl database
notes: |
* The `command` param allows to specify how to handle the kmer sets: `union` (number of inputs) [default], `union-min` (union with minimum count), `union-max` (union with maximum count), `union-sum` (union with sum of the counts), `intersect` (intersect with counts in the first input), `intersect-min` (intersect with minimum count), `intersect-max` (intersect with maximum count), `intersect-sum` (intersect with sum of counts), `subtract` (counts from first input, subtracting counts from the other inputs), `difference` (counts from first input, but none of the other inputs), or `symmetric-difference` (exactly one input).
54 changes: 54 additions & 0 deletions bio/meryl/sets/test/Snakefile
@@ -0,0 +1,54 @@
rule meryl_union:
input:
"{genome}",
"{genome}",
output:
directory("{genome}_union/"),
log:
"logs/{genome}.union.log",
params:
command="union-sum",
wrapper:
"master/bio/meryl/sets"


rule meryl_intersect:
input:
"{genome}",
"{genome}",
output:
directory("{genome}_intersect/"),
log:
"logs/{genome}.intersect.log",
params:
command="intersect-max",
wrapper:
"master/bio/meryl/sets"


rule meryl_subtract:
input:
"{genome}",
"{genome}",
output:
directory("{genome}_subtract/"),
log:
"logs/{genome}.subtract.log",
params:
command="subtract",
wrapper:
"master/bio/meryl/sets"


rule meryl_difference:
input:
"{genome}",
"{genome}",
output:
directory("{genome}_difference/"),
log:
"logs/{genome}.difference.log",
params:
command="difference",
wrapper:
"master/bio/meryl/sets"
Binary file added bio/meryl/sets/test/genome/0x000000.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000000.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000001.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000001.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000010.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000010.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000011.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000011.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000100.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000100.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000101.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000101.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000110.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000110.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000111.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x000111.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001000.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001000.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001001.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001001.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001010.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001010.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001011.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001011.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001100.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001100.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001101.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001101.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001110.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001110.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001111.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x001111.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010000.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010000.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010001.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010001.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010010.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010010.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010011.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010011.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010100.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010100.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010101.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010101.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010110.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010110.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010111.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x010111.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011000.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011000.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011001.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011001.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011010.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011010.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011011.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011011.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011100.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011100.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011101.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011101.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011110.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011110.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011111.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x011111.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100000.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100000.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100001.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100001.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100010.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100010.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100011.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100011.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100100.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100100.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100101.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100101.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100110.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100110.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100111.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x100111.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101000.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101000.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101001.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101001.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101010.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101010.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101011.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101011.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101100.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101100.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101101.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101101.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101110.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101110.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101111.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x101111.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110000.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110000.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110001.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110001.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110010.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110010.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110011.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110011.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110100.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110100.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110101.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110101.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110110.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110110.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110111.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x110111.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111000.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111000.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111001.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111001.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111010.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111010.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111011.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111011.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111100.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111100.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111101.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111101.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111110.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111110.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111111.merylData
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/0x111111.merylIndex
Binary file not shown.
Binary file added bio/meryl/sets/test/genome/merylIndex
Binary file not shown.
28 changes: 28 additions & 0 deletions bio/meryl/sets/wrapper.py
@@ -0,0 +1,28 @@
__author__ = "Filipe G. Vieira"
__copyright__ = "Copyright 2022, Filipe G. Vieira"
__license__ = "MIT"


from snakemake.shell import shell


log = snakemake.log_fmt_shell(stdout=True, stderr=True)


command = snakemake.params.get("command", "union")
assert command in [
"union",
"union-min",
"union-max",
"union-sum",
"intersect",
"intersect-min",
"intersect-max",
"intersect-sum",
"subtract",
"difference",
"symmetric-difference",
], "invalid command specified."


shell("meryl {command} {snakemake.input} output {snakemake.output} {log}")
6 changes: 6 additions & 0 deletions bio/meryl/stats/environment.yaml
@@ -0,0 +1,6 @@
channels:
- bioconda
- conda-forge
- defaults
dependencies:
- meryl =1.3
12 changes: 12 additions & 0 deletions bio/meryl/stats/meta.yaml
@@ -0,0 +1,12 @@
name: meryl stats
description: |
A genomic k-mer counter (and sequence utility) with nice features.
url: https://github.com/marbl/meryl
authors:
- Filipe G. Vieira
input:
- meryl database(s)
output:
- meryl stats (either the kmers, statistics, or histogram)
notes: |
* The `command` param allows to specify which stats to print: `statistics` (display total, unique, distinct kmers) [default], `histogram` (display kmer frequency), or `print` (display kmers).
11 changes: 11 additions & 0 deletions bio/meryl/stats/test/Snakefile
@@ -0,0 +1,11 @@
rule meryl_stats:
input:
"{genome}",
output:
"{genome}.stats",
log:
"logs/meryl_stats/{genome}.log",
params:
command="statistics",
wrapper:
"master/bio/meryl/stats"
Binary file added bio/meryl/stats/test/genome/0x000000.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000000.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000001.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000001.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000010.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000010.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000011.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000011.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000100.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000100.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000101.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000101.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000110.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000110.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000111.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x000111.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001000.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001000.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001001.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001001.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001010.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001010.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001011.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001011.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001100.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001100.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001101.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001101.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001110.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001110.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001111.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x001111.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010000.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010000.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010001.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010001.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010010.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010010.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010011.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010011.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010100.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010100.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010101.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010101.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010110.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010110.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010111.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x010111.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011000.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011000.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011001.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011001.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011010.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011010.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011011.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011011.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011100.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011100.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011101.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011101.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011110.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011110.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011111.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x011111.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100000.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100000.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100001.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100001.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100010.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100010.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100011.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100011.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100100.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100100.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100101.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100101.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100110.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100110.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100111.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x100111.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101000.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101000.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101001.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101001.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101010.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101010.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101011.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101011.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101100.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101100.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101101.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101101.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101110.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101110.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101111.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x101111.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110000.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110000.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110001.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110001.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110010.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110010.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110011.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110011.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110100.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110100.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110101.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110101.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110110.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110110.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110111.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x110111.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111000.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111000.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111001.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111001.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111010.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111010.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111011.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111011.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111100.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111100.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111101.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111101.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111110.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111110.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111111.merylData
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/0x111111.merylIndex
Binary file not shown.
Binary file added bio/meryl/stats/test/genome/merylIndex
Binary file not shown.
20 changes: 20 additions & 0 deletions bio/meryl/stats/wrapper.py
@@ -0,0 +1,20 @@
__author__ = "Filipe G. Vieira"
__copyright__ = "Copyright 2022, Filipe G. Vieira"
__license__ = "MIT"


from snakemake.shell import shell


log = snakemake.log_fmt_shell(stdout=False, stderr=True)


command = snakemake.params.get("command", "statistics")
assert command in [
"statistics",
"histogram",
"print",
], "invalid command specified."


shell("meryl {command} {snakemake.input} > {snakemake.output} {log}")
40 changes: 40 additions & 0 deletions test.py
Expand Up @@ -139,6 +139,46 @@ def run(wrapper, cmd, check_log=None):
os.chdir(origdir)



@skip_if_not_modified
def meryl_count():
run(
"bio/meryl/count",
["snakemake", "--cores", "2", "genome", "--use-conda", "-F"],
)


@skip_if_not_modified
def meryl_sets():
run(
"bio/meryl/sets",
["snakemake", "--cores", "1", "genome_union", "--use-conda", "-F"],
)

run(
"bio/meryl/sets",
["snakemake", "--cores", "1", "genome_intersect", "--use-conda", "-F"],
)

run(
"bio/meryl/sets",
["snakemake", "--cores", "1", "genome_subtract", "--use-conda", "-F"],
)

run(
"bio/meryl/sets",
["snakemake", "--cores", "1", "genome_difference", "--use-conda", "-F"],
)


@skip_if_not_modified
def meryl_union():
run(
"bio/meryl/stats",
["snakemake", "--cores", "1", "genome.stats", "--use-conda", "-F"],
)


@skip_if_not_modified
def test_mashmap():
run(
Expand Down

0 comments on commit f5ddac1

Please sign in to comment.