Skip to content

Commit e8da918

Browse files
authored
Merge pull request #46 from cokelaer/main
fix regression and update pyproject
2 parents 6b1c1df + 4a13250 commit e8da918

File tree

6 files changed

+62
-19
lines changed

6 files changed

+62
-19
lines changed

README.rst

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

pyproject.toml

Lines changed: 4 additions & 3 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.3"
7+
version = "0.19.4"
88
description = "A RNAseq pipeline from raw reads to feature counts"
99
authors = ["Sequana Team"]
1010
license = "BSD-3"
@@ -34,9 +34,10 @@ packages = [
3434

3535
[tool.poetry.dependencies]
3636
python = ">=3.8,<4.0"
37-
sequana = ">=0.16.0"
38-
sequana_pipetools = ">=0.16.2"
37+
sequana = ">=0.17.2"
38+
sequana_pipetools = ">=1.0.2"
3939
click-completion = "^0.5.2"
40+
pulp = "<2.8.0"
4041

4142

4243
[tool.poetry.scripts]

sequana_pipelines/rnaseq/config.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,10 @@ feature_counts:
310310
# - threads: number of threads to be used
311311
bam_coverage:
312312
do: false
313-
options:
314-
binSize: 10
315-
genomeSize: 2150570000 ##mm10
316-
extendReads: 65
317-
minFragmentLength: 0 #Note that a value other than 0 will exclude all single-end reads.
318-
maxFragmentLength: 0 #A value of 0 disables filtering and is needed for including single-end and orphan reads.
313+
options: "--binSize 10 --genomeSize 2150000000"
314+
#extendReads: 65
315+
#minFragmentLength: 0 #Note that a value other than 0 will exclude all single-end reads.
316+
#maxFragmentLength: 0 #A value of 0 disables filtering and is needed for including single-end and orphan reads.
319317
threads: 4
320318
resources:
321319
mem: 20G

sequana_pipelines/rnaseq/main.py

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def main(**options):
265265
gff = GFF3(gff_file)
266266
df_gff = gff.df # This takes one minute on eukaryotes. No need to
267267
valid_features = gff.features # about 3 seconds
268-
valid_attributes = gff.attributes # about 10 seconds
268+
valid_attributes = gff.get_attributes() # about 10 seconds
269269

270270
# first check the rRNA feature
271271
if cfg["general"]["rRNA_feature"] and cfg["general"]["rRNA_feature"] not in valid_features:

sequana_pipelines/rnaseq/rnaseq.rules

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ elif manager.config.trimming.software_choice == "fastp":
366366
options_fastp += "--disable_quality_filtering"
367367

368368
rule fastp:
369-
input:
369+
input:
370370
sample=manager.getrawdata()
371371
output:
372372
trimmed=__clean_fastq__output,
@@ -425,7 +425,7 @@ else:
425425
# ========== decompress and sanity check
426426
#
427427
if int(config['bowtie1_mapping_rna']['nreads']) != -1:
428-
extra = int(config['bowtie1_mapping_rna']['nreads']) % 4
428+
extra = int(config['bowtie1_mapping_rna']['nreads']) * 4
429429
config['bowtie1_mapping_rna']['nreads'] -= extra
430430

431431

@@ -723,7 +723,7 @@ else :
723723
fc_outdir = "post_analysis/feature_counts/"
724724

725725
if manager.config.feature_counts.do and manager.config.general.aligner not in ['salmon']:
726-
# Guessing strandness is not always straightfoward; Even when we set it;
726+
# Guessing strandness is not always straightfoward; Even when we set it;
727727
# collaborators may want to look at the other options. So, we compute
728728
# everything with the 3 different options of strandness.
729729
# We will copy one of them based on our criteria, but all 3 will be
@@ -769,7 +769,7 @@ if manager.config.feature_counts.do and manager.config.general.aligner not in ['
769769
f"{manager.wrappers}/wrappers/feature_counts"
770770

771771

772-
# ===================== guessing the strand
772+
# ===================== guessing the strand
773773
#
774774
__guess_strandness__output = expand(fc_outdir + "{sample}_feature.out", sample=manager.samples)
775775
rule guess_strandness:
@@ -783,7 +783,7 @@ if manager.config.feature_counts.do and manager.config.general.aligner not in ['
783783
# We compute all strandness
784784
import sequana.featurecounts as fc
785785

786-
mfc = fc.MultiFeatureCount(rnaseq_folder=".",
786+
mfc = fc.MultiFeatureCount(rnaseq_folder=".",
787787
tolerance=manager.config.feature_counts.tolerance)
788788
mfc.df.to_csv(output.summary)
789789

@@ -943,8 +943,8 @@ if config["rnaseqc"]["do"] and config['general']['aligner'] != 'salmon':
943943
output:
944944
gtf = temp("tmp/test.gtf")
945945
run:
946-
# If input GTF has no exon or genes, an error message is printed and
947-
# no files are created. This seems to be an issue in rnaseqc.
946+
# If input GTF has no exon or genes, an error message is printed and
947+
# no files are created. This seems to be an issue in rnaseqc.
948948
# So, we create dummy gene and exon
949949
with open(output.gtf, "w") as ff:
950950
ff.write(open(input['gtf'], "r").read())

test/data/Saccer3/Saccer3_rRNA.fa

Lines changed: 44 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)