You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I using cphasing pipeline, I notice that without "--chimeric-correct" option, everything is alright, but with this option switch on, an error will occur in the final step 5 (plotting).
I take some investigation and find that the issue is, https://github.com/wangyibin/CPhasing/blob/main/cphasing/core.py#L1761-L1769
in this block, record.split(":")[1].split() on uncorrected lines #chromsize: h1tg000550l 30760 get ['h1tg000550l', '30760'],
but on corrected lines #chromsize: h2tg000071l:250501-1084447 833947, it split on the second : and get ['h2tg000071l'], causing the error.
Add maxsplit=1 to L1764 (_res = [record.split(":", maxsplit=1)[1].split() for record in _res]) seems solve this issue. (haven't checked yet) (tested, success, but some homologous chromosome shows no contact, seems there may be more uncatched error)
Best wishes.
The text was updated successfully, but these errors were encountered:
I am very sorry for replying so late.
Thank you for your report on the bug of PairHeader processing. We will fix it in the next release.
The problem of loss contact is a bug of the cphasing pairs2cool command; you can add the parameter of --low-memory to generate a new .cool file to skip it. And we will fix it in the next release.
Dear developers,
Thank you for developing such excellent tool.
When I using cphasing pipeline, I notice that without "--chimeric-correct" option, everything is alright, but with this option switch on, an error will occur in the final step 5 (plotting).
I take some investigation and find that the issue is,
https://github.com/wangyibin/CPhasing/blob/main/cphasing/core.py#L1761-L1769
in this block,
record.split(":")[1].split()
on uncorrected lines#chromsize: h1tg000550l 30760
get['h1tg000550l', '30760']
,but on corrected lines
#chromsize: h2tg000071l:250501-1084447 833947
, it split on the second:
and get['h2tg000071l']
, causing the error.Add
maxsplit=1
to L1764 (_res = [record.split(":", maxsplit=1)[1].split() for record in _res]
) seems solve this issue.(haven't checked yet)(tested, success, but some homologous chromosome shows no contact, seems there may be more uncatched error)Best wishes.
The text was updated successfully, but these errors were encountered: