0
|
1 <tool id="domains_extract" name="Extract Domains Nucleotide Sequences" version="1.0.0">
|
|
2 <description> Tool to extract nucleotide sequences of protein domains found by DANTE </description>
|
9
|
3 <requirements>
|
|
4 <requirement type="package">biopython</requirement>
|
20
|
5 <requirement type="package" version="1.0">rexdb</requirement>
|
19
|
6 <requirement type="set_environment">REXDB</requirement>
|
9
|
7 </requirements>
|
0
|
8 <command>
|
|
9 TEMP_DIR_LINEAGES=\$(mktemp -d) &&
|
|
10 python3 ${__tool_directory__}/dante_gff_to_dna.py --domains_gff ${domains_gff} --input_dna ${input_dna} --out_dir \$TEMP_DIR_LINEAGES
|
|
11
|
|
12 #if $extend_edges:
|
|
13 --extended True
|
|
14 #else:
|
|
15 --extended False
|
|
16 #end if
|
19
|
17 --classification \${REXDB}/${db_type}_class
|
0
|
18 &&
|
|
19
|
21
|
20 cat \$TEMP_DIR_LINEAGES/*fasta > $out_fasta &&
|
0
|
21 rm -rf \$TEMP_DIR_LINEAGES
|
|
22 </command>
|
|
23 <inputs>
|
|
24 <param format="fasta" type="data" name="input_dna" label="Input DNA" help="Choose input DNA sequence(s) to extract the domains from" />
|
|
25 <param format="gff" type="data" name="domains_gff" label="Protein domains GFF" help="Choose filtered protein domains GFF3 (DANTE's output)" />
|
|
26 <param name="db_type" type="select" label="Select taxon and protein domain database version (REXdb)" help="">
|
18
|
27 <options from_file="rexdb_versions.loc">
|
0
|
28 <column name="name" index="0"/>
|
|
29 <column name="value" index="1"/>
|
|
30 </options>
|
|
31 </param>
|
|
32
|
|
33 <param name="extend_edges" type="boolean" truevalue="True" falsevalue="False" checked="True" label="Extend sequence edges" help="Extend extracted sequence edges to the full length of database domains sequences"/>
|
|
34 </inputs>
|
|
35 <outputs>
|
|
36 <data format="fasta" name="out_fasta" label="Concatenated fasta domains NT sequences from ${input_dna.hid}" />
|
|
37 </outputs>
|
|
38
|
|
39 <help>
|
|
40
|
|
41 **WHAT IT DOES**
|
|
42
|
|
43 This tool extracts nucleotide sequences of protein domains from reference DNA based on DANTE's output. It can be used e.g. for deriving phylogenetic relations of individual mobile elements within a species. This can be done separately for individual protein domains types.
|
|
44 In this case, prior running this tool use DANTE on input DNA:
|
|
45
|
|
46 1. Protein Domains Finder
|
|
47 2. Protein Domains Filter (quality filter + type of domain, e.g. RT)
|
|
48
|
|
49 INPUTS:
|
|
50 * original DNA sequence in multifasta format to extract the domains from
|
|
51 * DANTE's output GFF3 file (preferably filtered for quality and specific domain type)
|
|
52
|
|
53 OUTPUT:
|
|
54
|
|
55 * concatenated fasta file of nucleotide sequences for individual transposons lineages
|
|
56
|
|
57 By default sequences will be EXTENDED if the alignment reported by LASTAL does not cover the whole protein sequence from the database.
|
|
58 As the result, the corresponding nucleotide region of the WHOLE aligned database domain will be reported. For every record in the GFF3 file the sequence is reported for the BEST HIT within the domain region under following conditions:
|
|
59
|
|
60 * The domain cannot be ambiguous, i.e. the FINAL CLASSIFICATION of the domains region corresponds to the last classification level
|
|
61 * The extracted sequences are not reported in the case they contain any Ns within the extracted region
|
|
62
|
|
63 </help>
|
|
64 </tool>
|