Mercurial > repos > bioitcore > splicetrap
diff bin/splitdb.sh @ 1:adc0f7765d85 draft
planemo upload
| author | bioitcore | 
|---|---|
| date | Thu, 07 Sep 2017 15:06:58 -0400 | 
| parents | |
| children | 
line wrap: on
 line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/splitdb.sh Thu Sep 07 15:06:58 2017 -0400 @@ -0,0 +1,11 @@ +workingfolder=$1; +cd $workingfolder +cut -f1 ../TXdb.bed |uniq >chr.list; +while read line ; +do + chr=`echo $line |tr -d "\n"`; + grep -w $chr ../TXdb.bed >$chr.bed; + split -3000 $chr.bed $chr.; + echo $chr....; + rm $chr.bed; +done <chr.list;
