Skip to content

Commit 3566593

Browse files
authored
Merge pull request #47 from cokelaer/main
Update summary, pin sequana to use new plots
2 parents e8da918 + 5c1e016 commit 3566593

File tree

5 files changed

+13
-19
lines changed

5 files changed

+13
-19
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ Changelog
177177
========= ====================================================================
178178
Version Description
179179
========= ====================================================================
180-
0.19.4 * Fix regression due to new sequana version
181-
*
180+
0.20.0 * Fix regression due to new sequana version
181+
* Update summary html to use new sequana plots
182182
0.19.3 * fix regression with click to set the default rRNA to 'rRNA' again.
183183
0.19.2 * fix bowtie1 regression in the log file, paired end case in
184184
multiqc and rnadiff script (regression)

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "sequana-rnaseq"
7-
version = "0.19.4"
7+
version = "0.20.0"
88
description = "A RNAseq pipeline from raw reads to feature counts"
99
authors = ["Sequana Team"]
1010
license = "BSD-3"
@@ -34,7 +34,7 @@ packages = [
3434

3535
[tool.poetry.dependencies]
3636
python = ">=3.8,<4.0"
37-
sequana = ">=0.17.2"
37+
sequana = ">=0.17.3"
3838
sequana_pipetools = ">=1.0.2"
3939
click-completion = "^0.5.2"
4040
pulp = "<2.8.0"

sequana_pipelines/rnaseq/rnaseq.rules

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,7 @@ else:
426426
#
427427
if int(config['bowtie1_mapping_rna']['nreads']) != -1:
428428
extra = int(config['bowtie1_mapping_rna']['nreads']) * 4
429-
config['bowtie1_mapping_rna']['nreads'] -= extra
430-
429+
config['bowtie1_mapping_rna']['nreads'] = extra
431430

432431
rule sample_rRNA:
433432
input:
@@ -1159,14 +1158,9 @@ onsuccess:
11591158
intro += """<h2>Mapping rate</h2>"""
11601159
if config['general']['aligner'] == "bowtie2":
11611160
from sequana.multiqc.plots import Bowtie2
1162-
if not manager.paired:
1163-
filename = "multiqc/multiqc_data/mqc_bowtie2_se_plot_1.txt"
1164-
if not os.path.exists(filename):
1165-
filename = "multiqc/multiqc_report_data/mqc_bowtie2_se_plot_1.txt"
1166-
else:
1167-
filename = "multiqc/multiqc_data/mqc_bowtie2_pe_plot_1.txt"
1168-
if not os.path.exists(filename):
1169-
filename = "multiqc/multiqc_report_data/mqc_bowtie2_pe_plot_1.txt"
1161+
filename = "multiqc/multiqc_data/multiqc_bowtie2.txt"
1162+
if not os.path.exists(filename):
1163+
filename = "multiqc/multiqc_report_data/multiqc_bowtie2.txt"
11701164
br = Bowtie2(filename)
11711165
fig = br.plot(html_code=True)
11721166
from plotly import offline
@@ -1185,9 +1179,9 @@ onsuccess:
11851179
try:
11861180
from sequana.multiqc.plots import FeatureCounts
11871181
intro += """<h2>Annotation rate</h2>"""
1188-
filename = "multiqc/multiqc_report_data/mqc_featureCounts_assignment_plot_1.txt"
1182+
filename = "multiqc/multiqc_report_data/multiqc_featureCounts.txt"
11891183
if not os.path.exists(filename):
1190-
filename = "multiqc/multiqc_data/mqc_featureCounts_assignment_plot_1.txt"
1184+
filename = "multiqc/multiqc_data/multiqc_featureCounts.txt"
11911185

11921186
br = FeatureCounts(filename)
11931187
fig = br.plot(html_code=True)

sequana_pipelines/rnaseq/schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ mapping:
267267
"nreads":
268268
type: int
269269
required: True
270-
range: { min: -1}
270+
range: { min: -1, max: 1e15}
271271

272272
'igvtools':
273273
type: map

test/test_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_full():
165165
with tempfile.TemporaryDirectory() as directory:
166166
wk = directory
167167

168-
cmd = f"sequana_rnaseq --input-directory {sharedir} --genome-directory {saccer3} --aligner-choice bowtie2 --working-directory {wk} --force"
168+
cmd = f"sequana_rnaseq --input-directory {sharedir} --genome-directory {saccer3} --aligner-choice bowtie2 --working-directory {wk} --force --rRNA-feature rRNA_gene"
169169
subprocess.call(cmd.split())
170170

171171
cmd = "snakemake -s rnaseq.rules --wrapper-prefix https://raw.githubusercontent.com/sequana/sequana-wrappers/ -p --cores 2 "
@@ -182,7 +182,7 @@ def test_full_star():
182182
with tempfile.TemporaryDirectory() as directory:
183183
wk = directory
184184

185-
cmd = f"sequana_rnaseq --input-directory {sharedir} --genome-directory {saccer3} --aligner-choice star --working-directory {wk} --force"
185+
cmd = f"sequana_rnaseq --input-directory {sharedir} --genome-directory {saccer3} --aligner-choice star --working-directory {wk} --force --rRNA-feature rRNA_gene"
186186
subprocess.call(cmd.split())
187187

188188
cmd = "snakemake -s rnaseq.rules --wrapper-prefix https://raw.githubusercontent.com/sequana/sequana-wrappers/ -p --cores 2 "

0 commit comments

Comments
 (0)