Source code

Download source archive ↓

upstream-extended/iuc/tools/circos/gc_skew.xml

1<?xml version="1.0"?>
2<tool id="circos_gc_skew" name="GC Skew" version="@WRAPPER_VERSION@">
3    <description>calculates skew over genomic sequences</description>
4    <macros>
5        <import>macros.xml</import>
6    </macros>
7    <edam_topics>
8        <edam_topic>topic_0797</edam_topic>
9        <edam_topic>topic_0092</edam_topic>
10    </edam_topics>
11    <edam_operations>
12        <edam_operation>operation_0262</edam_operation>
13    </edam_operations>
14    <expand macro="requirements">
15    </expand>
16    <command detect_errors="exit_code"><![CDATA[
17ln -s -f
18#if $reference_genome.reference_genome_source == "history"
19    '$reference_genome.history_item'
20#else
21    '$reference_genome.builtin.fields.path'
22#end if
23reference.fa &&
24
25python '$__tool_directory__/gc_skew.py' reference.fa '$window' '$output'
26    ]]></command>
27    <inputs>
28      <conditional name="reference_genome">
29        <param label="Source for reference genome" name="reference_genome_source" type="select">
30          <option selected="True" value="history">Use a genome from history</option>
31          <option value="builtin">Use a built-in genome"</option>
32        </param>
33        <when value="history">
34          <param format="fasta" type="data" name="history_item" label="Select a reference genome"/>
35        </when>
36        <when value="builtin">
37          <param label="Select a reference genome" name="builtin" type="select">
38            <options from_data_table="all_fasta">
39              <filter column="2" type="sort_by" />
40              <validator message="No genomes are available for the selected input dataset" type="no_options" />
41            </options>
42          </param>
43        </when>
44      </conditional>
45      <param argument="window" type="integer" min="1" value="100000" label="Window size" />
46    </inputs>
47    <outputs>
48      <data name="output" format="bigwig" />
49    </outputs>
50    <tests>
51        <test>
52            <conditional name="reference_genome">
53                <param name="reference_genome_source" value="history" />
54                <param name="history_item" value="gc_skew/1.fa" ftype="fasta"/>
55            </conditional>
56            <param name="window" value="2" />
57            <output name="output" file="gc_skew/1.bw" ftype="bigwig" />
58        </test>
59    </tests>
60    <help><![CDATA[
61Calculate GC skew (G-C)/(G+C) for multiple windows along the sequence.
62
63Returns a list of ratios (floats), controlled by the length of the sequence and the size of the window.
64
65Returns 0 for windows without any G/C by handling zero division errors.
66
67Does NOT look at any ambiguous nucleotides.
68    ]]></help>
69    <expand macro="citations" />
70</tool>