# HG changeset patch # User artbio # Date 1640886271 0 # Node ID de833cc76a8e06e9e91afaee716bd43fc6160572 # Parent 7ad3484aa5db947dc6ca1b3565f3931580b90f59 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe" diff -r 7ad3484aa5db -r de833cc76a8e sambamba.xml --- a/sambamba.xml Thu Dec 30 02:06:08 2021 +0000 +++ b/sambamba.xml Thu Dec 30 17:44:31 2021 +0000 @@ -1,4 +1,4 @@ - + on flags, fields, and tags using Sambamba @@ -26,9 +26,14 @@ --subsampling-seed='$sambamba_options.seed' -s '$sambamba_options.fraction' -o '$outfile' input.bam + #end if - #else - sambamba slice -o '$outfile' input.bam $sambamba_options.region + #if $sambamba_options.selector == 'slice' + #if $sambamba_options.slice.slice_format == 'text' + sambamba slice -o '$outfile' input.bam $sambamba_options.slice.region + #else + sambamba slice --regions $sambamba_options.slice.bed_file -o '$outfile' input.bam + #end if #end if ]]> @@ -64,15 +69,27 @@ - - - Regions can be specified as 'chr2' (the whole chr2), 'chr2:1000000' - (region starting from 1,000,000bp) or 'chr2:1,000,000-2,000,000' - (region between 1,000,000 and 2,000,000bp including the end points). - The coordinates are 1-based. NOTE that sambamba slice only outputs - BAM-format datasets. - - + + + + + + + + + + + + Regions can be specified as 'chr2' (the whole chr2), 'chr2:1000000' + (region starting from 1,000,000bp) or 'chr2:1,000,000-2,000,000' + (region between 1,000,000 and 2,000,000bp including the end points). + The coordinates are 1-based. NOTE that sambamba slice only outputs + BAM-format datasets. + + + + @@ -131,10 +148,19 @@ + + + + + + + + + diff -r 7ad3484aa5db -r de833cc76a8e test-data/regions.bed --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/regions.bed Thu Dec 30 17:44:31 2021 +0000 @@ -0,0 +1,2 @@ +AL096846 999 2000 +AL096846 3999 5000