Could someone post a simple example of using two AnnotationDBs to
create a Graph? I'm really stuck as to what sourceDB, targetDB, edgeDB
should be set to, and what objects or ids should be used to create the
graph nodes and edges. For example, when I add nodes to the graph with
sourceDB and targetDB are AnnotationDBs, I usually get AttributeErrors
that an int object has no 'id' attribute (obviously).

For example:
http://kmdaily.pastebin.com/m34fdb794

Then, I get:

    UG[hit][curr_feature['feature']] = curr_feature['distance']
  File "/home/dock/shared_libraries/lx64/pkgs/pythonsandbox/2.6.2/lib/
python2.6/site-packages/pygr-0.8.0-py2.6-linux-x86_64.egg/pygr/
mapping.py", line 608, in __setitem__
    = self.graph.pack_edge(edgeInfo)
  File "/home/dock/shared_libraries/lx64/pkgs/pythonsandbox/2.6.2/lib/
python2.6/site-packages/pygr-0.8.0-py2.6-linux-x86_64.egg/pygr/
mapping.py", line 423, in pack_id
    return obj.id
AttributeError: 'int' object has no attribute 'id'

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pygr-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pygr-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to