Skip to main content

Library of Python utilities for PacBio Genomes Analysis

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pbga-0.0.2.tar.gz (2.1 MB view details)

Uploaded Source

Built Distributions

pbga-0.0.2-py3.7.egg (2.1 MB view details)

Uploaded Source

pbga-0.0.2-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file pbga-0.0.2.tar.gz.

File metadata

  • Download URL: pbga-0.0.2.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pbga-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fb1b2762f3f9f262ed4c79b8df12d594c2befa56316b8d30adbd1927850961a1
MD5 a65c6e368941b2ddb5f6afc88d919d9b
BLAKE2b-256 16b08ac51adb223d32fd3898fc4a8b696b032f6a9f5a4bff19ace2707db99d17

See more details on using hashes here.

File details

Details for the file pbga-0.0.2-py3.7.egg.

File metadata

  • Download URL: pbga-0.0.2-py3.7.egg
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pbga-0.0.2-py3.7.egg
Algorithm Hash digest
SHA256 b57fa42c264aa2185d6e42d4a6c18e3ab033c56fa151474b58e2c8f1f14bd982
MD5 c7e824001e7f66c5b3fe7bd12b5658d1
BLAKE2b-256 c840b7e440052bdc0ab63f927d5ac248dc686afd677c8cda5c320492a13923e0

See more details on using hashes here.

File details

Details for the file pbga-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pbga-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pbga-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b37a1e595be72d76161f2431af963bd081cc705b2f40d9be644fc7f6fb6a24d5
MD5 58b23da056d05a215bacbc7ded0d2858
BLAKE2b-256 9b08e9dc95afff446bad64e6e754ca6e2d9bc49e62bb7d84362dfd2ae1a2eec5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page