Skip to content

Commit 91d9963

Browse files
committed
Add extra test
1 parent 61f6fc2 commit 91d9963

File tree

2 files changed

+51
-6
lines changed

2 files changed

+51
-6
lines changed

bio/mapdamage2/test/Snakefile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,33 @@ rule mapdamage2_rescale:
5959
threads: 1
6060
wrapper:
6161
"master/bio/mapdamage2"
62+
63+
64+
rule mapdamage2_all:
65+
input:
66+
bam="mapped/{sample}.bam",
67+
ref="genome.fasta",
68+
output:
69+
GtoA3p="resultsall/{sample}.3pGtoA_freq.txt",
70+
CtoT5p="resultsall/{sample}.5pCtoT_freq.txt",
71+
dnacomp="resultsall/{sample}.dnacomp.txt",
72+
lg_dist="resultsall/{sample}.lgdistribution.txt",
73+
misinc="resultsall/{sample}.misincorporation.txt",
74+
plot_misinc="resultsall/{sample}.Fragmisincorporation_plot.pdf",
75+
plot_len="resultsall/{sample}.Length_plot.pdf",
76+
stats_ref="results/all/{sample}.dnacomp_genome.csv",
77+
stats_prob="results/all/{sample}.Stats_out_MCMC_correct_prob.csv",
78+
stats_hist="results/all/{sample}.Stats_out_MCMC_hist.pdf",
79+
stats_iter="results/all/{sample}.Stats_out_MCMC_iter.csv",
80+
stats_summ="results/all/{sample}.Stats_out_MCMC_iter_summ_stat.csv",
81+
stats_plot_pred="results/all/{sample}.Stats_out_MCMC_post_pred.pdf",
82+
stats_plot_trace="results/all/{sample}.Stats_out_MCMC_trace.pdf",
83+
bam="results/all/{sample}.bam",
84+
log="results/all/{sample}.log",
85+
params:
86+
extra="--stats-only --burn 10 --iter 10",
87+
log:
88+
"logs/all/{sample}.log",
89+
threads: 1
90+
wrapper:
91+
"master/bio/mapdamage2"

test_wrappers.py

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ def _run(wrapper, cmd, check_log=None, compare_results_with_expected=None):
134134
return _run
135135

136136

137-
138137
def test_aria2c(run):
139138
run(
140139
"utils/aria2c",
@@ -1138,6 +1137,7 @@ def test_mapdamage2(run):
11381137
"1",
11391138
"--use-conda",
11401139
"results/rescale/a.bam",
1140+
"results/all/a.bam",
11411141
],
11421142
)
11431143

@@ -3301,11 +3301,25 @@ def test_fastq_screen(run):
33013301
)
33023302
run(
33033303
"bio/fastq_screen",
3304-
["snakemake", "--cores", "1", "qc/a.fastq_screen_conf.txt", "--use-conda", "-F"],
3304+
[
3305+
"snakemake",
3306+
"--cores",
3307+
"1",
3308+
"qc/a.fastq_screen_conf.txt",
3309+
"--use-conda",
3310+
"-F",
3311+
],
33053312
)
33063313
run(
33073314
"bio/fastq_screen",
3308-
["snakemake", "--cores", "1", "qc/a.fastq_screen_nopng.txt", "--use-conda", "-F"],
3315+
[
3316+
"snakemake",
3317+
"--cores",
3318+
"1",
3319+
"qc/a.fastq_screen_nopng.txt",
3320+
"--use-conda",
3321+
"-F",
3322+
],
33093323
)
33103324

33113325

@@ -4333,6 +4347,7 @@ def test_samtools_fixmate(run):
43334347
["snakemake", "--cores", "1", "fixed/a.bam", "--use-conda", "-F"],
43344348
)
43354349

4350+
43364351
def test_pyfaidx(run):
43374352
run(
43384353
"bio/pyfaidx",
@@ -7060,6 +7075,7 @@ def test_mehari_annotate_seqvars(run):
70607075
],
70617076
)
70627077

7078+
70637079
def test_rasterio_clip_geotiff(run):
70647080
run(
70657081
"geo/rasterio/clip",
@@ -7071,7 +7087,6 @@ def test_rasterio_clip_geotiff(run):
70717087
"-F",
70727088
"results/montenegro.tiff",
70737089
"results/switzerland.tiff",
7074-
"results/puerto_vallarta_small.tiff"
7075-
]
7076-
7090+
"results/puerto_vallarta_small.tiff",
7091+
],
70777092
)

0 commit comments

Comments
 (0)