annotate picard_FastqToSam.xml @ 4:6d60f88c62e1 draft

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