-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun4GenData.sh
More file actions
executable file
·40 lines (34 loc) · 1.01 KB
/
run4GenData.sh
File metadata and controls
executable file
·40 lines (34 loc) · 1.01 KB
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
29
30
31
32
33
34
35
36
37
38
39
# TODO: tool to extract matrix from .hic files
# file path of straw form Juicer
# must need the absolute path
straw="/Users/shallylai/Juicer/straw-master/bin/Mac/straw"
# store the output file
cd data
# $1: name of dataset
mkdir $1
cd ..
# TODO: mapping tools' name
declare -a Tools=("hicpro" "hicup" "hicpipe" "hickit" "5" "5SP")
# path of Hi-C data
HiC_data_Path="/Users/shallylai/Special_Topics/HiC"
# TODO: loop for HiC map normalization methods
for nor in NONE #VC VC_SQRT KR
do
# TODO: chromosome we want to get
for chr in 1 22
do
# TODO: HiC binszies
for bin_size in 10 #25
do
echo "Process: " $nor $chr ${bin_size}000
# extract sparse upper triangular matrix format for mapping tools
for MappingTool in "${Tools[@]}"
do
out_file="data/$1/$1_${MappingTool}_${nor}_chr${chr}_${bin_size}kb.txt"
echo out_file
echo $out_file "create"
[ ! -e $out_file ] && $straw $nor $HiC_data_Path/$1/"$MappingTool"_$1.hic $chr $chr BP ${bin_size}000 > $out_file
done
done
done
done