annotate blobplot.xml @ 5:dfa4f03b5baa

added <requirement type="set_environment">
author Eduardo <eduardoalves@abdn.ac.uk>
date Wed, 25 Nov 2015 13:54:48 +0000
parents 0101d7d1211f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
1 <tool id="blobplot" name="Blobplot" version="0.0.1">
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
2 <description> Creates a plot of GC vs coverage for sequences colored by taxonomy</description>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
3 <requirements>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
4 <requirement type="package" version="0.9.3">r_ggplot2</requirement>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
5 <requirement type="package" version="0.1.19">samtools</requirement>
5
dfa4f03b5baa added <requirement type="set_environment">
Eduardo <eduardoalves@abdn.ac.uk>
parents: 0
diff changeset
6 <requirement type="set_environment">TAXDUMP</requirement>
0
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
7 </requirements>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
8 <command>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
9 cut -f1,13 $blast_res | perl gc_cov_annotate.pl --blasttaxid - --assembly $coding_seq --taxdump $TAXDUMP --bam $bam_file --out blob_file &amp;&amp;
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
10 Rscript makeblobplot.R blob_file $ignore_below $tax_level &amp;&amp;
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
11 mv blob_file.${tax_level}.png $output
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
12 </command>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
13 <stdio>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
14 <exit_code range="1:" level="fatal" description="Tool exception" />
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
15 </stdio>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
16 <inputs>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
17
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
18 <param format="tabular" name="blast_res" type="data" label="Blast Results"/>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
19 <param format="fasta" name="coding_seq" type="data" label="Predicted Nucleotide Sequences"/>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
20 <param format="bam" name="bam_file" type="data" label="Aligned reads against Predicted Sequences"/>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
21 <param name="ignore_below" type="text" value="0.01" label="Cut off for plot"/>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
22 <param name="tax_level" type="select" label="Taxon level">
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
23 <option value="taxlevel_superkingdom">Super Kingdom</option>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
24 <option value="taxlevel_phylum" selected="true">Phylum</option>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
25 <option value="taxlevel_order" >Order</option>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
26 <option value="taxlevel_species" >Species</option>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
27 </param>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
28 </inputs>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
29 <outputs>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
30 <data format="png" name="output" label="${tool.name} on ${on_string} " />
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
31 </outputs>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
32 <help>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
33 This tool creates a GC vs Coverage plot coloured by taxonomic id for a set of sequences given blast results annotated with tax id and aligments of reads against the sequences.
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
34
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
35 Wrapper for Blobology developped by Blaxter Lab, Institute of Evolutionary Biology, University of Edinburgh
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
36
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
37 Contact Eduardo Alves at eduardoalves@abdn.ac.uk for support and bug reports.
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
38 </help>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
39 </tool>
0101d7d1211f initial upload
Eduardo <eduardoalves@abdn.ac.uk>
parents:
diff changeset
40