annotate countDifferences.xml @ 0:a9fb5e4abb2d draft default tip

Uploaded
author dcouvin
date Mon, 20 Sep 2021 21:51:24 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
1 <tool id="countdifferences" name="countDifferences tool" version="1.0.0">
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
2 <description>allows to compare sequences from a multi-Fasta alignment file by calculating differences (in bp) and percentage identity</description>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
3
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
4 <requirements>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
5 <requirement type="package" version="1.7.2">perl-bioperl</requirement>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
6 <!--<requirement type="package" version="3.27">perl-string-approx</requirement>-->
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
7 </requirements>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
8
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
9 <command detect_errors="aggressive"><![CDATA[
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
10
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
11 #import re
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
12 ## Creates symlinks for each input file based on the Galaxy 'element_identifier'
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
13 ## Used so that a human-readable name appears in the output table (instead of 'dataset_xyz.dat')
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
14 ## Add single quotes around each input file identifier
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
15 #set $_input_file = "'{}'".format($input.element_identifier)
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
16 ln -s '${input}' ${_input_file} &&
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
17
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
18
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
19 perl '$__tool_directory__/countDifferences.pl' $_input_file $output1 $output2
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
20
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
21
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
22
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
23 ]]></command>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
24 <!-- perl '$__tool_directory__/nucleScore.pl' $_input_file > "$output" -->
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
25 <!-- ./nuclescore.sh ${named_input_files} > "$output" -->
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
26
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
27 <inputs>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
28 <param format="fasta" name="input" type="data" label="Multi-FASTA file: "/>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
29 <!--<param name="char" type="text" area="false" value="N" label="Character to be removed from Multi-FASTA file:" help="Users can directly write the character to be removed without quotes" />-->
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
30 </inputs>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
31
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
32 <outputs>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
33 <data format="tabular" name="output1" label="bp_differences.tsv "/>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
34 <data format="tabular" name="output2" label="percentage_identity.tsv "/>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
35 </outputs>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
36
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
37 <help><![CDATA[
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
38 countDifferences.pl is a Perl script allowing to calculate differences (changes in bp) and sequences percentage identity from an aligned multi-Fasta file.
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
39
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
40 Two resulting tables are produced:
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
41 (i) a table containing a matrix with bp differences for each sequence;
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
42 (ii) a table containing a matrix with percentage identity for each sequence
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
43
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
44 This script belongs to the getSequenceInfo supplementary tools.
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
45
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
46 - GitHub: https://github.com/karubiotools/getSequenceInfo/tree/master/supplementary_tools
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
47 ]]>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
48 </help>
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
49
a9fb5e4abb2d Uploaded
dcouvin
parents:
diff changeset
50 </tool>