Mercurial > repos > iuc > beacon2_pxf2bff
comparison pxf2bff.xml @ 0:30605b5fc43f draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
author | iuc |
---|---|
date | Sun, 01 Oct 2023 16:31:09 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:30605b5fc43f |
---|---|
1 <tool id="beacon2_pxf2bff" name="Beacon2 PXF2BFF" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> | |
2 <description>converts Phenopacket PXF (JSON) to BFF (JSON)</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="xrefs"/> | |
7 <expand macro="requirements"/> | |
8 <expand macro="creators"/> | |
9 <command detect_errors="exit_code"><![CDATA[ | |
10 #import re | |
11 #set $names = [] | |
12 #set $x=1 | |
13 #for $x, $i in enumerate($input): | |
14 #set $name_base = re.sub('[^\w\-_\.]', '_', $i.element_identifier) | |
15 #set $name = $name_base | |
16 #silent $names.append( $name ) | |
17 ln -s '$i' ${name} && | |
18 #end for | |
19 pxf2bff | |
20 #for $name in $names: | |
21 -i ${name} | |
22 #end for | |
23 -o ./ | |
24 ]]></command> | |
25 <inputs> | |
26 <param argument="--input" type="data" multiple="true" format="json" label="Phenopacket JSON files" help="" /> | |
27 </inputs> | |
28 <outputs> | |
29 <data name="BFF_JSON_File" format="json" label="${tool.name} on ${on_string}: BFF_JSON_File" from_work_dir="individuals.json" /> | |
30 </outputs> | |
31 <tests> | |
32 <test expect_num_outputs="1"> | |
33 <param name="input" ftype="json" value="EGAF00005572750.json,EGAF00005572753.json,EGAF00005572884.json,EGAF00005572893.json,EGAF00005572727.json,EGAF00005572756.json,EGAF00005572721.json,EGAF00005572902.json,EGAF00005572759.json,EGAF00005572881.json,EGAF00005572896.json,EGAF00005572890.json,EGAF00005572861.json,EGAF00005572899.json,EGAF00005572762.json,EGAF00005572887.json,EGAF00005572724.json,EGAF00005572747.json" /> | |
34 <output name="BFF_JSON_File" file="individuals.json" /> | |
35 </test> | |
36 </tests> | |
37 <help><![CDATA[ | |
38 The tool combines different Phenopacket JSON files into one JSON file. The Phenopacket Schema represents an open standard for sharing disease and phenotype information to | |
39 improve our ability to understand, diagnose, and treat both rare and common diseases. The generated file will be ready to be stored on the MongoDB instance as MongoDB works directly with JSON files. | |
40 ]]></help> | |
41 <expand macro="citations" /> | |
42 </tool> |