|
0
|
1 <tool id="removechar" name="removeChar tool" version="1.0.0">
|
|
|
2 <description>allows to remove positions (or columns) from a multi-Fasta alignment file in function of a given character</description>
|
|
|
3
|
|
|
4 <!--<requirements>
|
|
|
5 <requirement type="package" version="1.7.2">perl-bioperl</requirement>
|
|
|
6 </requirements>-->
|
|
|
7
|
|
|
8 <command detect_errors="aggressive"><![CDATA[
|
|
|
9
|
|
|
10 #import re
|
|
|
11 ## Creates symlinks for each input file based on the Galaxy 'element_identifier'
|
|
|
12 ## Used so that a human-readable name appears in the output table (instead of 'dataset_xyz.dat')
|
|
|
13 ## Add single quotes around each input file identifier
|
|
|
14 #set $_input_file = "'{}'".format($input.element_identifier)
|
|
|
15 ln -s '${input}' ${_input_file} &&
|
|
|
16
|
|
|
17
|
|
|
18 perl '$__tool_directory__/removeChar.pl' $_input_file $char > "$output"
|
|
|
19
|
|
|
20
|
|
|
21
|
|
|
22 ]]></command>
|
|
|
23 <!-- perl '$__tool_directory__/nucleScore.pl' $_input_file > "$output" -->
|
|
|
24 <!-- ./nuclescore.sh ${named_input_files} > "$output" -->
|
|
|
25
|
|
|
26 <inputs>
|
|
|
27 <param format="fasta" name="input" type="data" label="Multi-FASTA file: "/>
|
|
1
|
28 <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" />
|
|
0
|
29 </inputs>
|
|
|
30
|
|
|
31 <outputs>
|
|
|
32 <data format="fasta" name="output" />
|
|
|
33 </outputs>
|
|
|
34
|
|
|
35 <help><![CDATA[
|
|
|
36 removeChar.pl is a Perl script allowing to remove positions (or columns) of an aligned multi-Fasta file in function of a given character (eg. N).
|
|
|
37 The resulting multi-Fasta file corresponds to the same input multiFasta alignment file without the queried character.
|
|
|
38
|
|
|
39 This script belongs to the getSequenceInfo supplementary tools.
|
|
|
40
|
|
|
41 - GitHub: https://github.com/karubiotools/getSequenceInfo/tree/master/supplementary_tools
|
|
|
42 ]]>
|
|
|
43 </help>
|
|
|
44
|
|
|
45 </tool>
|