#!/usr/bin/env bash

set -euxo pipefail

# RESOLUTIONS=(1000 5000 10000 25000 50000 100000 1000000)
# COOLERS='/net/projects/4dn2_hepdiff/hic/2023-10-20_distiller-0.3.4/results/coolers_library_group/*.mapq_30.1000.mcool'
# OUTPUT_DIR='/net/projects/4dn2_hepdiff/hic/2023-10-20_distiller-0.3.4_cooltools-group/results/insulation'

# which cooltools || echo cooltools not installed
# mkdir -p $OUTPUT_DIR

# for binsize in ${RESOLUTIONS[@]}; do
# 	for f in $COOLERS; do
# 		cooler_basename=$(basename "$f")
# 		cooltools insulation -p 32 --window-pixels "$f::resolutions/$binsize" 5 10 > "$OUTPUT_DIR/${cooler_basename%%.*}.$binsize.insul.window5-10px.tsv"
# 	done
# done
