comparison picard_NormalizeFasta.xml @ 33:3f254c5ced1d draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/picard commit 9ecbbb878d68a980ba35a90865e524c723ca3ed8
author iuc
date Sun, 03 Mar 2024 16:06:11 +0000
parents f9242e01365a
children
comparison
equal deleted inserted replaced
32:f9242e01365a 33:3f254c5ced1d
1 <tool name="NormalizeFasta" id="picard_NormalizeFasta" version="@TOOL_VERSION@.@WRAPPER_VERSION@"> 1 <tool name="NormalizeFasta" id="picard_NormalizeFasta" version="@TOOL_VERSION@.@WRAPPER_VERSION@" profile="@PROFILE@">
2 <description>normalize fasta datasets</description> 2 <description>normalize fasta datasets</description>
3 <macros> 3 <macros>
4 <import>picard_macros.xml</import> 4 <import>picard_macros.xml</import>
5 <token name="@WRAPPER_VERSION@">1</token> 5 <token name="@WRAPPER_VERSION@">0</token>
6 </macros> 6 </macros>
7 <expand macro="requirements" /> 7 <expand macro="requirements"/>
8 <command detect_errors="exit_code"><![CDATA[ 8 <command detect_errors="exit_code"><![CDATA[
9 @java_options@ 9 @java_options@
10 10
11 ## Two lines below are due to the fact that picard likes fasta files to have extension .fa 11 ## Two lines below are due to the fact that picard likes fasta files to have extension .fa
12 #import re 12 #import re
13 #set escaped_element_identifier = re.sub('[^\w\-]', '_', str($inputFile.element_identifier)) 13 #set escaped_element_identifier = re.sub('[^\w\-]', '_', str($inputFile.element_identifier))
14 ln -f -s '$inputFile' '$escaped_element_identifier'.fa && 14 ln -sf '$inputFile' '$escaped_element_identifier'.fa &&
15 picard 15
16 NormalizeFasta 16 picard NormalizeFasta
17 17
18 INPUT='$escaped_element_identifier'.fa 18 --INPUT '$escaped_element_identifier'.fa
19 OUTPUT="${outFile}" 19 --OUTPUT '${outFile}'
20 LINE_LENGTH="${line_length}" 20 --LINE_LENGTH '${line_length}'
21 TRUNCATE_SEQUENCE_NAMES_AT_WHITESPACE="${truncate_sequence_names_at_whitespaces}" 21 --TRUNCATE_SEQUENCE_NAMES_AT_WHITESPACE '${truncate_sequence_names_at_whitespaces}'
22 22
23 QUIET=true 23 --QUIET true
24 VERBOSITY=ERROR 24 --VERBOSITY ERROR
25 25
26 ]]></command> 26 ]]></command>
27 <inputs> 27 <inputs>
28 <param format="fasta" name="inputFile" type="data" label="FASTA dataset or dataset collection" help="If empty, upload or import a FASTA dataset" /> 28 <param format="fasta" name="inputFile" type="data" label="FASTA dataset or dataset collection" help="If empty, upload or import a FASTA dataset"/>
29 <param name="line_length" type="integer" value="100" min="1" max="200" label="The line length to be used for the output fasta file" help="LINE_LENGTH; default=100"/> 29 <param name="line_length" type="integer" value="100" min="1" max="200" label="The line length to be used for the output fasta file" help="LINE_LENGTH; default=100"/>
30 <param name="truncate_sequence_names_at_whitespaces" type="boolean" label="Truncate sequence names at first whitespace" help="TRUNCATE_SEQUENCE_NAMES_AT_WHITESPACE; default=False"/> 30 <param name="truncate_sequence_names_at_whitespaces" type="boolean" label="Truncate sequence names at first whitespace" help="TRUNCATE_SEQUENCE_NAMES_AT_WHITESPACE; default=False"/>
31 </inputs> 31 </inputs>
32 32 <outputs>
33 <outputs> 33 <data format="fasta" name="outFile" label="${tool.name} on ${on_string}: Normalized FASTA dataset"/>
34 <data format="fasta" name="outFile" label="${tool.name} on ${on_string}: Normalized FASTA dataset"/> 34 </outputs>
35 </outputs> 35 <tests>
36 36 <test>
37 <tests> 37 <param name="inputFile" value="picard_NormalizeFasta_ref.fa" ftype="fasta"/>
38 <test> 38 <param name="line_length" value="40"/>
39 <param name="inputFile" value="picard_NormalizeFasta_ref.fa" ftype="fasta"/> 39 <param name="truncate_sequence_names_at_whitespaces" value="False"/>
40 <param name="line_length" value="40"/> 40 <output name="outFile" file="picard_NormalizeFasta_test1.fa" ftype="fasta"/>
41 <param name="truncate_sequence_names_at_whitespaces" value="False"/> 41 </test>
42 <output name="outFile" file="picard_NormalizeFasta_test1.fa" ftype="fasta"/> 42 </tests>
43 </test> 43 <help>
44 </tests>
45
46
47 <help>
48 44
49 **Purpose** 45 **Purpose**
50 46
51 Takes any dataset that conforms to the fasta format and normalizes it so that all lines of sequence except the last line per named sequence are of the same length. 47 Takes any dataset that conforms to the fasta format and normalizes it so that all lines of sequence except the last line per named sequence are of the same length.
52 48
60 Truncate sequence names at first whitespace. Default value: false. Possible values: {true, false} 56 Truncate sequence names at first whitespace. Default value: false. Possible values: {true, false}
61 57
62 @more_info@ 58 @more_info@
63 59
64 </help> 60 </help>
65 <expand macro="citations" /> 61 <expand macro="citations"/>
66 </tool> 62 </tool>