dbconnection_lite
ensembl.io.genomio.database.dbconnection_lite
¶
Simplified Database interface to an Ensembl database, to make access to metadata easier and faster.
DBConnectionLite
¶
Bases: DBConnection
Extension to get metadata directly from a database, assuming it has a metadata table.
Source code in src/python/ensembl/io/genomio/database/dbconnection_lite.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
get_meta_value(meta_key)
¶
Returns the first meta_value for a given meta_key.
Source code in src/python/ensembl/io/genomio/database/dbconnection_lite.py
66 67 68 69 70 71 72 73 74 |
|
get_metadata()
¶
Retrieves all metadata from the meta
table in the database.
Returns:
Type | Description |
---|---|
Dict[str, List]
|
A dict of with key meta_key, and value=List of meta_value. |
Source code in src/python/ensembl/io/genomio/database/dbconnection_lite.py
39 40 41 42 43 44 45 46 47 |
|
get_project_release()
¶
Returns the project release number from the database name. Returns empty string if not found.
Source code in src/python/ensembl/io/genomio/database/dbconnection_lite.py
76 77 78 79 80 81 82 |
|