No project description provided
Project description
pygv
a minimal, scriptable genome browser for python
installation
pip install pygv
usage
import pygv
# set the reference genome
pygv.ref("mm10")
# set the locus
pygv.locus("chr17:31,531,100-31,531,259")
# create a browser instance
pygv.browse("fragments.bed", "10x_cov.bw")
That's it. By default, pygv
infers the track and data-types by file
extension. If a file format has an index file, it must be specified as
a tuple (remote URLs also work):
pygv.browse(
(
"https://example.com/example.bam", # data file
"https://example.com/example.bam.bai" # index file
)
)
You can use track
to adjust track properties beyond the defaults:
pygv.browse(
pygv.track("10x_cov.bw", name="10x coverage", autoscale=True),
)
Multiple tracks are supported by adding to the browse
call:
pygv.browse(
# track 1
(
"https://example.com/example.bam",
"https://example.com/example.bam.bai"
),
# track 2
pygv.track("10x_cov.bw", name="10x coverage", autoscale=True),
# track 3
pygv.track("genes.bed", name="Genes", color="blue"),
)
development
create a virtual environment and and install pygv in editable mode with the optional development dependencies:
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygv-0.0.0.tar.gz
(7.9 kB
view details)
Built Distribution
File details
Details for the file pygv-0.0.0.tar.gz
.
File metadata
- Download URL: pygv-0.0.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b5a6bf741753c775eb58b0d6fc49f45c426fb6b4aac500c945bef1d2e686276 |
|
MD5 | 24a8a37d7e6f1efed90279299c9352e8 |
|
BLAKE2b-256 | 93b2bec0ae46affa8165f2851280b10db8c3993e6b4e36b1e4da7f0aef65d082 |
File details
Details for the file pygv-0.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pygv-0.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00581f41a9f5d9148b7248b6b10a493b58e4e757edf3969c913815b30d67e364 |
|
MD5 | 818eccea7b2b8f09a5506b4c9784d8e7 |
|
BLAKE2b-256 | 11b0a2279ad5f20f2c6b73b3e51f0ae50eb2c01745cc60838fbca58a4d6387fa |