Skip to content

Commit 2522fde

Browse files
committed
implemente the threading option for minimap2
1 parent a3c166b commit 2522fde

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Changelog
7676
========= ====================================================================
7777
Version Description
7878
========= ====================================================================
79+
0.8.13 * add the thread option in minimap2 case
7980
0.8.12 * factorise multiqc rule
8081
0.8.11 * Implemente the --from-project option and new framework
8182
* custom HTMrLl report

sequana_pipelines/mapper/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ bwa_mem_mapping:
2929

3030
minimap2:
3131
options: ''
32+
threads: 4
3233

3334
bowtie2_mapping_ref:
3435
options:

sequana_pipelines/mapper/mapper.rules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ elif config['general']['mapper'] == "minimap2":
8080
rule minimap2:
8181
input: __data__input
8282
output: __minimap2__output
83+
threads: config["minimap2"]["threads"]
8384
params:
8485
reference=config['general']['reference_file'],
8586
options=config['minimap2']['options']
8687
shell:
8788
"""
88-
minimap2 {params.reference} {input} {params.options} -a | samtools view -b | bamtools sort -in - -out {output}
89+
minimap2 -t {threads} {params.reference} {input} {params.options} -a | samtools view -b | bamtools sort -in - -out {output}
8990
"""
9091
__bamtools_stats__input = __minimap2__output
9192
elif config['general']['mapper'] == "bowtie2":

sequana_pipelines/mapper/multiqc_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,6 @@ table_columns_visible:
131131
FastQC:
132132
percent_fails: False
133133
total_sequences: True
134-
percent_duplicates: False
134+
percent_duplicates: True
135135
percent_gc: True
136136
avg_sequence_length: True

sequana_pipelines/mapper/schema.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ mapping:
5151
mapping:
5252
"options":
5353
type: str
54+
"threads":
55+
type: int
56+
range: { min: 1 }
5457

5558
"sequana_coverage":
5659
type: map

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
_MAJOR = 0
99
_MINOR = 8
10-
_MICRO = 12
10+
_MICRO = 13
1111
version = '%d.%d.%d' % (_MAJOR, _MINOR, _MICRO)
1212
release = '%d.%d' % (_MAJOR, _MINOR)
1313

0 commit comments

Comments
 (0)