I have done multiple thing,
I used this command for input file generation : samtools view homo_sapiens-bloodhic.bam | awk 'BEGIN {FS="\t"; OFS="\t"} {name1=$1; str1=and($2,16); chr1=$3; pos1=$4; mapq1=$5; getline; name2=$1; str2=and($2,16); chr2=$3; pos2=$4; mapq2=$5; if(name1==name2) { if (chr1>chr2){print name1, str2, chr2, pos2,1, str1, chr1, pos1, 0, mapq2, mapq1} else {print name1, str1, chr1, pos1, 0, str2, chr2, pos2 ,1, mapq1, mapq2}}}' | sort -k3,3d -k7,7d > output.txt
and then this command for hic file generation: java -jar hic_tools.3.30.00.jar pre -q 10 output.txt output.hic hg38
The only problem is that the heatmap that I get when I view the hic file in juicebox is just a dotted kind of line on diagonal, I don't see full heatmap. Is that because I am not using fragment information and filling dummy numbers? Also, I tested the test data for the pre command and for the test data heat map looked fine, so I know for sure that something might be wrong for the first command. Any help will be appreciated. Thank You.