# HG changeset patch # User rnateam # Date 1453031763 18000 # Node ID 7c7ff7a3503f7e31d311915b7bf873597c7a4464 # Parent 0f3d3f9f120fc606c222ba19280306ebff9bf5bb planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/blockbuster commit e11f6de08dca72259d2286c442c5464b1f2236d6 diff -r 0f3d3f9f120f -r 7c7ff7a3503f blockbuster.xml --- a/blockbuster.xml Fri Jan 15 07:52:56 2016 -0500 +++ b/blockbuster.xml Sun Jan 17 06:56:03 2016 -0500 @@ -1,4 +1,4 @@ - + detects blocks of overlapping reads using a gaussian-distribution approach blockbuster @@ -12,15 +12,20 @@ -scale $scale -merge $merge -tagFilter $tagFilter - -print $print + #if str($print).endswith( 'blocks' ) + -print 1 + #else + -print 2 + #end if $input > data.blockbuster; - #if str($print)=="1" - awk '{if ($1 ~ /^>/) print $2"\t"$3"\t"$4"\t"$1"\t"$6"\t"$5"\t"$3"\t"$4; else print $2"\t"$3"\t"$4"\tblock_"$1"\t"$6"\t"$5"\t"$3"\t"$4}' data.blockbuster - #else if str($print)=="2" - awk '{if ($1 ~ /^>/) print $2"\t"$3"\t"$4"\t"$1"\t"$6"\t"$5"\t"$3"\t"$4; else print $1"\t"$2"\t"$3"\t"$3"\t"$4"\t"$5"\t"$6"\t"$2"\t"$3}' data.blockbuster + #if str($print) == 'bed_blocks' + awk '{if ($1 ~ /^>/) print $2"\t"$3"\t"$4"\t"$1"\t"$6"\t"$5"\t"$3"\t"$4; else print $2"\t"$3"\t"$4"\tblock_"$1"\t"$6"\t"$5"\t"$3"\t"$4}' data.blockbuster > $output + #else if str($print) == 'bed_reads' + awk '{if ($1 ~ /^>/) print $2"\t"$3"\t"$4"\t"$1"\t"$6"\t"$5"\t"$3"\t"$4; else print $1"\t"$2"\t"$3"\t"$3"\t"$4"\t"$5"\t"$6"\t"$2"\t"$3}' data.blockbuster > $output + #else + mv data.blockbuster $output #end if - > $output ]]> @@ -32,14 +37,33 @@ - - + + + + - + + + + + + + + + + + + + + + + + + cluster_1 243.50 - 554745 554813 +chr1 554772 554813 block_1 213.33 - 554772 554813 +chr1 554746 554779 block_2 29.17 - 554746 554779 +chr1 554745 554764 block_3 1.00 - 554745 554764 diff -r 0f3d3f9f120f -r 7c7ff7a3503f test-data/blockbuster_test_result2.blockbuster --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/blockbuster_test_result2.blockbuster Sun Jan 17 06:56:03 2016 -0500 @@ -0,0 +1,4 @@ +>cluster_1 chr1 554745 554813 - 243.50 65 3 +1 chr1 554772 554813 - 213.33 45 +2 chr1 554746 554779 - 29.17 19 +3 chr1 554745 554764 - 1.00 1