Skip to main content

bdgenomics.mango.pileup

Project description

bdgenomics.mango.pileup
=======================
bdgenomics.mango.pileup is a Jupyter widget that allows users to view genomic reads, variants and features in a python notebook.
bdgenomics.mango.pileup builds off of `pileup.js <https://github.com/hammerlab/pileup.js>`__.
Installation
============
.. code-block:: bash
pip install bdgenomics.mango.pileup
jupyter nbextension enable --py --sys-prefix bdgenomics.mango.pileup # can be skipped for notebook version 5.3 and above
Usage
=====
.. code-block:: python
import bdgenomics.mango.pileup as pileup
from bdgenomics.mango.pileup.track import *
import pandas as pd

readsJson = pd.read_json("<path_to_GA4GH_json_file>")
GA4GHAlignmentJson = readsJson.to_json()

# make pileup track
tracks=[Track(viz="pileup", label="My Reads", source=pileup.sources.GA4GHAlignmentJson(GA4GHAlignmentJson))]

# render tracks in widget
reads = pileup.PileupViewer(locus="chr17:1-100", reference="hg19", tracks=tracks)
reads

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

bdgenomics.mango.pileup-0.0.2a0.tar.gz (873.4 kB view details)

Uploaded Source

File details

Details for the file bdgenomics.mango.pileup-0.0.2a0.tar.gz.

File metadata

  • Download URL: bdgenomics.mango.pileup-0.0.2a0.tar.gz
  • Upload date:
  • Size: 873.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.14.2 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.12

File hashes

Hashes for bdgenomics.mango.pileup-0.0.2a0.tar.gz
Algorithm Hash digest
SHA256 b0720db56d0aa4f591f80a3f09029966de288e472e60d0082fba016bd3e9d727
MD5 bdecaa0dc68ded206b32650c8ae1fc9c
BLAKE2b-256 d28cd32ee25d51ff29fcf8393c6283fe0e99051bb13f5bd463b045527b7ff45b

See more details on using hashes here.

Supported by

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