hifiasm icon indicating copy to clipboard operation
hifiasm copied to clipboard

One unitig is unexpectedly missing after HiC phasing

Open zhangrengang opened this issue 2 years ago • 11 comments

The below is a unitig graph: the unitigs A and B is allelic (confirmed by aligning to reference). After HiC phasing, unitig A is in hic.hap2.p_ctg, but unitig B is missing in hic.hap1.p_ctg. 360截图1674010985115114

The following is the corresponding HiC heatmap: 360截图16740117171547

By the way, some switch errors are observed, but they can be corrected manually.

zhangrengang avatar Jul 26 '21 01:07 zhangrengang

It is possible... how long of A and B?

chhylp123 avatar Jul 26 '21 01:07 chhylp123

About 1M bp.

zhangrengang avatar Jul 26 '21 02:07 zhangrengang

In total, two issues of this type are observed in my assembly: one is ~1 Mbp (the above) and the other is ~400 Kbp. The 400kb is somewhat different as follows: the unitig C seems to be homozygous; it is in hap1 but not in hap2 after HiC phasing. 360截图17571118107135135 360截图17401210488969

zhangrengang avatar Jul 26 '21 02:07 zhangrengang

Thanks. Can you also find unitig B in hap2?

chhylp123 avatar Jul 26 '21 05:07 chhylp123

No. I combine hap1 and hap2 in HiC heatmap, so it will be present in the heatmap if it is in either haps.

zhangrengang avatar Jul 26 '21 06:07 zhangrengang

It is interesting. Is this possible that you can share the bin file with us for debugging?

chhylp123 avatar Jul 27 '21 10:07 chhylp123

I am sorry that the data is not my own, so I can not share.

zhangrengang avatar Jul 27 '21 10:07 zhangrengang

I see. Thanks for reporting this issue.

chhylp123 avatar Jul 27 '21 10:07 chhylp123

Could you please have a try with the current release (https://github.com/chhylp123/hifiasm/releases/tag/0.16.1)? I guess it should be able to resolve this issue.

chhylp123 avatar Sep 10 '21 21:09 chhylp123

Thanks. I have tried and the missed unitig is present this time.

zhangrengang avatar Sep 13 '21 08:09 zhangrengang

Thanks a lot!

chhylp123 avatar Sep 13 '21 13:09 chhylp123