Mercurial > repos > hepcat72 > lumpyexpress
comparison lumpy_wrapper.tcsh @ 2:bfd745cf84c2 draft
planemo upload for repository https://github.com/hepcat72/robs_galaxy_tools/tree/master/tools/lumpyexpress commit 3e9afda4e4ad444b21dc30b866074ed6fa527bfa
author | hepcat72 |
---|---|
date | Thu, 25 Oct 2018 13:53:31 -0400 |
parents | e5150e64206a |
children | ea7edefc72c3 |
comparison
equal
deleted
inserted
replaced
1:107fa8e0b744 | 2:bfd745cf84c2 |
---|---|
17 | 17 |
18 setenv BAMS '' | 18 setenv BAMS '' |
19 setenv SPLTS '' | 19 setenv SPLTS '' |
20 setenv DSCDS '' | 20 setenv DSCDS '' |
21 setenv SPLTOPTS '' | 21 setenv SPLTOPTS '' |
22 | |
23 ## | |
24 ## The following is a work-around to a condition that causes a segfault in lumpy from lumpyexpress due to a new min_element threshold | |
25 ## | |
26 | |
27 setenv LUMPYEXPRESSSCPT lumpyexpress | |
28 setenv LUMPYEXPRESSLOC `which lumpyexpress` | |
29 setenv LUMPYDIR `dirname $LUMPYEXPRESSLOC` | |
30 setenv LUMPYCONFIG lumpyexpress.config | |
31 setenv DISTROSCPT pairend_distro.py | |
32 setenv DISTROLOC `which $DISTROSCPT` | |
33 perl -e 'while(<STDIN>){s/min_elements = 10+/min_elements = 1/;print}' < $DISTROLOC > ./$DISTROSCPT | |
34 perl -e 'while(<STDIN>){s/PAIREND_DISTRO=.*/PAIREND_DISTRO=$ARGV[0]/;print}' ./$DISTROSCPT < $LUMPYDIR/$LUMPYCONFIG > ./$LUMPYCONFIG | |
35 perl -e 'while(<STDIN>){s/PAIREND_DISTRO=.*/PAIREND_DISTRO=$ARGV[0]/;print}' ./$DISTROSCPT < $LUMPYEXPRESSLOC > ./$LUMPYEXPRESSSCPT | |
36 chmod 555 ./$DISTROSCPT | |
37 chmod 555 ./$LUMPYEXPRESSSCPT | |
22 | 38 |
23 foreach b ( $MYARGV ) | 39 foreach b ( $MYARGV ) |
24 | 40 |
25 echo | 41 echo |
26 echo Preparing $b | 42 echo Preparing $b |
120 end | 136 end |
121 | 137 |
122 if ( $PAIREDENDRUN ) then | 138 if ( $PAIREDENDRUN ) then |
123 | 139 |
124 echo | 140 echo |
125 echo "Running: lumpyexpress -B $BAMS -S $SPLTS -D $DSCDS -o $OUTVCF" | 141 echo "Running: ./$LUMPYEXPRESSSCPT -B $BAMS -S $SPLTS -D $DSCDS -o $OUTVCF" |
126 lumpyexpress -B $BAMS -S $SPLTS -D $DSCDS -o $OUTVCF | 142 ./$LUMPYEXPRESSSCPT -B $BAMS -S $SPLTS -D $DSCDS -o $OUTVCF |
127 | 143 |
128 if ( $status ) then | 144 if ( $status ) then |
129 echo "lumpyexpress failed" | 145 echo "lumpyexpress failed" |
130 exit 9 | 146 exit 9 |
131 endif | 147 endif |