File tree 5 files changed +42
-7
lines changed
sequana_pipelines/nanomerge
5 files changed +42
-7
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,8 @@ Changelog
147
147
========= ====================================================================
148
148
Version Description
149
149
========= ====================================================================
150
+ 1.1.0 * add subsample option and set to 1,000,000 reads to handle large
151
+ runs such as promethion
150
152
1.0.1 * CSV can now handle sample or samplename column name in samplesheet.
151
153
* Fix the pyco file paths, update requirements and doc
152
154
1.0.0 Stable release ready for production
Original file line number Diff line number Diff line change @@ -25,11 +25,20 @@ samplesheet: "samplesheet.csv"
25
25
# by uncommenting and filling the field extra_prefixes_to_strip.
26
26
#
27
27
# For instance, if you have files called prefix.mess.A.fastq.gz and prefix.B.fastq.gz
28
- # 'prefix.' will be removed automatically because it is common, but not 'mess'.
28
+ # 'prefix.' will be removed automatically because it is common, but not 'mess'.
29
29
# use thoses prefixes in the left to right order ['prefix', 'mess'] or ['prefix.mess']
30
30
#
31
31
# extra_prefixes_to_strip: []
32
32
33
33
apptainers :
34
- pycoqc : https://zenodo.org/record/7746269/files/pycoqc_2.5.2.img
34
+ pycoqc : " https://zenodo.org/record/7746269/files/pycoqc_2.5.2.img"
35
+ graphviz : " https://zenodo.org/record/7928262/files/graphviz_7.0.5.img"
36
+
37
+
38
+ # ##################################################################################
39
+ #
40
+ # subsample: If not None, N number of reads will be randomly selected instead of
41
+ # the entire dataset
42
+ pycoqc :
43
+ subsample : 1000000
35
44
Original file line number Diff line number Diff line change @@ -105,11 +105,13 @@ if config["summary"]:
105
105
"pyco/pyco.html"
106
106
log:
107
107
"pyco/pyco.log"
108
+ params:
109
+ sample=config["pycoqc"]["subsample"]
108
110
container:
109
111
config["apptainers"]["pycoqc"]
110
112
shell:
111
113
"""
112
- pycoQC --summary_file {input} -o {output} > {log} 2>&1
114
+ pycoQC --summary_file {input} -o {output} --sample {params.sample} > {log} 2>&1
113
115
"""
114
116
115
117
@@ -125,15 +127,27 @@ rule merge:
125
127
126
128
127
129
rule rulegraph:
128
- input: str(manager.snakefile)
130
+ input:
131
+ workflow.snakefile
129
132
output:
130
- svg = ".sequana /rulegraph.svg "
133
+ "rulegraph /rulegraph.dot "
131
134
params:
132
135
configname = "config.yaml"
133
136
wrapper:
134
137
f"{sequana_wrapper_branch}/wrappers/rulegraph"
135
138
136
139
140
+ rule dot2svg:
141
+ input:
142
+ "rulegraph/rulegraph.dot"
143
+ output:
144
+ ".sequana/rulegraph.svg"
145
+ container:
146
+ config['apptainers']['graphviz']
147
+ shell:
148
+ """dot -Tsvg {input} -o {output}"""
149
+
150
+
137
151
rule html_report:
138
152
input:
139
153
list(expected_fastqs) + qc_file
Original file line number Diff line number Diff line change @@ -22,3 +22,13 @@ mapping:
22
22
" apptainers " :
23
23
type : any
24
24
required : true
25
+
26
+ " pycoqc " :
27
+ type : map
28
+ mapping :
29
+ " subsample " :
30
+ type : int
31
+ required : False
32
+
33
+
34
+
Original file line number Diff line number Diff line change 10
10
11
11
12
12
_MAJOR = 1
13
- _MINOR = 0
14
- _MICRO = 1
13
+ _MINOR = 1
14
+ _MICRO = 0
15
15
version = f"{ _MAJOR } .{ _MINOR } .{ _MICRO } "
16
16
release = f"{ _MAJOR } .{ _MINOR } "
17
17
You can’t perform that action at this time.
0 commit comments