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>
|
|
5 </requirements>
|
0
|
6 <command>
|
|
7 TEMP_DIR_LINEAGES=\$(mktemp -d) &&
|
|
8 python3 ${__tool_directory__}/dante_gff_to_dna.py --domains_gff ${domains_gff} --input_dna ${input_dna} --out_dir \$TEMP_DIR_LINEAGES
|
|
9
|
|
10 #if $extend_edges:
|
|
11 --extended True
|
|
12 #else:
|
|
13 --extended False
|
|
14 #end if
|
|
15 --classification ${__tool_data_path__ }/protein_domains/${db_type}_class
|
|
16 &&
|
|
17
|
|
18 cat \$TEMP_DIR_LINEAGES/domains_counts.txt \$TEMP_DIR_LINEAGES/*fasta > $out_fasta &&
|
|
19 rm -rf \$TEMP_DIR_LINEAGES
|
|
20 </command>
|
|
21 <inputs>
|
|
22 <param format="fasta" type="data" name="input_dna" label="Input DNA" help="Choose input DNA sequence(s) to extract the domains from" />
|
|
23 <param format="gff" type="data" name="domains_gff" label="Protein domains GFF" help="Choose filtered protein domains GFF3 (DANTE's output)" />
|
|
24 <param name="db_type" type="select" label="Select taxon and protein domain database version (REXdb)" help="">
|
18
|
25 <options from_file="rexdb_versions.loc">
|
0
|
26 <column name="name" index="0"/>
|
|
27 <column name="value" index="1"/>
|
|
28 </options>
|
|
29 </param>
|
|
30
|
|
31 <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"/>
|
|
32 </inputs>
|
|
33 <outputs>
|
|
34 <data format="fasta" name="out_fasta" label="Concatenated fasta domains NT sequences from ${input_dna.hid}" />
|
|
35 </outputs>
|
|
36
|
|
37 <help>
|
|
38
|
|
39 **WHAT IT DOES**
|
|
40
|
|
41 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.
|
|
42 In this case, prior running this tool use DANTE on input DNA:
|
|
43
|
|
44 1. Protein Domains Finder
|
|
45 2. Protein Domains Filter (quality filter + type of domain, e.g. RT)
|
|
46
|
|
47 INPUTS:
|
|
48 * original DNA sequence in multifasta format to extract the domains from
|
|
49 * DANTE's output GFF3 file (preferably filtered for quality and specific domain type)
|
|
50
|
|
51 OUTPUT:
|
|
52
|
|
53 * concatenated fasta file of nucleotide sequences for individual transposons lineages
|
|
54
|
|
55 By default sequences will be EXTENDED if the alignment reported by LASTAL does not cover the whole protein sequence from the database.
|
|
56 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:
|
|
57
|
|
58 * The domain cannot be ambiguous, i.e. the FINAL CLASSIFICATION of the domains region corresponds to the last classification level
|
|
59 * The extracted sequences are not reported in the case they contain any Ns within the extracted region
|
|
60
|
|
61 </help>
|
|
62 </tool>
|