-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebug.sh
More file actions
executable file
·29 lines (22 loc) · 1008 Bytes
/
debug.sh
File metadata and controls
executable file
·29 lines (22 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
for i in $(ls -d GTSP*/); do
echo ${i%%//};
Rscript ~/makeUCSCHubFromBedFiles/GTSP2BED_fromFolder.R -t all ${i%%//};
Rscript ~/makeUCSCHubFromBedFiles/GTSP2BED_fromFolder.R -t uniq ${i%%//};
Rscript ~/makeUCSCHubFromBedFiles/GTSP2BED_fromFolder.R -t multi ${i%%//};
done
cat GTSP*.all.bed > caller.all.bed
cat GTSP*.uniq.bed > caller.uniq.bed
cat GTSP*.multi.bed > caller.multi.bed
rm GTSP*.bed
cat <<EOT > bed.csv
Sample,bedfile,Notes,freeze,hub
truth,truth.bed,truth,hg18,simint
callerall,callerall.bed,all,hg18,simint
calleruniq,calleruniq.bed,uniq,hg18,simint
callermulti,callermulti.bed,multi,hg18,simint
EOT
## may need to move to microb244 to make UCSC tracks
## bed.csv truth.bed caller.bed
Rscript ~/intSiteCaller/check_stats.R | cut -f1-30 | head -1 > tmp.txt
Rscript ~/intSiteCaller/check_stats.R | cut -f1-30 | awk '{for(i=1;i<=NF;i++)a[i]+=$i} END{for(i=1;i<=NF;i++)printf "%d%s", a[i], (i==NF?"\n":",")}' >> tmp.txt
cat tmp.txt | tr "\t" "," | tr "," "\t" | transpose.pl