Skip to content

Commit 8ff27e1

Browse files
mberacocheaKateSakharova
authored andcommitted
AntiSmash to gff - refactor.
Removed the dependency of the json file.
1 parent d3c2c64 commit 8ff27e1

21 files changed

+511
-718
lines changed

tools/Assembly/antismash/chunking_antismash_with_conditionals/antismash-subwf.cwl

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ inputs:
1818
accession: string
1919

2020
outputs:
21-
antismash_js:
22-
type: File
23-
outputSource: fix_geneclusters_json/fixed_js
2421
antismash_txt:
2522
type: File
2623
outputSource: fix_geneclusters_txt/fixed_txt
@@ -43,7 +40,6 @@ steps:
4340
source: fasta_file
4441
valueFrom: $(self.nameext)
4542
out:
46-
- geneclusters_js
4743
- geneclusters_txt
4844
- embl_file
4945
- gbk_file
@@ -71,22 +67,3 @@ steps:
7167
source: fasta_file
7268
valueFrom: $(self.basename).gncl.txt
7369
out: [ fixed_txt ]
74-
75-
# convert js to json
76-
antismash_json_generation:
77-
run: post-processing/json_generation/antismash_json_generation.cwl
78-
in:
79-
input_js: run_antismash/geneclusters_js
80-
outputname: {default: 'geneclusters.json'}
81-
out: [ output_json ]
82-
83-
# change json
84-
fix_geneclusters_json:
85-
run: post-processing/fix_geneclusters_js/change_geneclusters_js.cwl
86-
in:
87-
input_geneclusters_js: antismash_json_generation/output_json
88-
output_filename:
89-
source: fasta_file
90-
valueFrom: $(self.basename).gncl.json
91-
accession: accession
92-
out: [ fixed_js ]

tools/Assembly/antismash/chunking_antismash_with_conditionals/antismash_chunking_subwf.cwl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,10 @@ steps:
7373
source: filtered_fasta
7474
valueFrom: $(self.nameroot)
7575
out:
76-
- antismash_js
7776
- antismash_txt
7877
- antismash_gbk
7978
- antismash_embl
8079

81-
unite_geneclusters_json:
82-
run: post-processing/json_generation/json_fix_subwf.cwl
83-
in:
84-
jsons: run_antismash/antismash_js
85-
filtered_fasta: filtered_fasta
86-
out: [ antismash_result_json ]
87-
8880
unite_geneclusters_txt:
8981
run: ../../../../utils/concatenate.cwl
9082
in:
@@ -126,7 +118,6 @@ steps:
126118
in:
127119
antismash_geneclus: antismash_summary/reformatted_clusters
128120
antismash_embl: unite_embl/result
129-
antismash_gc_json: unite_geneclusters_json/antismash_result_json
130121
output_name:
131122
source: filtered_fasta
132123
valueFrom: $(self.nameroot).antismash.gff

tools/Assembly/antismash/chunking_antismash_with_conditionals/post-processing/GFF_antismash/antismash_to_gff.cwl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ hints:
1313
DockerRequirement:
1414
dockerPull: alpine:3.9.4
1515

16-
baseCommand: [antismash_to_gff.py]
16+
baseCommand: [antismash_to_gff_nojson.py]
1717

1818
inputs:
1919
antismash_geneclus:
@@ -24,10 +24,6 @@ inputs:
2424
type: File
2525
inputBinding:
2626
prefix: -e
27-
antismash_gc_json:
28-
type: File
29-
inputBinding:
30-
prefix: -j
3127
output_name:
3228
type: string
3329
inputBinding:

tools/Assembly/antismash/chunking_antismash_with_conditionals/post-processing/GFF_antismash/antismash_to_gff.py

Lines changed: 0 additions & 222 deletions
This file was deleted.

tools/Assembly/antismash/chunking_antismash_with_conditionals/post-processing/GFF_antismash/antismash_to_gff.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@ antismash_geneclus:
44
antismash_embl:
55
class: File
66
path: ../antismash/expected-output/assembly-SRR1620013_small_FASTA_FASTA_antismash_final.embl.gz
7-
antismash_gc_json:
8-
class: File
9-
path: ../../../input_examples/assembly/geneclusters.json
107
output_name: assembly-SRR1620013_small_FASTA_FASTA.antismash.gff

0 commit comments

Comments
 (0)