lh3 / hickit

TAD calling, phase imputation, 3D modeling and more for diploid single-cell Hi-C (Dip-C) and general Hi-C
100 stars 11 forks source link

simple merging of duplicates' phases #6

Closed tanlongzhi closed 5 years ago

tanlongzhi commented 5 years ago

note that in dedup, I had to change for (j = i - 1; into for (j = n - 1; (namely, only compares with non-skipped contacts), which very slightly changed the dedup behavior regardless of phases, but shouldn't affect correctness

I've also assumed that unknown phases are internally represented as -1, and left conflicting phase info as -2, which hopefully won't affect other things