comparison artbio_bam_cleaning.xml @ 4:15ada8e1580a draft

"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit 13e2d0837000c2557f9590aa861a9fd5bc16cbcc"
author artbio
date Tue, 16 Mar 2021 23:38:46 +0000
parents a1462dd52f17
children ebdaf5b3d6a7
comparison
equal deleted inserted replaced
3:a1462dd52f17 4:15ada8e1580a
1 <tool id="artbio_bam_cleaning" name="ARTbio bam cleaning" version="1.6+galaxy3"> 1 <tool id="artbio_bam_cleaning" name="ARTbio bam cleaning" version="1.6+galaxy4">
2 <description> 2 <description>
3 on flags and PCR Duplicates and MD recalibration 3 on flags and PCR Duplicates and MD recalibration
4 </description> 4 </description>
5 <macros> 5 <macros>
6 <import>macro.xml</import> 6 <import>macro.xml</import>
18 @set_fasta_index@ 18 @set_fasta_index@
19 #set input_base = 'input' 19 #set input_base = 'input'
20 ln -f -s $input_bam.metadata.bam_index input.bam.bai && 20 ln -f -s $input_bam.metadata.bam_index input.bam.bai &&
21 ln -s $input_bam input.bam && 21 ln -s $input_bam input.bam &&
22 sambamba view -h -t \${GALAXY_SLOTS:-2} --filter='mapping_quality >= 1 and not(unmapped) and not(mate_is_unmapped)' -f 'bam' $input_base".bam" 22 sambamba view -h -t \${GALAXY_SLOTS:-2} --filter='mapping_quality >= 1 and not(unmapped) and not(mate_is_unmapped)' -f 'bam' $input_base".bam"
23 | samtools rmdup - - 23 #if $skip_rmdup == 'no':
24 |tee $input_base".filt1.dedup.bam"| bamleftalign --fasta-reference reference.fa -c --max-iterations "5" - 24 | samtools rmdup -s - - | tee $input_base".filt1.dedup.bam"
25 #end if
26 | bamleftalign --fasta-reference reference.fa -c --max-iterations "5" -
25 | samtools calmd -C 50 -b -@ \${GALAXY_SLOTS:-2} - reference.fa > $calmd 27 | samtools calmd -C 50 -b -@ \${GALAXY_SLOTS:-2} - reference.fa > $calmd
26 && sambamba view -h -t \${GALAXY_SLOTS:-2} --filter='mapping_quality <= 254' -f 'bam' -o $fullfilter $calmd 28 && sambamba view -h -t \${GALAXY_SLOTS:-2} --filter='mapping_quality <= 254' -f 'bam' -o $fullfilter $calmd
27 ]]></command> 29 ]]></command>
28 <inputs> 30 <inputs>
29 <expand macro="reference_source_conditional" /> 31 <expand macro="reference_source_conditional" />
30 <param name="input_bam" type="data" format="bam" label="BAM or SAM file to process"/> 32 <param name="input_bam" type="data" format="bam" label="BAM or SAM file to process"/>
33 <param name="skip_rmdup" type="select" label="skip remove pcr duplicate step ?" display="radio"
34 help="useful if duplicates are already marked by other tools">
35 <option value="no" selected="true">No</option>
36 <option value="yes">Yes</option>
37 </param>
31 </inputs> 38 </inputs>
32 <outputs> 39 <outputs>
33 <data name="calmd" format="bam" label="CalMD filter (for lumpy-smoove)" /> 40 <data name="calmd" format="bam" label="CalMD filter (for lumpy-smoove)" />
34 <data name="fullfilter" format="bam" label="Full filtering (for somatic-varscan)" /> 41 <data name="fullfilter" format="bam" label="Full filtering (for somatic-varscan)" />
35 </outputs> 42 </outputs>
36 <tests> 43 <tests>
37 <test> 44 <test>
38 <param name="input_bam" value="match_chr21_DBA_974.bam" ftype="bam" /> 45 <param name="input_bam" value="match_chr21_DBA_974.bam" ftype="bam" />
39 <param name="reference_source_selector" value="history" /> 46 <param name="reference_source_selector" value="history" />
40 <param name="ref_file" value="chr21.fa" /> 47 <param name="ref_file" value="chr21.fa" />
41 <output name="calmd" file="match_chr21_DBA_974.filt1.dedup.bamleft.calmd.bam" ftype="bam" /> 48 <output name="calmd" file="calmd.bam" ftype="bam" />
42 <output name="fullfilter" file="match_chr21_DBA_974.filt1.dedup.bamleft.calmd.filt2.bam" ftype="bam" /> 49 <output name="fullfilter" file="full.bam" ftype="bam" />
50 </test>
51 <test>
52 <param name="input_bam" value="match_chr21_DBA_974.bam" ftype="bam" />
53 <param name="reference_source_selector" value="history" />
54 <param name="skip_rmdup" value="yes" />
55 <param name="ref_file" value="chr21.fa" />
56 <output name="calmd" file="normdup_calmd.bam" ftype="bam" />
57 <output name="fullfilter" file="normdup_full.bam" ftype="bam" />
43 </test> 58 </test>
44 </tests> 59 </tests>
45 <help> 60 <help>
46 ARTbio bam cleaning overview 61 ARTbio bam cleaning overview
47 ============================ 62 ============================