annotate picard_FastqToSam.xml @ 121:67f1ec3ab183 draft

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