Skip to content

Commit 89ba7f6

Browse files
cimendescimendes
authored andcommitted
updated denim recipe
updated dengue_typing
1 parent fd37b75 commit 89ba7f6

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

flowcraft/generator/components/typing.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,8 @@ def __init__(self, **kwargs):
133133
self.directives = {"dengue_typing": {
134134
"cpus": 4,
135135
"memory": "'4GB'",
136-
"container": "flowcraft/dengue_typing",
137-
"version": "v1.0-1"
136+
"container": "flowcraft/seq_typing",
137+
"version": "2.0-1"
138138
}}
139139

140-
self.params = {
141-
"BD_sequence_file": {
142-
"default": "'/dengue_DB/blast_db/GenotypesDENV_14-05-18.problematic_sequences_corrected.fasta.corrected.fasta.iupac_removed.fasta'",
143-
"description":
144-
"Path to the DB sequence file. If Blast DB was already"
145-
"produced only provide the file that doesn't end with '.n*'."
146-
"If no blast DB is found for the DB sequence file, one will"
147-
"be created. If more than one Blast DB file is passed, a type"
148-
"for each file will be determined."
149-
}
150-
}
151140

flowcraft/generator/recipes/denim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ def __init__(self):
1717
self.pipeline_str = "integrity_coverage " \
1818
"fastqc_trimmomatic " \
1919
"filter_poly " \
20-
"remove_host " \
2120
"bowtie " \
2221
"retrieve_mapped " \
22+
"remove_host " \
2323
"viral_assembly " \
2424
"assembly_mapping " \
2525
"pilon " \

flowcraft/generator/templates/dengue_typing.nf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
file(params.BD_sequence_file{{ param_id }}) ? params.BD_sequence_file{{ param_id }} : exit(1, "'BD_sequence_file{{ param_id }}' parameter missing")
2-
31
process dengue_typing_{{ pid }} {
42

53
// Send POST request to platform
@@ -26,7 +24,7 @@ process dengue_typing_{{ pid }} {
2624
cp -r /NGStools/ReMatCh rematch_temp
2725
export PATH="\$(pwd)/rematch_temp/ReMatCh:\$PATH"
2826
29-
seq_typing.py assembly -f ${assembly} -b ${ params.BD_sequence_file{{ param_id }} } -o ./ -j $task.cpus -t nucl
27+
seq_typing.py assembly --org Dengue Virus -f ${assembly} -o ./ -j $task.cpus -t nucl
3028
3129
# Add information to dotfiles
3230
json_str="{'tableRow':[{'sample':'${sample_id}','data':[{'header':'seqtyping','value':'\$(cat seq_typing.report.txt)','table':'typing'}]}],'metadata':[{'sample':'${sample_id}','treeData':'\$(cat seq_typing.report.txt)','column':'typing'}]}"

0 commit comments

Comments
 (0)