On Wed, Jan 06, 2010 at 03:28:47PM +0900, Namshin Kim wrote:
> What about saving your resources by another name?
> 
> from pygr import metabase
> mdb = metabase.Metabase('.')
> 
> test_genome = mdb('Bio.Seq.Genome.test_genome')
> mdb.add_resource('Bio.Seq.Genome.real_genome', test_genome)
> mdb.commit()

Well, you might want to *forward*, as with a symbolic link, so that
if you change 'test_genome', 'real_genome' changes with it.  I don't think
there's a way to do that currently.

--titus

> On Wed, Jan 6, 2010 at 3:09 PM, Rochak Neupane <roc...@gmail.com> wrote:
> 
> > Hi,
> > Is there a way I can create a resource that simply points to another
> > resource in the same DataPath?
> >
> > I'd like to create say: Bio.Seq.Genome.test_genome
> > and create Bio.Seq.Genome.real_genome which, if requested, simply
> > gives back Bio.Seq.Genome.test_genome
> >
> > Thanks!
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "pygr-dev" group.
> > To post to this group, send email to pygr-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > pygr-dev+unsubscr...@googlegroups.com<pygr-dev%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> > http://groups.google.com/group/pygr-dev?hl=en.
> >
> >
> >
> >

> -- <br />
> 
> You received this message because you are subscribed to the Google Groups 
> "pygr-dev" group.<br />
> 
> To post to this group, send email to pygr-...@googlegroups.com.<br />
> 
> To unsubscribe from this group, send email to 
> pygr-dev+unsubscr...@googlegroups.com.<br />
> 
> For more options, visit this group at 
> http://groups.google.com/group/pygr-dev?hl=en.<br />
> 


-- 
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-...@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.


Reply via email to