annotate picard_NormalizeFasta.xml @ 2:801f5e934011 draft default tip

Uploaded
author devteam
date Thu, 23 Oct 2014 11:40:52 -0400
parents b76a4f17bbbb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
1 <tool name="NormalizeFasta" id="picard_NormalizeFasta" version="1.122.0">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
2 <description>normalize fasta datasets</description>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
3 <requirements>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
4 <requirement type="package" version="1.122.0">picard</requirement>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
5 </requirements>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
6
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
7 <macros>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
8 <import>picard_macros.xml</import>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
9 </macros>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
10
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
11 <command>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
12 @java_options@
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
13
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
14
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
15 ## Two lines below are due to the fact that picard likes fasta files to have extension .fa
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
16 #set $fasta_file="local_fasta.fa"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
17 ln -s "${inputFile}" "${fasta_file}" &amp;&amp;
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
18
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
19 java -jar \$JAVA_JAR_PATH/NormalizeFasta.jar
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
20
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
21 INPUT="${fasta_file}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
22 OUTPUT="${outFile}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
23 LINE_LENGTH="${line_length}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
24 TRUNCATE_SEQUENCE_NAMES_AT_WHITESPACE="${truncate_sequence_names_at_whitespaces}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
25
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
26 QUIET=true
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
27 VERBOSITY=ERROR
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
28
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
29 </command>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
30 <inputs>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
31 <param format="fasta" name="inputFile" type="data" label="FASTA dataset or dataset collection" help="If empty, upload or import a FASTA dataset" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
32 <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"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
33 <param name="truncate_sequence_names_at_whitespaces" type="boolean" label="Truncate sequence names at first whitespace" help="TRUNCATE_SEQUENCE_NAMES_AT_WHITESPACE; default=False"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
34 </inputs>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
35
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
36 <outputs>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
37 <data format="fasta" name="outFile" label="${tool.name} on ${on_string}: Normalized FASTA dataset"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
38 </outputs>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
39
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
40 <tests>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
41 <test>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
42 <param name="inputFile" value="picard_NormalizeFasta_ref.fa" ftype="fasta"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
43 <param name="line_length" value="40"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
44 <param name="truncate_sequence_names_at_whitespaces" value="False"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
45 <output name="outFile" file="picard_NormalizeFasta_test1.fa" ftype="fasta"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
46 </test>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
47 </tests>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
48
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
49 <stdio>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
50 <exit_code range="1:" level="fatal"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
51 </stdio>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
52
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
53 <help>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
54
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
55 **Purpose**
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
56
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
57 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.
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
58
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
59 @dataset_collections@
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
60
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
61 @description@
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
62
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
63 LINE_LENGTH=Integer The line length to be used for the output fasta file. Default value: 100.
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
64
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
65 TRUNCATE_SEQUENCE_NAMES_AT_WHITESPACE=Boolean
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
66 Truncate sequence names at first whitespace. Default value: false. Possible values: {true, false}
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
67
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
68 @more_info@
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
69
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
70 </help>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
71 </tool>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
72
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
73