-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
object of type 'int' has no len() in Scaffolds.py _remove_weakest len(path) #8
Comments
Looks like a corner condition was reached and the code was not prepared to handle it. Path, in this case is a list of id, that define continuity of a sequence. It should not be an integer. I would need some sample data to debug that. |
Ok, so Corner would mean what? The following?
Any idea about the cause of this? For the sample data you would need the whole h5 matrix + fasta? Thanks a bunch for the answer. |
@gtrichard Hi I also face this error. How you can fix it ? |
I got the same error. `INFO:Scaffolds:Entering join_paths_max_span_tree Hub-hub contact for bin_id:20481 scaffold: scaffold_177_1 degree: 4 ############## Traceback (most recent call last): Hi @gtrichard @wangxinbio, how did you solve it? Hi @fidelram, is there any software update regarding this error? Thanks! |
I didn't solve it. |
Has someone solved this issue? |
@gtrichard you did solve it in the end, thank you for the comment, that was the solution, cheers |
One of my former colleague is trying to use HiCAssembler. He launched the following command:
And received this error:
When checking the code of Scaffolds.py, between lines 1997 and 2006, I saw that
path
is defined as the length of something, so it is an integer that of course doesn't have a length itself soif len(path) < 5:
is crashing.I told him to replace line 1999 of Scaffolds.py
path = len(self.pg_base[node])
bypath = self.pg_base[node]
. Then he received a different error:He installed HiCAssembler and HiCExplorer with the following commands:
The text was updated successfully, but these errors were encountered: