annotate splicetrap/bin/splitdb.sh @ 7:37a16ff93dd9 draft default tip

planemo upload
author bioitcore
date Thu, 12 Oct 2017 16:26:36 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
37a16ff93dd9 planemo upload
bioitcore
parents:
diff changeset
1 workingfolder=$1;
37a16ff93dd9 planemo upload
bioitcore
parents:
diff changeset
2 cd $workingfolder
37a16ff93dd9 planemo upload
bioitcore
parents:
diff changeset
3 cut -f1 ../TXdb.bed |uniq >chr.list;
37a16ff93dd9 planemo upload
bioitcore
parents:
diff changeset
4 while read line ;
37a16ff93dd9 planemo upload
bioitcore
parents:
diff changeset
5 do
37a16ff93dd9 planemo upload
bioitcore
parents:
diff changeset
6 chr=`echo $line |tr -d "\n"`;
37a16ff93dd9 planemo upload
bioitcore
parents:
diff changeset
7 grep -w $chr ../TXdb.bed >$chr.bed;
37a16ff93dd9 planemo upload
bioitcore
parents:
diff changeset
8 split -3000 $chr.bed $chr.;
37a16ff93dd9 planemo upload
bioitcore
parents:
diff changeset
9 echo $chr....;
37a16ff93dd9 planemo upload
bioitcore
parents:
diff changeset
10 rm $chr.bed;
37a16ff93dd9 planemo upload
bioitcore
parents:
diff changeset
11 done <chr.list;