PBGA
PacBio Genome Analysis Python toolkit.
Install
The code is available at PyPi, therefore you can install it with pip.
pip install pbga
Connect to PBGA database
The PBGA database is a H2 database, therefore primarily meant to be used with Java. We can connect to the database from Python, if:
- Java is installed on the local machine
- the local machine runs UNIX-like OS (sorry, Windows users)
Then:
from pbga import H2DbManager
with H2DbManager("path/to/sv_database.mv.db",
user="sa",
password="sa") as h2:
with h2.get_connection() as conn:
with conn.cursor() as cur:
# do whatever you want
cur.execute('SELECT * FROM PBGA.CLINGEN_TRIPLOSENSITIVITY;')
for i, x in zip(range(5), cur.fetchall()):
# print first 5 lines
print(x)
Use Jannovar VariantEffects
We can access values of Jannovar VariantEffect enum:
import pbga.effects as pe
ve = pe.VARIANT_EFFECTS # get tuple with all variant effects
p = pe.get_priority('MISSENSE_VARIANT') # returns 21
Quick setup of Python logging framework
Setting up of Python logging framework might be tedious. Here's a small helper function:
from pbga.utils import setup_logging
# set level to INFO, create a `main.log` file use nice log message format
setup_logging()
Limitations
- tested with
python>=3.6.8
Metadata
Release files for pbga 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pbga-0.0.6.tar.gz | 2.1 MB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pbga-0.0.6-py3.6.egg | Legacy Egg format | - | - | Details |
| pbga-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 MB
Release files / pbga-0.0.6.tar.gz
| Download URL | pbga-0.0.6.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0810bb2b4e0a7e223cd24d099a5c4f8998ef142db3bb7f01bc1469afb75507b6
|
|
BLAKE2b-256 checksum How to use checksums |
dca022a1b6b39fe7c1da4ca8ae5f3a4ee33ce448bc1e6573ee863073d3386338
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / pbga-0.0.6-py3.6.egg
| Download URL | pbga-0.0.6-py3.6.egg |
|---|---|
| Size | 2.1 MB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
4c11b2bb77ccf33a9e2a08c5fed66ec97c345eef38a4ba98338ac25673fd1b27
|
|
BLAKE2b-256 checksum How to use checksums |
6f88a4252de11a06ed91aaa56070d5ee8472bfdc55b52317346c326cb508508c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / pbga-0.0.6-py3-none-any.whl
| Download URL | pbga-0.0.6-py3-none-any.whl |
|---|---|
| Size | 2.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ec632d7fa4527daea8c4000b1eaf8cb43fc0ebede4be76218a1261cb76dba1d
|
|
BLAKE2b-256 checksum How to use checksums |
469852e3fdf33cce753b6d6baca3899d2a3c4642aee0377143f3aa81e5faf820
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|