comparison cfsan_lexmapr2.xml @ 0:f5c39d0447be

"planemo upload"
author kkonganti
date Wed, 31 Aug 2022 14:32:07 -0400
parents
children ee477cbc39b5
comparison
equal deleted inserted replaced
-1:000000000000 0:f5c39d0447be
1 <tool id="cfsan_lexmapr2" name="Lexmapr2" version="2.0+galaxy0">
2 <description>A Lexicon and Rule-Based Tool for Translating Short Biomedical Specimen Descriptions into Semantic Web Ontology Terms</description>
3 <requirements>
4 <requirement type="package" version="3.7">python</requirement>
5 <requirement type="package">python-dateutil</requirement>
6 <requirement type="package">inflection</requirement>
7 <requirement type="package">matplotlib</requirement>
8 <requirement type="package">pandas</requirement>
9 <requirement type="package">nltk</requirement>
10 <requirement type="package">requests</requirement>
11 <requirement type="package">seaborn</requirement>
12 <requirement type="package">pygraphviz</requirement>
13 </requirements>
14 <version_command>python $__tool_directory__/lexmapr2.py --version</version_command>
15 <command detect_errors="exit_code"><![CDATA[
16 python $__tool_directory__/lexmapr2.py
17 #if ($embl_ont != ""):
18 -e $embl_ont
19 #end if
20 $no_ancestors
21 $bins
22 $full
23 $graph
24 #for $in_json in $input_json
25 #if $in_json
26 -u "$in_json"
27 #end if
28 #end for
29 ]]></command>
30 <environment_variables>
31 <environment_variable name="NLTK_DATA">$__tool_directory__/nltk_data</environment_variable>
32 </environment_variables>
33 <inputs>
34 <param name="input" type="data" format="csv" label="Input CSV"
35 help="First row should be a header and first column should be sample names" />
36 <param name="input_json" type="data" format="json" optional="true"
37 label="User defined bins in JSON format" />
38 <param name="embl_ont" type="text" optional="true"
39 label="User defined comma-separated EMBL Ontology short names" />
40 <param name="bins" truevalue="-b" type="boolean" checked="true"
41 label="Classify samples into default bins" help="Default: true"/>
42 <param name="graph" truevalue="-g" type="boolean" checked="true"
43 label="Visualize summary of mapping and binning" help="Default: true"/>
44 <param name="full" truevalue="-f" type="boolean" checked="false"
45 label="Generate full output format" help="Default: false"/>
46 <param name="no_ancestors" truevalue="-a" type="boolean" checked="false"
47 label="Remove ancestral terms from output" help="Default: false"/>
48 </inputs>
49 <outputs>
50 <data name="lexmapr2_output" format="tsv" label="Lexmapr2: On ${on_string}" from_work_dir="lexmapr2_output.tsv"/>
51 <collection name="plots" type="list" label="Lexmapr2: Plots on ${on_string}">
52 <discover_datasets pattern=".*\.png" ext="png" directory="lexmapr_figures"/>
53 </collection>
54 </outputs>
55 <tests>
56 <test expect_num_outputs="2">
57 <param name="input" value="test.csv"/>
58 </test>
59 </tests>
60 <help><![CDATA[
61
62 .. class:: infomark
63
64 **Purpose**
65
66 Lexmapr2 is a fork of Lexmapr (https://github.com/cidgoh/LexMapr) with the following added functionalitites:
67
68 ::
69
70 - pull ontology accession ids and definitions from EMBL-EBI via the API
71 - group mapped results by parent ontologies
72 - visualize mapping results
73
74
75 ----
76
77 .. class:: infomark
78
79 **Outputs**
80
81 The main output files are:
82
83 ::
84
85 - An tab-seperated file with matched annotations.
86 - A list of Lexmapr2 figures in PNG format.
87
88
89
90 ]]></help>
91 <citations>
92 <citation type="bibtex">
93 @misc{github,
94 author = {Penn, Kayla},
95 year = {2022},
96 title = {LexMapr2},
97 publisher = {GitHub},
98 journal = {GitHub repository},
99 url = {https://github.com/CFSAN-Biostatistics/LexMapr2}}
100 </citation>
101 <citation type="bibtex">
102 @misc{GalaxyToolWrapper,
103 author = {Konganti, Kranti},
104 year = {2022}}
105 </citation>
106 </citations>
107 </tool>