cd /storage3/estsoi/merged_replicas_1k
list=$(ls -1 -I "*.bedgraph" /storage3/estsoi/merged_replicas_1k | grep -v k.cool)
for cool in $list; do
out_file_name=$(basename ${cool} | awk -F"." '{print $1}')
echo $cool $out_file_name
cooler coarsen -k 10 -p 10 -o /storage3/estsoi/merged_10k_19chr/${out_file_name}_10k.cool ${cool}
done
