Mercurial > repos > iuc > beacon2_pxf2bff
annotate pxf2bff.xml @ 1:23449c685168 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit eecd43b81a8c9f2175c50a71ae85ce9185a9d3a7
author | iuc |
---|---|
date | Tue, 16 Apr 2024 09:27:25 +0000 |
parents | 30605b5fc43f |
children |
rev | line source |
---|---|
0
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
1 <tool id="beacon2_pxf2bff" name="Beacon2 PXF2BFF" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
2 <description>converts Phenopacket PXF (JSON) to BFF (JSON)</description> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
3 <macros> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
5 </macros> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
6 <expand macro="xrefs"/> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
7 <expand macro="requirements"/> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
8 <expand macro="creators"/> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
9 <command detect_errors="exit_code"><![CDATA[ |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
10 #import re |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
11 #set $names = [] |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
12 #set $x=1 |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
13 #for $x, $i in enumerate($input): |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
14 #set $name_base = re.sub('[^\w\-_\.]', '_', $i.element_identifier) |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
15 #set $name = $name_base |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
16 #silent $names.append( $name ) |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
17 ln -s '$i' ${name} && |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
18 #end for |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
19 pxf2bff |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
20 #for $name in $names: |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
21 -i ${name} |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
22 #end for |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
23 -o ./ |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
24 ]]></command> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
25 <inputs> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
26 <param argument="--input" type="data" multiple="true" format="json" label="Phenopacket JSON files" help="" /> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
27 </inputs> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
28 <outputs> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
29 <data name="BFF_JSON_File" format="json" label="${tool.name} on ${on_string}: BFF_JSON_File" from_work_dir="individuals.json" /> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
30 </outputs> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
31 <tests> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
32 <test expect_num_outputs="1"> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
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" /> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
34 <output name="BFF_JSON_File" file="individuals.json" /> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
35 </test> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
36 </tests> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
37 <help><![CDATA[ |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
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 |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
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. |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
40 ]]></help> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
41 <expand macro="citations" /> |
30605b5fc43f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/beacon2 commit dcaf8046840f163143075b276dd75909d344ec3a
iuc
parents:
diff
changeset
|
42 </tool> |