Skip to content
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

TypeError: object of type 'int' has no len() #10

Open
xinwang-bio opened this issue Mar 3, 2019 · 4 comments
Open

TypeError: object of type 'int' has no len() #10

xinwang-bio opened this issue Mar 3, 2019 · 4 comments

Comments

@xinwang-bio
Copy link

xinwang-bio commented Mar 3, 2019

Hi
When I used this tool, I got an error as below. How can I fix it ?

Thanks

Hub-hub contact for bin_id:30767 scaffold: tig00000201_arrow_pilon/5_0 degree: 8
with bin_id: 30766 scaffold: tig00000201_arrow_pilon/4_58 degree:23

##############
these cases could introduce problems in the assembly.
Thus, node is being removed from the graph.
##############

Traceback (most recent call last):
File "/home/xinwang/local/miniconda2/bin/assemble", line 312, in
main(args)
File "/home/xinwang/local/miniconda2/bin/assemble", line 306, in main
super_contigs = assembl.assemble_contigs()
File "/home/xinwang/local/miniconda2/lib/python2.7/site-packages/hicassembler/HiCAssembler.py", line 201, in assemble_contigs
hub_solving_method='remove weakest')
File "/home/xinwang/local/miniconda2/lib/python2.7/site-packages/hicassembler/Scaffolds.py", line 27, in wrapper
f_result = func(*args, **kwds)
File "/home/xinwang/local/miniconda2/lib/python2.7/site-packages/hicassembler/Scaffolds.py", line 1803, in join_paths_max_span_tree
self._remove_weakest(nxG)
File "/home/xinwang/local/miniconda2/lib/python2.7/site-packages/hicassembler/Scaffolds.py", line 2002, in _remove_weakest
if len(path) < 5:
TypeError: object of type 'int' has no len()

@xinwang-bio xinwang-bio changed the title tables.exceptions.NoSuchNodeError: group / does not have a child named correction_factors TypeError: object of type 'int' has no len() Mar 3, 2019
@fidelram
Copy link
Contributor

fidelram commented Mar 4, 2019 via email

@xinwang-bio
Copy link
Author

@fidelram
Now. I faced another problem like below.
Hub-hub contact for bin_id:30767 scaffold: tig00000201_arrow_pilon/5_0 degree: 8
with bin_id: 30766 scaffold: tig00000201_arrow_pilon/4_58 degree:23

##############
these cases could introduce problems in the assembly.
Thus, node is being removed from the graph.
##############

Traceback (most recent call last):
File "/home/xinwang/local/miniconda2/bin/assemble", line 312, in
main(args)
File "/home/xinwang/local/miniconda2/bin/assemble", line 306, in main
super_contigs = assembl.assemble_contigs()
File "/home/xinwang/local/miniconda2/lib/python2.7/site-packages/hicassembler/HiCAssembler.py", line 201, in assemble_contigs
hub_solving_method='remove weakest')
File "/home/xinwang/local/miniconda2/lib/python2.7/site-packages/hicassembler/Scaffolds.py", line 27, in wrapper
f_result = func(*args, **kwds)
File "/home/xinwang/local/miniconda2/lib/python2.7/site-packages/hicassembler/Scaffolds.py", line 1803, in join_paths_max_span_tree
self._remove_weakest(nxG)
File "/home/xinwang/local/miniconda2/lib/python2.7/site-packages/hicassembler/Scaffolds.py", line 2002, in _remove_weakest
if len(path) < 5:
TypeError: object of type 'int' has no len()

@Karimi-81
Copy link

Hi There,
I also encountered with the same issue:
WARNING:Scaffolds:

Hub-hub contact for bin_id:9590 scaffold: ptg000031l/8_0 degree: 3
with bin_id: 9921 scaffold: ptg000031l/25_116 degree:4

##############
these cases could introduce problems in the assembly.
Thus, node is being removed from the graph.
##############

Traceback (most recent call last):
File "/home/karimi81/env_HiCAssembler_p27/bin/assemble", line 312, in
main(args)
File "/home/karimi81/env_HiCAssembler_p27/bin/assemble", line 306, in main
super_contigs = assembl.assemble_contigs()
File "/home/karimi81/env_HiCAssembler_p27/lib/python2.7/site-packages/hicassembler/HiCAssembler.py", line 201, in assemble_contigs
hub_solving_method='remove weakest')
File "/home/karimi81/env_HiCAssembler_p27/lib/python2.7/site-packages/hicassembler/Scaffolds.py", line 27, in wrapper
f_result = func(*args, **kwds)
File "/home/karimi81/env_HiCAssembler_p27/lib/python2.7/site-packages/hicassembler/Scaffolds.py", line 1803, in join_paths_max_span_tree
self._remove_weakest(nxG)
File "/home/karimi81/env_HiCAssembler_p27/lib/python2.7/site-packages/hicassembler/Scaffolds.py", line 2002, in _remove_weakest
if len(path) < 5:
TypeError: object of type 'int' has no len()

Did you solve this problem. Can you please guide me to solve it.

@grpiccoli
Copy link

I am having the same issue, has anyone solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants