annotate paired_bam_dealer.xml @ 6:add58a8a67f0 tip

planemo upload commit b'5e9a6cdf7bbe14678aa83ae2304bde4b6ad2976d\n'-dirty
author jpayne
date Fri, 08 Dec 2017 14:03:09 -0500
parents 55df0d1c6365
children
rev   line source
jpayne@0 1 <tool id="paired_bam_dealer" name="Deal out" version="0.1.0">
jpayne@0 2 <description>paired-end reads by alignment or non-alignment to a reference</description>
jpayne@0 3 <requirements>
jpayne@6 4 <requirement type="package" version="1.3.1">samtools</requirement>
jpayne@4 5 <requirement type="package" version="2.26">bedtools</requirement>
jpayne@0 6 </requirements>
jpayne@0 7 <command detect_errors="exit_code"><![CDATA[
jpayne@5 8 bamToFastq -i <(samtools sort -n <(samtools view -u -f 1 -F 12 $input_bam ))
jpayne@5 9 -fq $mapped_1
jpayne@5 10 -fq2 $mapped_2 && echo "mapped out" &&
jpayne@5 11 bamToFastq -i <(
jpayne@5 12 samtools merge -u -
jpayne@5 13 <(samtools view -u -f 4 -F 264 $input_bam)
jpayne@5 14 <(samtools view -u -f 8 -F 260 $input_bam)
jpayne@5 15 <(samtools view -u -f 12 -F 256 $input_bam)
jpayne@5 16 | samtools sort -n
jpayne@5 17 )
jpayne@5 18 -fq $unmapped_1
jpayne@5 19 -fq2 $unmapped_2 && echo "unmapped out"
jpayne@0 20 ]]></command>
jpayne@0 21 <inputs>
jpayne@0 22 <param format="bam" name="input_bam" type="data" label="BAM alignment" />
jpayne@0 23 </inputs>
jpayne@0 24 <outputs>
jpayne@0 25 <data format="fastqsanger" label="unmapping reads, reverse" name="unmapped_2" />
jpayne@0 26 <data format="fastqsanger" label="unmapping reads, forward" name="unmapped_1" />
jpayne@0 27 <data format="fastqsanger" label="mapping reads, reverse" name="mapped_2" />
jpayne@0 28 <data format="fastqsanger" label="mapping reads, forward" name="mapped_1" />
jpayne@0 29 </outputs>
jpayne@0 30 <tests>
jpayne@0 31 <test>
jpayne@0 32 <param name="input_bam" value="mapped_reads.bam" />
jpayne@0 33 <output name="mapped_1" value="forward_mapped.fastq" />
jpayne@0 34 <output name="mapped_2" value="reverse_mapped.fastq" />
jpayne@0 35 <output name="unmapped_1" value="forward_unmapped.fastq" />
jpayne@0 36 <output name="unmapped_2" value="reverse_unmapped.fastq" />
jpayne@0 37 </test>
jpayne@0 38 </tests>
jpayne@0 39 <help><![CDATA[
jpayne@0 40 Input is a BAM alignment of paired-end reads to a reference. Output is paired-end files of reads mapping and reads not mapping to reference.
jpayne@0 41 ]]></help>
jpayne@0 42
jpayne@0 43 <citations>
jpayne@0 44 </citations>
jpayne@0 45 </tool>