-
Notifications
You must be signed in to change notification settings - Fork 9
'DiGraph' object has no attribute 'edge' #132
Comments
I get the same error with Edit: I cannot reproduce the problem with the HINGE version I built on 2017-08-29. It can only reproduce it with my most recent version I built on 2017-09-28.
|
Hi @asdcid, Ali, It looks like networkx had a new release on 20 Sept 2017. And they have substantially changed the functionality. Would it be possible for you to use the old version of networkx for now? The code seems to work well with it. This being a major change, would take us around two weeks to fix and test. Thanks a ton for bringing this to our attention. |
@govinda-kamath Thanks for the quite reply. It works with networkx v1.9!!. I have another question: can Hinge assembly a genome with low read coverage? I tried to different coverage, and found if the coverage is lower than 20x, it fails to assembly a genome. I tries to change some parameters in nominal.ini, but still can't let it works. Do you have any suggestion? |
Yes it should work, but one would expect the assembly to be more fragmented at low coverage. However, you could try lowering |
I set the min_cov to one, but can't make it work. |
The draft.fasta is an empty file. The input coverage is 10. /home/raymond/work/Eucalyptus_pauciflora/genome/bin/assembly/hinge/data/pacbioName/lowCoverage//10coverage.pacbioName.fasta result//10coverage [filter] [running] [draft] [consensus] [layout] [2017-10-03 16:57:32.560] [log] [info] Las files: 10coverage.las [filter] [running] [draft] [consensus] [layout] [2017-10-03 16:57:32.618] [log] [info] Las files: 10coverage.las [filter] [running] [draft] [consensus] [layout] [2017-10-03 16:57:32.688] [log] [info] # Reads: 88 [filter] [running] [draft] [consensus] [layout] [2017-10-03 16:57:34.232] [log] [info] # Reads: 88 list size:0 |
What is the length of the genome you're trying to assemble? 10x coverage is not a use case we have tested much and when assembling with 15 maximal reads and 45 overlaps, some thresholds picked elsewhere may come into play. However setting |
the length of genome is 160kb |
Whatever, Hinge is good. It can assemble a more complete genome compared to Canu, using the same coverage, default setting. |
By any chance, do you know which networkx version is supported? |
v1.9 |
I am trying to use this to assembly the nanopore reads, but when I run the hinge clip step, I got this error message.
"'
raymond:$hinge clip-nanopore ecoli.edges.hinges ecoli.hinge.list t1
/opt/python/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
Traceback (most recent call last):
File "/home/raymond/devel/hinge/HINGE//inst/bin/../lib/hinge/pruning_and_clipping_nanopore.py", line 1202, in
mark_skipped_edges(G,flname.split('.')[0] + '.edges.skipped')
File "/home/raymond/devel/hinge/HINGE//inst/bin/../lib/hinge/pruning_and_clipping_nanopore.py", line 942, in mark_skipped_edges
G.edge[lines1[0] + "" + lines1[3]][lines1[1] + "" + lines1[4]]['skipped'] = 1
AttributeError: 'DiGraph' object has no attribute 'edge'
"'
I am not sure whether it related to the HPC.dalinger step. When I run the HPC.dalinger step, I only get the ecoli.las file.
"'
raymond:$ HPC.daligner -t5 ecoli | csh -v
daligner -t5 ecoli ecoli
LAsort ecoli.ecoli.C0 ecoli.ecoli.N0 ecoli.ecoli.C1 ecoli.ecoli.N1 ecoli.ecoli.C2 ecoli.ecoli.N2 ecoli.ecoli.C3 ecoli.ecoli.N3 && LAmerge ecoli ecoli.ecoli.C0.S ecoli.ecoli.N0.S ecoli.ecoli.C1.S ecoli.ecoli.N1.S ecoli.ecoli.C2.S ecoli.ecoli.N2.S ecoli.ecoli.C3.S ecoli.ecoli.N3.S
LAcheck -vS ecoli ecoli
ecoli: 207,210 all OK
rm ecoli.ecoli.C0.las ecoli.ecoli.N0.las ecoli.ecoli.C1.las ecoli.ecoli.N1.las ecoli.ecoli.C2.las ecoli.ecoli.N2.las ecoli.ecoli.C3.las ecoli.ecoli.N3.las
rm ecoli.ecoli.C0.S.las ecoli.ecoli.N0.S.las ecoli.ecoli.C1.S.las ecoli.ecoli.N1.S.las ecoli.ecoli.C2.S.las ecoli.ecoli.N2.S.las ecoli.ecoli.C3.S.las ecoli.ecoli.N3.S.las
raymond:$ ls
ecoli.db ecoli.las
"'
The text was updated successfully, but these errors were encountered: