Mercurial > repos > bgruening > json2yolosegment
comparison json2yolosegment.xml @ 1:dfda27273ead draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 9685f843a52451b3416416094cc0e740f8825dcc
| author | bgruening |
|---|---|
| date | Mon, 07 Jul 2025 06:47:08 +0000 |
| parents | 252fd085940d |
| children | f6990d85161c |
comparison
equal
deleted
inserted
replaced
| 0:252fd085940d | 1:dfda27273ead |
|---|---|
| 3 <macros> | 3 <macros> |
| 4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
| 5 </macros> | 5 </macros> |
| 6 <expand macro="creator" /> | 6 <expand macro="creator" /> |
| 7 <expand macro="edam" /> | 7 <expand macro="edam" /> |
| 8 <expand macro="requirements" /> | |
| 8 <command detect_errors="aggressive"> | 9 <command detect_errors="aggressive"> |
| 9 <![CDATA[ | 10 <![CDATA[ |
| 10 mkdir ./input ./output && | 11 mkdir ./input ./output && |
| 11 | 12 |
| 12 #for $filename in $in_json: | 13 #for $filename in $in_json: |
| 13 ln -s '$filename' './input/${filename.element_identifier}' && | 14 #if $filename.element_identifier.endswith($filename.ext) |
| 15 ln -s '$filename' './input/${filename.element_identifier}' && | |
| 16 #else: | |
| 17 ln -s '$filename' './input/${filename.element_identifier}.${filename.ext}' && | |
| 18 #end if | |
| 14 #end for | 19 #end for |
| 15 | 20 |
| 16 python '$__tool_directory__/json2yolosegment.py' -i ./input/ -o ./output -c '$class_name' | 21 python '$__tool_directory__/json2yolosegment.py' |
| 17 | 22 -i ./input/ |
| 23 -o ./output | |
| 24 -c '$class_name' | |
| 25 | |
| 18 ]]> | 26 ]]> |
| 19 </command> | 27 </command> |
| 20 <inputs> | 28 <inputs> |
| 21 <param name="in_json" type="data" format="json" multiple="true" label="Input label files" help="The label file is the output of AnyLabeling in JSON format."/> | 29 <param name="in_json" type="data" format="json" multiple="true" label="Input label files" help="The label file is the output of AnyLabeling in JSON format."/> |
| 22 <param name="class_name" type="data" format="txt" label="Class file" help="Class names text file, contains the names of classes, one class per row."/> | 30 <param name="class_name" type="data" format="txt" label="Class file" help="Class names text file, contains the names of classes, one class per row."/> |
| 43 <has_text text="0.7710371819960861" /> | 51 <has_text text="0.7710371819960861" /> |
| 44 </assert_contents> | 52 </assert_contents> |
| 45 </element> | 53 </element> |
| 46 </output_collection> | 54 </output_collection> |
| 47 </test> | 55 </test> |
| 56 <test> | |
| 57 <param name="in_json" value="in_json_noext,in_json1_noext" /> | |
| 58 <param name="class_name" value="class_names.txt" /> | |
| 59 <output_collection name="output_yolo"> | |
| 60 <element name="in_json1_noext"> | |
| 61 <assert_contents> | |
| 62 <has_n_lines n="1" /> | |
| 63 <has_text text="0.7710371819960861" /> | |
| 64 </assert_contents> | |
| 65 </element> | |
| 66 <element name="in_json_noext"> | |
| 67 <assert_contents> | |
| 68 <has_n_lines n="1" /> | |
| 69 <has_text text="0.8532289628180039" /> | |
| 70 </assert_contents> | |
| 71 </element> | |
| 72 </output_collection> | |
| 73 </test> | |
| 48 </tests> | 74 </tests> |
| 49 <help> | 75 <help> |
| 50 <