| 50 | 1 <tool id="merge_pcr_duplicates.py" name="Merge PCR duplicates" version="0.2.0"> | 
| 6 | 2   <description>according to random barcode library.</description> | 
| 2 | 3   <macros> | 
|  | 4     <import>macros.xml</import> | 
|  | 5   </macros> | 
|  | 6   <expand macro="requirements" /> | 
|  | 7   <expand macro="stdio" /> | 
| 50 | 8   <requirements> | 
|  | 9       <requirement type="package" version="4.1.0">gnu_awk</requirement> | 
|  | 10       <requirement type="package" version="8.22">gnu_coreutils</requirement> | 
|  | 11   </requirements> | 
|  | 12   <version_command>python $__tool_directory__/merge_pcr_duplicates.py --version</version_command> | 
| 2 | 13   <command interpreter="python"><![CDATA[merge_pcr_duplicates.py | 
|  | 14 #if $positional_1 and $positional_1 is not None: | 
|  | 15 $positional_1 | 
|  | 16 #end if | 
|  | 17 | 
|  | 18 #if $positional_2 and $positional_2 is not None: | 
|  | 19 $positional_2 | 
|  | 20 #end if | 
|  | 21 | 
|  | 22 > $default]]></command> | 
|  | 23   <inputs> | 
|  | 24     <param area="false" label="bed6 file containing alignments." name="positional_1" type="data" format="bed"/> | 
| 50 | 25     <param area="false" label="fastaq barcode library." name="positional_2" type="data" format="fastq"/> | 
| 2 | 26   </inputs> | 
|  | 27   <outputs> | 
|  | 28     <data format="bed" hidden="false" name="default"/> | 
|  | 29   </outputs> | 
|  | 30   <tests> | 
|  | 31     <test> | 
|  | 32       <param name="positional_1" value="pcr_dupes_sorted_2.bed"/> | 
| 9 | 33       <param name="positional_2" value="pcr_dupes_randomdict.fastq"/> | 
| 2 | 34       <output name="default" file="merged_pcr_dupes.bed"/> | 
|  | 35     </test> | 
|  | 36   </tests> | 
|  | 37   <help><![CDATA[ | 
|  | 38 Merge PCR duplicates according to random barcode library. | 
|  | 39 | 
|  | 40 Barcodes containing uncalled base 'N' are removed. | 
|  | 41 | 
| 6 | 42 Input:: | 
|  | 43 | 
| 2 | 44 * bed6 file containing alignments with fastq read-id in name field | 
| 8 | 45 * fastq library of random barcodes | 
| 2 | 46 | 
| 6 | 47 Output:: | 
|  | 48 | 
| 2 | 49 * bed6 file with random barcode in name field and number of PCR duplicates as score, sorted by fields chrom, start, stop, strand, name | 
|  | 50 | 
|  | 51 Author: Daniel Maticzka | 
|  | 52 Copyright: 2015 | 
|  | 53 License: Apache | 
|  | 54 Email: maticzkd@informatik.uni-freiburg.de | 
|  | 55 Status: Testing | 
|  | 56 ]]></help> | 
|  | 57   <expand macro="citations" /> | 
|  | 58 </tool> |