view dante_gff_to_dna.xml @ 23:e2bbc79f0fac draft

"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
author petr-novak
date Wed, 25 Jan 2023 13:06:55 +0000
parents 65a6fb89495d
children df99812ded92
line wrap: on
line source

<tool id="domains_extract" name="Extract Domains Nucleotide Sequences" version="1.1.4">
  <description> Tool to extract nucleotide sequences of protein domains found by DANTE </description>
  <requirements>
    <requirement type="package">dante=0.1.4</requirement>
  </requirements>
  <command>
    TEMP_DIR_LINEAGES=\$(mktemp -d) &amp;&amp;
    /mnt/raid/users/petr/workspace/dante/dante_gff_to_dna.py --domains_gff ${domains_gff} --input_dna ${input_dna} --out_dir \$TEMP_DIR_LINEAGES

    #if $extend_edges:
	  --extended True
    #else:
	  --extended False
    #end if
	  --database ${database}
    &amp;&amp;

    cat \$TEMP_DIR_LINEAGES/*fasta > $out_fasta &amp;&amp;
    rm -rf \$TEMP_DIR_LINEAGES
  </command>
  <inputs>
	  <param format="fasta" type="data" name="input_dna" label="Input DNA" help="Choose input DNA sequence(s) to extract the domains from" />
	  <param format="gff" type="data" name="domains_gff" label="Protein domains GFF" help="Choose filtered protein domains GFF3 (DANTE's output)" />
	  <param name="database" type="select" label="Select REXdb database">
        <option value="Viridiplantae_v3.0" selected="true">Viridiplantae_v3.0</option>
        <option value="Metazoa_v3.1" selected="true">Metazoa_v3.1</option>
        <option value="Viridiplantae_v2.2" selected="true">Viridiplantae_v2.2</option>
        <option value="Metazoa_v3.0" selected="true">Metazoa_v3.1</option>
      </param>

	  <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"/>
  </inputs>
  <outputs>
    <data format="fasta" name="out_fasta" label="Concatenated fasta domains NT sequences from ${input_dna.hid}" /> 
  </outputs>

  <help>

    **WHAT IT DOES**

    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.
    In this case, prior running this tool use DANTE on input DNA:

    1. Protein Domains Finder
    2. Protein Domains Filter (quality filter + type of domain, e.g. RT)
	  
    INPUTS:
	  * original DNA sequence in multifasta format to extract the domains from 
	  * DANTE's output GFF3 file (preferably filtered for quality and specific domain type)

    OUTPUT:

    * concatenated fasta file of nucleotide sequences for individual transposons lineages
    
    By default sequences will be EXTENDED if the alignment reported by LASTAL does not cover the whole protein sequence from the database. 
    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:

	  * The domain cannot be ambiguous, i.e. the FINAL CLASSIFICATION of the domains region corresponds to the last classification level
	  * The extracted sequences are not reported in the case they contain any Ns within the extracted region

  </help>
</tool>