Mercurial > repos > xuebing > sharplabtool
comparison tools/picard/rgPicardLibComplexity.xml @ 0:9071e359b9a3
Uploaded
author | xuebing |
---|---|
date | Fri, 09 Mar 2012 19:37:19 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:9071e359b9a3 |
---|---|
1 <tool name="Estimate Library Complexity" id="rgEstLibComp" version="0.01"> | |
2 <command interpreter="python"> | |
3 picard_wrapper.py -i "$input_file" -n "$out_prefix" --tmpdir "${__new_file_path__}" --minid "$minIDbases" | |
4 --maxdiff "$maxDiff" --minmeanq "$minMeanQ" --readregex "$readRegex" --optdupdist "$optDupeDist" | |
5 -j "${GALAXY_DATA_INDEX_DIR}/shared/jars/EstimateLibraryComplexity.jar" -d "$html_file.files_path" -t "$html_file" | |
6 </command> | |
7 <inputs> | |
8 <param format="bam,sam" name="input_file" type="data" label="SAM/BAM dataset" | |
9 help="If empty, upload or import a SAM/BAM dataset."/> | |
10 <param name="out_prefix" value="Library Complexity" type="text" | |
11 label="Title for the output file" help="Use this remind you what the job was for." size="80" /> | |
12 <param name="minIDbases" value="5" type="integer" label="Minimum identical bases at starts of reads for grouping" size="5" | |
13 help="Total_reads / 4^max_id_bases reads will be compared at a time. Lower numbers = more accurate results and exponentially more time/memory." /> | |
14 <param name="maxDiff" value="0.03" type="float" | |
15 label="Maximum difference rate for identical reads" size="5" | |
16 help="The maximum rate of differences between two reads to call them identical" /> | |
17 <param name="minMeanQ" value="20" type="integer" | |
18 label="Minimum percentage" size="5" | |
19 help="The minimum mean quality of bases in a read pair. Lower average quality reads filtered out from all calculations" /> | |
20 <param name="readRegex" value="[a-zA-Z0-9]+:[0-9]:([0-9]+):([0-9]+):([0-9]+).*" type="text" size="120" | |
21 label="Regular expression that can be used to parse read names in the incoming SAM file" | |
22 help="Names are parsed to extract: tile/region, x coordinate and y coordinate, to estimate optical duplication rate" > | |
23 <sanitizer> | |
24 <valid initial="string.printable"> | |
25 <remove value="'"/> | |
26 </valid> | |
27 <mapping initial="none"> | |
28 <add source="'" target="__sq__"/> | |
29 </mapping> | |
30 </sanitizer> | |
31 </param> | |
32 <param name="optDupeDist" value="100" type="text" | |
33 label="The maximum offset between two duplicte clusters in order to consider them optical duplicates." size="5" | |
34 help="e.g. 5-10 pixels. Later Illumina software versions multiply pixel values by 10, in which case 50-100" /> | |
35 | |
36 </inputs> | |
37 <outputs> | |
38 <data format="html" name="html_file" label="${out_prefix}_lib_complexity.html"/> | |
39 </outputs> | |
40 <tests> | |
41 <test> | |
42 <param name="input_file" value="picard_input_tiny.sam" /> | |
43 <param name="out_prefix" value="Library Complexity" /> | |
44 <param name="minIDbases" value="5" /> | |
45 <param name="maxDiff" value="0.03" /> | |
46 <param name="minMeanQ" value="20" /> | |
47 <param name="readRegex" value="[a-zA-Z0-9]+:[0-9]:([0-9]+):([0-9]+):([0-9]+).*" /> | |
48 <param name="optDupeDist" value="100" /> | |
49 <output name="html_file" file="picard_output_estlibcomplexity_tinysam.html" ftype="html" lines_diff="30" /> | |
50 </test> | |
51 </tests> | |
52 <help> | |
53 | |
54 .. class:: infomark | |
55 | |
56 **Purpose** | |
57 | |
58 Attempts to estimate library complexity from sequence alone. | |
59 Does so by sorting all reads by the first N bases (5 by default) of each read and then | |
60 comparing reads with the first N bases identical to each other for duplicates. Reads are considered to be | |
61 duplicates if they match each other with no gaps and an overall mismatch rate less than or equal to MAX_DIFF_RATE (0.03 by default). | |
62 | |
63 Reads of poor quality are filtered out so as to provide a more accurate estimate. | |
64 The filtering removes reads with any no-calls in the first N bases or with a mean base quality lower than | |
65 MIN_MEAN_QUALITY across either the first or second read. | |
66 | |
67 The algorithm attempts to detect optical duplicates separately from PCR duplicates and excludes these in the | |
68 calculation of library size. Also, since there is no alignment to screen out technical reads one | |
69 further filter is applied on the data. After examining all reads a histogram is built of | |
70 [#reads in duplicate set -> #of duplicate sets]; all bins that contain exactly one duplicate set are | |
71 then removed from the histogram as outliers before library size is estimated. | |
72 | |
73 **Picard documentation** | |
74 | |
75 This is a Galaxy wrapper for EstimateLibraryComplexity, a part of the external package Picard-tools_. | |
76 | |
77 .. _Picard-tools: http://www.google.com/search?q=picard+samtools | |
78 | |
79 ----- | |
80 | |
81 .. class:: infomark | |
82 | |
83 **Inputs, outputs, and parameters** | |
84 | |
85 Picard documentation says (reformatted for Galaxy): | |
86 | |
87 .. csv-table:: | |
88 :header-rows: 1 | |
89 | |
90 Option Description | |
91 "INPUT=File","One or more files to combine and estimate library complexity from. Reads can be mapped or unmapped. This option may be specified 0 or more times." | |
92 "OUTPUT=File","Output file to writes per-library metrics to. Required." | |
93 "MIN_IDENTICAL_BASES=Integer","The minimum number of bases at the starts of reads that must be identical for reads to be grouped together for duplicate detection. In effect total_reads / 4^max_id_bases reads will be compared at a time, so lower numbers will produce more accurate results but consume exponentially more memory and CPU. Default value: 5." | |
94 "MAX_DIFF_RATE=Double","The maximum rate of differences between two reads to call them identical. Default value: 0.03. " | |
95 "MIN_MEAN_QUALITY=Integer","The minimum mean quality of the bases in a read pair for the read to be analyzed. Reads with lower average quality are filtered out and not considered in any calculations. Default value: 20." | |
96 "READ_NAME_REGEX=String","Regular expression that can be used to parse read names in the incoming SAM file. Read names are parsed to extract three variables: tile/region, x coordinate and y coordinate. These values are used to estimate the rate of optical duplication in order to give a more accurate estimated library size. The regular expression should contain three capture groups for the three variables, in order. Default value: [a-zA-Z0-9]+:[0-9]:([0-9]+):([0-9]+):([0-9]+).*. This option can be set to 'null' to clear the default value." | |
97 "OPTICAL_DUPLICATE_PIXEL_DISTANCE=Integer","The maximum offset between two duplicte clusters in order to consider them optical duplicates. This should usually be set to some fairly small number (e.g. 5-10 pixels) unless using later versions of the Illumina pipeline that multiply pixel values by 10, in which case 50-100 is more normal. Default value: 100" | |
98 "CREATE_MD5_FILE=Boolean","Whether to create an MD5 digest for any BAM files created. Default value: false. This option can be set to 'null' to clear the default value. " | |
99 | |
100 .. class:: warningmark | |
101 | |
102 **Warning on SAM/BAM quality** | |
103 | |
104 Many SAM/BAM files produced externally and uploaded to Galaxy do not fully conform to SAM/BAM specifications. Galaxy deals with this by using the **LENIENT** | |
105 flag when it runs Picard, which allows reads to be discarded if they're empty or don't map. This appears | |
106 to be the only way to deal with SAM/BAM that cannot be parsed. | |
107 | |
108 .. class:: infomark | |
109 | |
110 **Note on the Regular Expression** | |
111 | |
112 (from the Picard docs) | |
113 This tool requires a valid regular expression to parse out the read names in the incoming SAM or BAM file. | |
114 These values are used to estimate the rate of optical duplication in order to give a more accurate estimated library size. | |
115 The regular expression should contain three capture groups for the three variables, in order. | |
116 Default value: [a-zA-Z0-9]+:[0-9]:([0-9]+):([0-9]+):([0-9]+).*. | |
117 | |
118 | |
119 </help> | |
120 </tool> | |
121 | |
122 |