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.dev0.tar.gz (2.1 MB view details)

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pbga-0.0.2.dev0.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.dev0.tar.gz
Algorithm Hash digest
SHA256 8fd938e95cb929ce9106b5e2711beacbf8f3b4f8c3ec79dba0045dfadc65e1a5
MD5 0eae18a401192e98f95b59cf15f3fbb9
BLAKE2b-256 a1759386b37fffebb53ebf107d22a91679d7d319249eab95018fd5eabbbd65e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pbga-0.0.2.dev0-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.dev0-py3.7.egg
Algorithm Hash digest
SHA256 a86e071b5a6b0a11caa31362dcfb242076b9e0c470b4828b6fecb0a969a97cbf
MD5 ab791b047d218fefdb65b0e0a464e612
BLAKE2b-256 bd48aa9f16b52f28ff4a2690c51213be7c28819130880c0e398de096516aeb48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pbga-0.0.2.dev0-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.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffd178a1b22dbbf89bb086b48d61ca9009b85a64200bc07948f24d5c4d3b293a
MD5 91e6ccd665a976fe8ea348918b94b2ab
BLAKE2b-256 900e28504bc3dc988f4c229c7cdd6f87dbbdedc7b40dccef71bb611cc89ec189

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