annotate picard_FastqToSam.xml @ 0:ff4ec13e496e draft

Uploaded tarball to repository
author devteam
date Tue, 23 Oct 2012 10:49:35 -0400
parents
children 52fdfc45590a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
1 <tool id="picard_FastqToSam" name="FASTQ to BAM" version="1.56.0">
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
2 <description>creates an unaligned BAM file</description>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
3 <requirements><requirement type="package" version="1.56.0">picard</requirement></requirements>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
4 <!-- Dan Blankenberg -->
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
5 <command>java -XX:DefaultMaxRAMFraction=1 -XX:+UseParallelGC
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
6 -jar "\$JAVA_JAR_PATH/FastqToSam.jar"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
7 FASTQ="${input_fastq1}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
8 #if str( $input_fastq2) != "None":
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
9 FASTQ2="${input_fastq2}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
10 #end if
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
11 QUALITY_FORMAT="${ dict( fastqsanger='Standard', fastqcssanger='Standard', fastqillumina='Illumina', fastqsolexa='Solexa' )[ $input_fastq1.ext ] }" ##Solexa, Illumina, Standard
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
12 OUTPUT="${output_bam}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
13 READ_GROUP_NAME="${read_group_name}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
14 SAMPLE_NAME="${sample_name}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
15 #if $param_type.param_type_selector == "advanced":
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
16 #if str( $param_type.library_name ) != "":
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
17 LIBRARY_NAME="${param_type.library_name}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
18 #end if
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
19 #if str( $param_type.platform_unit ) != "":
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
20 PLATFORM_UNIT="${param_type.platform_unit}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
21 #end if
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
22 #if str( $param_type.platform ) != "":
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
23 PLATFORM="${param_type.platform}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
24 #end if
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
25 #if str( $param_type.sequencing_center ) != "":
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
26 SEQUENCING_CENTER="${param_type.sequencing_center}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
27 #end if
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
28 #if str( $param_type.predicted_insert_size ) != "":
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
29 PREDICTED_INSERT_SIZE="${param_type.predicted_insert_size}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
30 #end if
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
31 #if str( $param_type.description.value ) != "":
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
32 DESCRIPTION="${param_type.description}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
33 #end if
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
34 #if str( $param_type.run_date ) != "":
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
35 RUN_DATE="${param_type.run_date}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
36 #end if
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
37 #if str( $param_type.min_q ) != "":
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
38 MIN_Q="${param_type.min_q}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
39 #end if
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
40 #if str( $param_type.min_q ) != "":
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
41 MAX_Q="${param_type.max_q}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
42 #end if
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
43 SORT_ORDER="${param_type.sort_order}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
44 #else:
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
45 SORT_ORDER=coordinate ##unsorted, queryname, coordinate; always use coordinate
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
46 #end if
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
47 2&gt;&amp;1
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
48 || echo "Error running Picard FastqToSAM" >&amp;2
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
49 </command>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
50 <inputs>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
51 <param name="input_fastq1" type="data" format="fastqsanger,fastqillumina,fastqsolexa,fastqcssanger" label="FASTQ file" /> <!-- confirm that fastqcssanger also works -->
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
52 <param name="input_fastq2" type="data" format="fastqsanger,fastqillumina,fastqsolexa,fastqcssanger" optional="True" label="Second FASTQ of paired end data" help="Only needed when using paired end data." >
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
53 <options options_filter_attribute="ext" from_parameter="tool.app.datatypes_registry.datatypes_by_extension" transform_lines="obj.keys()">
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
54 <column name="name" index="0"/>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
55 <column name="value" index="0"/>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
56 <filter type="param_value" ref="input_fastq1" ref_attribute="ext" column="0"/>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
57 </options>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
58 </param>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
59 <param name="read_group_name" type="text" value="A" label="Read Group Name" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
60 <param name="sample_name" type="text" value="unknown sample" label="Sample Name" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
61 <conditional name="param_type">
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
62 <param name="param_type_selector" type="select" label="Basic or Advanced options">
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
63 <option value="basic" selected="True">Basic</option>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
64 <option value="advanced">Advanced</option>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
65 </param>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
66 <when value="basic">
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
67 <!-- Do nothing here -->
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
68 </when>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
69 <when value="advanced">
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
70 <param name="library_name" type="text" value="" label="Library Name" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
71 <param name="platform_unit" type="text" value="" label="Platform Unit" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
72 <param name="platform" type="text" value="" label="Platform" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
73 <param name="sequencing_center" type="text" value="" label="Sequencing Center" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
74 <param name="predicted_insert_size" type="integer" value="" optional="True" label="Predicted Insert Size" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
75 <param name="description" type="text" value="" label="Description" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
76 <param name="run_date" type="text" value="" label="Run Date" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
77 <param name="min_q" type="integer" optional="True" value="0" label="Min Q" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
78 <param name="max_q" type="integer" optional="True" value="93" label="Max Q" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
79 <param name="sort_order" type="select" label="Sort order">
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
80 <option value="coordinate" selected="True">coordinate</option>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
81 <option value="queryname">queryname</option>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
82 <option value="unsorted">unsorted</option>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
83 </param>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
84 </when>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
85 </conditional>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
86 </inputs>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
87 <outputs>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
88 <data format="bam" name="output_bam" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
89 </outputs>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
90 <tests>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
91 <test>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
92 <param name="input_fastq1" value="bwa_wrapper_in2.fastqsanger" ftype="fastqsanger" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
93 <param name="input_fastq2" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
94 <param name="read_group_name" value="A" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
95 <param name="sample_name" value="unknown sample" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
96 <param name="param_type_selector" value="basic" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
97 <output name="output_bam" file="picard_fastq_to_sam_out1.bam" ftype="bam"/>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
98 </test>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
99 <test>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
100 <param name="input_fastq1" value="bwa_wrapper_in2.fastqsanger" ftype="fastqsanger" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
101 <param name="input_fastq2" value="bwa_wrapper_in3.fastqsanger" ftype="fastqsanger" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
102 <param name="read_group_name" value="A" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
103 <param name="sample_name" value="unknown sample" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
104 <param name="param_type_selector" value="basic" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
105 <output name="output_bam" file="picard_fastq_to_sam_out2.bam" ftype="bam"/>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
106 </test>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
107 </tests>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
108 <help>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
109 **What it does**
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
110
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
111 Picard: FastqToSam converts FASTQ files to unaligned BAM files.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
112
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
113 ------
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
114
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
115 Please cite the website "http://picard.sourceforge.net".
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
116
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
117 ------
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
118
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
119
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
120 **Input formats**
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
121
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
122 FastqToSam accepts FASTQ input files. If using paired-end data, you should select two FASTQ files.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
123
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
124 ------
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
125
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
126 **Outputs**
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
127
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
128 The output is in BAM format, see http://samtools.sourceforge.net for more details.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
129
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
130 -------
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
131
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
132 **FastqToSam settings**
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
133
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
134 This is list of FastqToSam options::
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
135
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
136 READ_GROUP_NAME=String Read group name Default value: A. This option can be set to 'null' to clear the default value.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
137 SAMPLE_NAME=String Sample name to insert into the read group header Required.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
138 LIBRARY_NAME=String The library name to place into the LB attribute in the read group header Default value: null.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
139 PLATFORM_UNIT=String The platform unit (often run_barcode.lane) to insert into the read group header Default value: null.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
140 PLATFORM=String The platform type (e.g. illumina, solid) to insert into the read group header Default value: null.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
141 SEQUENCING_CENTER=String The sequencing center from which the data originated Default value: null.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
142 PREDICTED_INSERT_SIZE=Integer Predicted median insert size, to insert into the read group header Default value: null.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
143 DESCRIPTION=String Inserted into the read group header Default value: null.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
144 </help>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
145 </tool>