comparison nanocompore_db.xml @ 2:ca9e70c0fef8 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/nanocompore commit c2985b5c91a932e175cbfaf9b54a76e23beff9e9"
author iuc
date Thu, 09 Jul 2020 02:39:10 -0400
parents 2af554112418
children 35d3618b124b
comparison
equal deleted inserted replaced
1:2af554112418 2:ca9e70c0fef8
1 <tool id="nanocompore_db" name="NanoComporeDB" version="@TOOL_VERSION@+galaxy1"> 1 <tool id="nanocompore_db" name="NanoComporeDB" version="@TOOL_VERSION@+galaxy2">
2 <description>Process SampComp results database</description> 2 <description>Process SampComp results database</description>
3 <macros> 3 <macros>
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="requirements"/> 6 <expand macro="requirements"/>
7 <command detect_errors="exit_code"><![CDATA[ 7 <command detect_errors="exit_code"><![CDATA[
8 mkdir results && 8 mkdir -p results plots &&
9 tar -xf $db --strip-components 1 -C results/ && 9 tar -xf '$db' --strip-components 1 -C results/ &&
10 python '$__tool_directory__/NanocomporeDB_process.py' 10 python '$__tool_directory__/NanocomporeDB_process.py'
11 --db-path 'results/out_SampComp.db' 11 --db-path 'results/out_SampComp.db'
12 --ref-fasta '$reference' 12 --ref-fasta '$reference'
13 --annotation-bed '$annotation' 13 --annotation-bed '$annotation'
14 --pvalue-types '$pvalue_types'
15 --pvalue-threshold $pvalue_threshold
16 --out-dir ./plots/
14 $bedgraph 17 $bedgraph
18
15 ]]></command> 19 ]]></command>
16 <inputs> 20 <inputs>
17 <param name="reference" type="data" format="fasta" label="The reference genome used for read alignment."/> 21 <param name="reference" type="data" format="fasta" label="The reference genome used for read alignment."/>
18 <param name="annotation" format="bed" type="data" label="BED file containing the annotation of the transcriptome used as reference when mapping"/> 22 <param name="annotation" format="bed" type="data" label="BED file containing the annotation of the transcriptome used as reference when mapping"/>
19 <param name="db" type="data" format="tar" label="SampComp Database" /> 23 <param name="db" type="data" format="tar" label="SampComp Database" />
20 <param argument="--bedgraph" type="boolean" truevalue="--bedgraph" falsevalue="" label="Write output in BEDGRAPH format instead of BED"/> 24 <param argument="--pvalue-types" type="text" value="GMM_logit_pvalue,KS_dwell_pvalue,KS_intensity_pvalue" label="pvalue field names" help="Comma-separated values.">
25 <validator type="regex" message="No valid pvalue field name list.">^(\w+(,\w+)*)?$</validator>
26 </param>
27 <param argument="pvalue-threshold" type="float" value="1.0" min="0.0" label="Maximum reported p-value"/>
28 <param argument="--bedgraph" type="boolean" truevalue="--bedgraph" falsevalue="" label="Write output in BedGraph format instead of BED"/>
21 </inputs> 29 </inputs>
22 <outputs> 30 <outputs>
23 <data name="GMM_logit" format="bed" from_work_dir="GMM_logit_pvalue.bedgraph" label="${tool.name} on ${on_string}: GMM_logit"> 31 <collection name="pvalue_output" type="list">
24 <change_format> 32 <discover_datasets pattern="__name_and_ext__" directory="plots" />
25 <when input="bedgraph" value="true" format="bedgraph"/> 33 </collection>
26 </change_format>
27 </data>
28
29 <data name="KS_dwell" format="bed" from_work_dir="KS_dwell_pvalue.bedgraph" label="${tool.name} on ${on_string}: KS_dwell">
30 <change_format>
31 <when input="bedgraph" value="true" format="bedgraph"/>
32 </change_format>
33 </data>
34
35 <data name="KS_intensity" format="bed" from_work_dir="KS_intensity_pvalue.bedgraph" label="${tool.name} on ${on_string}: KS_intensity">
36 <change_format>
37 <when input="bedgraph" value="true" format="bedgraph"/>
38 </change_format>
39 </data>
40 </outputs> 34 </outputs>
41 <tests> 35 <tests>
42 <test> 36 <test>
43 <param name="reference" value="reference.fa"/> 37 <param name="reference" value="reference.fa"/>
44 <param name="annotation" value="annot.bed"/> 38 <param name="annotation" value="annot.bed"/>
45 <param name="db" value="DB.tar"/> 39 <param name="db" value="DB.tar" ftype="tar" />
46 <output name="GMM_logit" file="GMM_logit_pvalue.bed"/> 40 <output_collection name="pvalue_output" type="list" count="3">
47 <output name="KS_dwell" file="KS_dwell_pvalue.bed"/> 41 <element name="GMM_logit_pvalue" file="GMM_logit_pvalue.bed" ftype="bed"/>
48 <output name="KS_intensity" file="KS_intensity_pvalue.bed"/> 42 <element name="KS_dwell_pvalue" file="KS_dwell_pvalue.bed" ftype="bed"/>
43 <element name="KS_intensity_pvalue" file="KS_intensity_pvalue.bed" ftype="bed"/>
44 </output_collection>
49 </test> 45 </test>
50 <test> 46 <test>
51 <param name="reference" value="reference.fa"/> 47 <param name="reference" value="reference.fa"/>
52 <param name="annotation" value="annot.bed"/> 48 <param name="annotation" value="annot.bed"/>
53 <param name="db" value="DB.tar"/> 49 <param name="db" value="DB.tar" ftype="tar" />
54 <param name="bedgraph" value="true"/> 50 <param name="bedgraph" value="true"/>
55 <output name="GMM_logit" file="GMM_logit_pvalue.bedgraph"/> 51 <param name="pvalue_types" value="GMM_logit_pvalue,KS_dwell_pvalue"/>
56 <output name="KS_dwell" file="KS_dwell_pvalue.bedgraph"/> 52 <output_collection name="pvalue_output" type="list" count="2">
57 <output name="KS_intensity" file="KS_intensity_pvalue.bedgraph"/> 53 <element name="GMM_logit_pvalue" file="GMM_logit_pvalue.bedgraph" ftype="bedgraph"/>
58 </test> 54 <element name="KS_dwell_pvalue" file="KS_dwell_pvalue.bedgraph" ftype="bedgraph"/>
55 </output_collection>
56 </test>
59 </tests> 57 </tests>
60 <help><![CDATA[ 58 <help><![CDATA[
61 Produces interval bed and bedgraph outputs from NanoCompore SampComp results as input using NaonComporeDB API. 59 Produces interval bed and bedgraph outputs from NanoCompore SampComp results as input using NaonComporeDB API.
62 60
63 **References** 61 **References**