annotate MIRUReader.xml @ 2:f9422a33e9c1 draft default tip

Uploaded
author dcouvin
date Fri, 03 Sep 2021 19:52:01 +0000
parents 1a7d6584e1ec
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
1 <tool id="mirureader" name="mirureader" version="1.0.0">
2
f9422a33e9c1 Uploaded
dcouvin
parents: 1
diff changeset
2 <description> MIRUReader allows to perform in-silico MIRU-VNTR typing using assembled genomes (FASTA format)</description>
0
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
3
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
4 <requirements>
1
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
5 <requirement type="package" version="3.2.0">python3-openid</requirement>
0
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
6 <requirement type="package" version="6.6.0">emboss</requirement>
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
7 <requirement type="package" version="1.3.2">pandas</requirement>
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
8 </requirements>
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
9
1
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
10 <!--<command>cp $input input.fasta; python3 $__tool_directory__/MIRUReader/MIRUReader.py -r input.fasta -p sample 1> $output 2>$logfile</command>-->
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
11
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
12 <command detect_errors="aggressive"><![CDATA[
0
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
13
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
14 #import re
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
15 ## Creates symlinks for each input file based on the Galaxy 'element_identifier'
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
16 ## Used so that a human-readable name appears in the output table (instead of 'dataset_xyz.dat')
1
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
17
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
18 ## Add single quotes around each input file identifier
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
19 #set $_input_file = "'{}'".format($input.element_identifier)
2
f9422a33e9c1 Uploaded
dcouvin
parents: 1
diff changeset
20
f9422a33e9c1 Uploaded
dcouvin
parents: 1
diff changeset
21
f9422a33e9c1 Uploaded
dcouvin
parents: 1
diff changeset
22 ln -s '${input}' "${_input_file}" &&
f9422a33e9c1 Uploaded
dcouvin
parents: 1
diff changeset
23 cp "$_input_file" input.fasta &&
f9422a33e9c1 Uploaded
dcouvin
parents: 1
diff changeset
24 python3 $__tool_directory__/MIRUReader/MIRUReader.py -r input.fasta -p $_input_file > $output
1
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
25
0
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
26
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
27
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
28
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
29 ]]></command>
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
30
2
f9422a33e9c1 Uploaded
dcouvin
parents: 1
diff changeset
31 <!-- #set $var = ${_input_file//[^[:alnum:]]/}
f9422a33e9c1 Uploaded
dcouvin
parents: 1
diff changeset
32 #set var = ${f//:()/}
f9422a33e9c1 Uploaded
dcouvin
parents: 1
diff changeset
33 #set $_input_file = $_input_file + '.fasta'
f9422a33e9c1 Uploaded
dcouvin
parents: 1
diff changeset
34 $_input_file="${_input_file// /_}" && -->
f9422a33e9c1 Uploaded
dcouvin
parents: 1
diff changeset
35
0
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
36 <!-- for element in `echo $named_input_files`; do python3 MIRUReader.py -r $element -p $element;done > $output
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
37 sudo python3 '$__tool_directory__/MIRUReader/MIRUReader.py' '-r' $named_input_files '-p' $named_input_files > $output -->
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
38
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
39 <inputs>
1
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
40 <!--
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
41 <param format="fasta" name="input_files" type="data" label="fasta files :" multiple="true" display="checkboxes"/>
0
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
42 -->
2
f9422a33e9c1 Uploaded
dcouvin
parents: 1
diff changeset
43 <param format="fasta" name="input" type="data" label="FASTA file"/>
0
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
44 </inputs>
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
45
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
46 <outputs>
1
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
47 <data format="tabular" name="output" label="MIRUReader output"/>
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
48 <!--<data format="txt" name="logfile" label="LogFile"/>-->
0
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
49 </outputs>
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
50
1
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
51 <help><![CDATA[
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
52 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.
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
53
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
54 GitHub: https://github.com/phglab/MIRUReader.git
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
55 ]]>
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
56 </help>
0
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
57
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
58 <citations>
1
1a7d6584e1ec Uploaded
dcouvin
parents: 0
diff changeset
59 <citation type="doi">10.1093/bioinformatics/btz771</citation>
0
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
60 </citations>
f0e3646a4e45 Uploaded
dcouvin
parents:
diff changeset
61 </tool>