On Tue, Jun 02, 2009 at 10:07:05AM -0700, jbiesinger wrote: -> In the example documentation at http://www.doe-mbi.ucla.edu/~leec/newpygrdocs/tutorials/worldbase.html -> we have: -> -> ens_genes = Collection(filename='genes.db', mode='c' # create new -> database -> itemClass=Transcript) -> -> Where is the helper class "Transcript" defined? Saving a Collection -> that has an itemClass defined locally and trying to reload the -> Collection is giving me a "module has no attribute Exon" error. -> -> Thanks for your help!
Hi Jake, define Transcript in a different file, and then import it from there, e.g. from transcript import Transcript This is a pickle requirement. When I'm working on a simple throwaway analysis, I usually use 'objects.py' for all of my classes. --titus -- C. Titus Brown, c...@msu.edu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pygr-dev" group. To post to this group, send email to pygr-dev@googlegroups.com To unsubscribe from this group, send email to pygr-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pygr-dev?hl=en -~----------~----~----~----~------~----~------~--~---