diff mirmachine.xml @ 0:f2e87c81497d draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mirmachine commit 236a9bc5da1e5f73ba2c27b0664ac28ee14bb6da
author iuc
date Fri, 15 Mar 2024 16:16:00 +0000
parents
children 85010d0eaa6c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mirmachine.xml	Fri Mar 15 16:16:00 2024 +0000
@@ -0,0 +1,67 @@
+<tool id="mirmachine" name="MirMachine" version="@TOOL_VERSION@+galaxy@SUFFIX_VERSION@" profile="22.05">
+    <description>A tool to detect miRNA homologs in genome sequences</description>
+    <macros>
+        <import>macros.xml</import>
+    </macros>
+    <expand macro="requirements"/>
+    <command detect_errors="exit_code"><![CDATA[
+    ln -sf '$genome' ./genome.fasta &&
+    MirMachine.py
+        -n '$input_node'
+        -s '$input_species'
+        --genome ./genome.fasta
+        -c \${GALAXY_SLOTS:-8}
+    &&
+    mv results/predictions/filtered_gff/*.PRE.gff species_filtered.PRE.gff &&
+    mv results/predictions/gff/*.PRE.gff species.PRE.gff &&
+    mv results/predictions/fasta/*.PRE.fasta species.PRE.fasta
+    ]]></command>
+    <inputs>
+        <param type="data" name="genome" format="fasta" label="Genome fasta file"/>
+        <param name="input_node" type="select" label="Node name" help="e.g. Caenorhabditis">
+            <expand macro="node_options"/>
+        </param>
+        <param type="text" name="input_species" label="Scientific species name" help="Separated by underscore e.g. Caenorhabditis_elegans">
+            <sanitizer invalid_char="">
+                <valid initial="string.letters">
+                    <add value="_"/>
+                </valid>
+            </sanitizer>
+            <validator type="regex">[a-zA-Z_]+</validator>
+        </param>
+    </inputs>
+    <outputs>
+        <data name="gff_file" format="gff" from_work_dir="species.PRE.gff" label="${tool.name} on ${on_string}: GFF file"/>
+        <data name="filtered_gff_file" format="gff" from_work_dir="species_filtered.PRE.gff" label="${tool.name} on ${on_string}: filtered GFF file"/>
+        <data name="fasta_file" format="fasta" from_work_dir="species.PRE.fasta" label="${tool.name} on ${on_string}: fasta sequence of annotation miRNAs"/>
+    </outputs>
+    <tests>
+        <test expect_num_outputs="3">
+            <param name="genome" value="ref.fa"/>
+            <param name="input_node" value="Caenorhabditis"/>
+            <param name="input_species" value="Caenorhabditis_elegans"/>
+            <output name="gff_file">
+                <assert_contents>
+                    <has_n_lines n="24" delta="0"/>
+                </assert_contents>
+            </output>
+            <output name="filtered_gff_file">
+                <assert_contents>
+                    <has_n_lines n="15" delta="0"/>
+                </assert_contents>
+            </output>
+            <output name="fasta_file">
+                <assert_contents>
+                    <has_n_lines n="24" delta="0"/>
+                </assert_contents>
+            </output>
+        </test>
+    </tests>
+    <help><![CDATA[
+
+Accurate microRNA annotation of animal genomes using trained covariance models of curated microRNA complements. MirMachine facilitates automated genome annotation pipelines and deeper studies into the evolution of genome regulation, even in extinct organisms.
+
+    ]]></help>
+    <expand macro="citations"/>
+    <expand macro="creator"/>
+</tool>