comparison blobtools_plot.xml @ 0:234b3e869b16 draft default tip

"planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/master/tools/blobtools commit 89d41433582a6470135c026aad07b714eb3145d4"
author galaxy-australia
date Wed, 26 Oct 2022 06:54:04 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:234b3e869b16
1 <tool id="blobtools_plot" name="Blobtools plot" version="1.1" >
2 <description>Generate Blobtools plot</description>
3 <xrefs>
4 <xref type='bio.tools'>blobtools</xref>
5 </xrefs>
6 <macros>
7 <import>macros.xml</import>
8 </macros>
9 <expand macro="requirements" />
10 <expand macro="stdio" />
11 <expand macro="version_command" />
12 <command><![CDATA[
13 @SET_TMP_DIR@ &&
14 cp $input_json input.json &&
15 blobtools plot
16 -i input.json
17 -o output
18
19 ]]></command>
20 <inputs>
21 <param name="input_json" type="data" format="json" label="json File" help="Input BlobDB json file"/>
22 <section name="adv_options" title="Advance Options" expanded="False">
23 <param argument="--notitle" type="boolean" truevalue="--notitle" falsevalue="" checked="false" label="Title" help="Do not add filename as title to plot"/>
24 <param argument="--filelabel" type="boolean" truevalue="--filelabel" falsevalue="" checked="false" label="File Label" help="Label axis based on filenames"/>
25 <param argument="--length" type="integer" value="100" label="Minimum Sequence Length" help="Minimum sequence length considered for plotting [default: 100]"/>
26 <param argument="--cindex" type="boolean" truevalue="--cindex" falsevalue="" checked="false" label="Colour" help="Colour blobs by 'c index' [default: False]"/>
27 <param argument="--nohit" type="boolean" truevalue="--nohit" falsevalue="" checked="false" label="Hide sequence" help="Hide sequences without taxonomic annotation [default: False]"/>
28 <param argument="--noscale" type="boolean" truevalue="--noscale" falsevalue="" checked="false" label="Scale sequence" help="Do no scale sequences by length [default: False]"/>
29 <param argument="--legend" type="boolean" truevalue="--legend" falsevalue="" checked="false" label="Plot legend" help="Plot legend of bobplot in separate figure"/>
30 <param argument="--multiplot" type="boolean" truevalue="--multiplot" falsevalue="" checked="false" label="Multi-plot" help="Print blobplot for each taxonomic separately"/>
31 <param argument="--sort" type="text" value="span" label="Sort order" help="Sort order for plotting [default: span]"/>
32 <param name="taxrule" type="select" display="radio" label="Taxonomy Rule" help="Taxonomy rule for computing taxonomy: default bestsum">
33 <option selected="true" value="bestsum">best sum</option>
34 <option value="bestsumorder">best sum order</option>
35 </param>
36 <param name="rank" type="select" display="radio" label="Taxonomic rank">
37 <option value="species">Species</option>
38 <option value="genus">Genus</option>
39 <option value="family">Family</option>
40 <option value="order">Order</option>
41 <option value="phylum" selected="true">Phylum</option>
42 <option value="superkingdom">Superkingdom</option>
43 <option value="all">All</option>
44 </param>
45 <param argument="--label" type="text" value="" label="Groups label" help="Relabel (taxonomic) groups, can be used several times."/>
46 </section>
47 </inputs>
48 <outputs>
49
50 <data name="coverage" format="png" from_work_dir="output*.blobplot.cov0.*" label="${tool.name} on ${on_string} : coverage"/>
51 <data name="read_coverage" format="png" from_work_dir="output*.read_cov.cov0.*" label="${tool.name} on ${on_string} : read coverage"/>
52 <data name="statistic" format="txt" from_work_dir="output*.stats.txt" label="${tool.name} on ${on_string} : statistics "/>
53 </outputs>
54
55 <tests>
56 <test>
57 <!-- #1 blobtools create -->
58 <param name="input_json" value="test.blobDB.json" ftype="json"/>
59 <output name="coverage" file="test.blobDB.json.bestsum.phylum.p8.span.100.blobplot.bam0.png" ftype="png"/>
60 <output name="read_coverage" file="test.blobDB.json.bestsum.phylum.p8.span.100.blobplot.read_cov.bam0.png" ftype="png"/>
61 <output name="statistic" file="test.blobDB.json.bestsum.phylum.p8.span.100.blobplot.stats.txt" ftype="txt"/>
62 </test>
63 </tests>
64 <help><![CDATA[
65
66 .. class:: infomark
67
68 **What it does**
69
70 *To visualize, quality control and taxonomic partitioning of genome datasets. Blobtools plot is used to produce two coverage plot in png format and a statistic file.*
71
72 **Input**
73
74 - Blob file - a Blob json file.
75
76 **Parameters**
77
78 - infile - BlobDB file (created with "blobtools create")
79 - lib - Plot only certain covlib(s). Separated by ","
80 - notitle - Do not add filename as title to plot
81 - filelabel - Label axis based on filenames
82 - plotgroups INT - Number of (taxonomic) groups to plot, remaining groups are placed in 'other' [default: 8]
83 - length INT - Minimum sequence length considered for plotting [default: 100]
84 - cindex - Colour blobs by 'c index' [default: False]
85 - nohit - Hide sequences without taxonomic annotation [default: False]
86 - noscale - Do not scale sequences by length [default: False]
87 - legend - Plot legend of blobplot in separate figure
88 - multiplot - Multi-plot. Print blobplot for each (taxonomic) group separately
89 - cumulative - Print plot after addition of each (taxonomic) group
90 - sort <ORDER> - Sort order for plotting [default: span] 1) span : plot with decreasing span 2) count : plot with decreasing count
91 - hist <HIST> - Data for histograms [default: span] 1) span : span-weighted histograms 2) count : count histograms
92 - rank <RANK> - Taxonomic rank used for colouring of blobs [default: phylum] (Supported: species, genus, family, order,phylum, superkingdom)
93 - taxrule <TAXRULE> - Taxrule which has been used for computing taxonomy (Supported: bestsum, bestsumorder) [default: bestsum]
94 - format FORMAT - Figure format for plot (png, pdf, eps, jpeg,ps, svg, svgz, tiff) [default: png]
95 - label GROUPS - Relabel (taxonomic) groups, can be used several times. e.g. "A=Actinobacteria,Proteobacteria
96 - colours COLOURFILE - File containing colours for (taxonomic) groups. This allows having more than 9 colours.
97 - exclude GROUPS - Exclude these (taxonomic) groups (also works for 'other') e.g. "Actinobacteria,Proteobacteria,other"
98 - refcov <FILE> - File containing number of "total" and "mapped" reads per coverage file. (e.g.: bam0,900,100). If provided, info will be used in read coverage plot(s).
99 -catcolour <FILE> - Colour plot based on categories from FILE (format : "seq category").
100
101
102 **Command line Example:**
103
104 - blobtools plot -i example_blobDB.json -o output_file_preifix
105
106 **Output**
107
108 - Coverage PNG file
109 - Read Coverage PNG file
110 - Statistic file
111
112 .. class:: infomark
113
114 **Contributor**
115
116 Galaxy Australia wrapped the Blobtools: the original software is available in this `Github repository <https://github.com/DRL/blobtools>`_.
117
118 **References**
119
120 ]]></help>
121 <citations>
122 <citation type="doi">DOI: 10.12688/f1000research.12232.1</citation>
123 </citations>
124 </tool>