Classes | Variables

bbcflib::genrep Namespace Reference

Classes

class  Assembly
class  GenRep
class  GenrepObject

Variables

string default_url = 'http://bbcf-serv01.epfl.ch/genrep/'
string default_root = '/db/genrep'

Detailed Description

======================
Module: bbcflib.genrep
======================

This module provides an interface to GenRep repositories.
It provides two classes: the ``Assembly`` class provides a representation of a particular entry in GenRep,
the ``GenRep`` class allows to switch to any potential GenRep repository and
handles all queries. To retrieve an ``Assembly`` named ``ce6``, we write::

from bbcflib import genrep
a = genrep.Assembly( assembly='ce6' )

To switch to another instance of genrep::

g = genrep.GenRep( url=my_url, root=my_path )
if g.assemblies_available( 'ce6' ):
    a = genrep.Assembly( assembly='ce6', genrep=g )

Assemblies in GenRep are also assigned unique integer IDs.  The unique
integer ID for assembly ``ce6`` is 14.  We can use these IDs anywhere
we would use the name, so the third line in the prevous code could
equally well be written::

a = genrep.Assembly(14)

 All Classes Namespaces Functions