annotate smap_selector.xml @ 0:10a610301cf7 draft default tip

Uploaded
author ieguinoa
date Mon, 25 Apr 2022 12:21:35 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
1 <tool id="smap_selector" name="SMAP-selector" version="0.1.0" python_template_version="3.5">
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
2 <requirements>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
3 <!--<requirement type="package">smap-design</requirement>-->
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
4 <requirement type="package">biopython</requirement>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
5 <requirement type="package">gffutils</requirement>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
6 </requirements>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
8 ln -s $fasta_file species_fasta.fa;
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
9 ln -s $gff_file species.gff3;
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
10 ln -s $gene_families_file families_file.txt;
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
11 #if $interest_input_selector.interest_input == "genes":
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
12 ln -s $interest_input_selector.genes_file genes_file.txt;
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
13 #else
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
14 ln -s $interest_input_selector.homology_groups_file hom_groups_file.txt;
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
15 #end if
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
16 python3 $__tool_directory__/Get_fasta_and_gff_for_selected_hom_groups_extended_flanking_region.py ./species.gff3 ./species_fasta.fa ./families_file.txt $species --region $region
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
17 #if $interest_input_selector.interest_input == "genes":
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
18 --genes genes_file.txt
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
19 #else
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
20 --hom_groups hom_groups_file.txt
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
21 #end if
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
22 ;
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
23 rm species.gff3;
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
24 ]]></command>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
25 <inputs>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
26 <param name="species" type="text" label="Species, corresponding with species indicated in the gene family info file"/>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
27 <param name="gene_families_file" type="data" format="tsv,tabular" label="gene family information file (tab-delimited) for the (coding) genes, separated per gene family type"/>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
28 <param name="fasta_file" type="data" format="fasta" label="FASTA file containing the genomic sequence of the species"/>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
29 <param name="gff_file" type="data" format="gff,gff3" label="gff3 file (tab-delimited) of the species containing gene, CDS, and exon features with positions relative to the fasta file"/>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
30 <conditional name="interest_input_selector">
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
31 <param name="interest_input" type="select">
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
32 <option value="genes">list with genes of interest</option>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
33 <option value="homology_groups">list with homology groups of interest</option>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
34 </param>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
35 <when value="genes">
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
36 <param name="genes_file" type="data" format="txt" label="Genes file"/>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
37 </when>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
38 <when value="homology_groups">
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
39 <param name="homology_groups_file" type="data" format="txt" label="Homology groups file"/>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
40 </when>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
41 </conditional>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
42 <param argument="--region" type="integer" value="0" label="Region to extend the FASTA sequence of the genes of interest on both sides with the given number of basepairs or with the maximum possible" help="default: 0"/>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
43 </inputs>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
44 <outputs>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
45 <data format="fasta" name="fasta_outputs" label="SMAP-Selector FASTA outputs">
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
46 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.fasta" ext="fasta" format="fasta" visible="true" assign_primary_output="true"/>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
47 </data>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
48 <data format="gff" name="gff_outputs" label="SMAP-Selector GFF outputs">
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
49 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.gff" ext="gff" visible="true" format="gff" assign_primary_output="true"/>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
50 </data>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
51 </outputs>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
52 <help><![CDATA[
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
53 TODO: Fill in help.
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
54 ]]></help>
10a610301cf7 Uploaded
ieguinoa
parents:
diff changeset
55 </tool>