view MIRUReader.xml @ 1:1a7d6584e1ec draft

Uploaded
author dcouvin
date Tue, 17 Aug 2021 23:27:22 +0000
parents f0e3646a4e45
children f9422a33e9c1
line wrap: on
line source

<tool id="mirureader" name="mirureader" version="1.0.0">
<description> MIRUReader allows to perform in-silico MIRU-VNTR typing using long reads or assembled genome </description>

<requirements>
<requirement type="package" version="3.2.0">python3-openid</requirement>
  <requirement type="package" version="6.6.0">emboss</requirement>
  <requirement type="package" version="1.3.2">pandas</requirement>
</requirements>

<!--<command>cp $input input.fasta; python3 $__tool_directory__/MIRUReader/MIRUReader.py -r input.fasta -p sample 1> $output 2>$logfile</command>-->

<command detect_errors="aggressive"><![CDATA[ 

#import re
        ## Creates symlinks for each input file based on the Galaxy 'element_identifier'
        ## Used so that a human-readable name appears in the output table (instead of 'dataset_xyz.dat')
  
        ## Add single quotes around each input file identifier
        #set $_input_file = "'{}'".format($input.element_identifier)
        #set $_input_file = $_input_file + '.fasta'
        ln -s '${input}' ${_input_file} &&   
    
        python3 $__tool_directory__/MIRUReader/MIRUReader.py -r $_input_file -p $_input_file > $output
        
      


]]></command>

<!-- for element in `echo $named_input_files`; do python3 MIRUReader.py -r $element -p $element;done > $output 
sudo python3 '$__tool_directory__/MIRUReader/MIRUReader.py' '-r' $named_input_files '-p' $named_input_files > $output  -->

<inputs>
<!--
<param format="fasta" name="input_files" type="data" label="fasta files :" multiple="true" display="checkboxes"/>
-->
       <param format="fasta" name="input" type="data" label="Fasta file"/>
</inputs>

<outputs>
<data format="tabular" name="output" label="MIRUReader output"/>
<!--<data format="txt" name="logfile" label="LogFile"/>-->
</outputs>

<help><![CDATA[
MIRUReader allows to identify 24-locus MIRU-VNTR for Mycobacterium tuberculosis complex (MTBC) directly from long reads generated by Oxford Nanopore Technologies (ONT) and Pacific Biosciences (PacBio). It also work on assembled genome.

GitHub: https://github.com/phglab/MIRUReader.git
]]>
</help>

<citations>
<citation type="doi">10.1093/bioinformatics/btz771</citation>
</citations>
</tool>