Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cokelaer committed Sep 26, 2023
1 parent e4a31a1 commit 130fe6a
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 68 deletions.
1 change: 1 addition & 0 deletions README.rst
Expand Up @@ -158,6 +158,7 @@ Changelog
========= ====================================================================
Version Description
========= ====================================================================
0.18.0 * New plots in the HTML reports. Includes version of executables.
0.17.2 * CHANGES: in star section, added --limitBAMsortRAM and set to 30G
* BUG: Fix missing params (options) in star_mapping rule not taken
into account
Expand Down
2 changes: 2 additions & 0 deletions environment.yml
Expand Up @@ -7,6 +7,8 @@ channels:
- r

dependencies:
- cutadapt
- atropos
- bowtie
- samtools>1.7
- bamtools
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
@@ -1,2 +1,4 @@
sequana>=0.14.2
sequana_pipetools>=0.9.2
cutadapt
atropos
10 changes: 2 additions & 8 deletions sequana_pipelines/rnaseq/config.yaml
Expand Up @@ -7,6 +7,8 @@
# If input_directory provided, use it otherwise if input_pattern provided,
# use it, otherwise use input_samples.
# ============================================================================
sequana_wrappers: "v0.15.1"

input_directory:
input_readtag: _R[12]_
input_pattern: '*fastq.gz'
Expand Down Expand Up @@ -45,14 +47,6 @@ general:
custom_gff: ''


######################
# if files are required for a pipeline and are within sequana or should
# be downloaded before the pipeline provide them in this section
# Note that sequana and url fields are followed by itemised files or links
# using the front dashes
requirements: ''


#################################################################
# FastQC section
#
Expand Down
10 changes: 9 additions & 1 deletion sequana_pipelines/rnaseq/main.py
Expand Up @@ -69,7 +69,13 @@ def __init__(self, prog=NAME, epilog=None):
"--rRNA-feature",
default="rRNA",
help="""Feature name corresponding to the rRNA to be identified in
the input GFF/GTF files""",
the input GFF/GTF files. Must exist and be valid. If you do not have any,
you may skip this step using --skip-rRNA or provide a fasta file using --contaminant-file""",
)
pipeline_group.add_argument(
"--skip-rRNA",
action="store_true",
help="""skip the mapping on rRNA feature. ignored if --contaminant-file is provided""",
)
pipeline_group.add_argument(
"--contaminant-file",
Expand Down Expand Up @@ -208,6 +214,8 @@ def main(args=None):
"You are using a custom FASTA --contaminant_file so --rRNA-feature will be ignored"
)
cfg.general.rRNA_feature = None
elif options.skip_rRNA:
cfg.general.rRNA_feature = None
else:
cfg.general.rRNA_feature = options.rRNA_feature

Expand Down

0 comments on commit 130fe6a

Please sign in to comment.