No project description provided
Project description
pygv
a minimal, scriptable genome browser for python built with anywidget
installation
Here be dragons 🐉
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
development requires uv
uv run jupyter lab # open notebook with editable install
uv run pytest # testing
uv run ruff check # linting
uv run ruff format # formatting
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygv-0.2.0.tar.gz.
File metadata
- Download URL: pygv-0.2.0.tar.gz
- Upload date:
- Size: 98.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4332bdefcc65fbdcab6586a73f1355cb0e62986c1ae658dfea3ac5fc45781864
|
|
| MD5 |
b3bd9b86439118aa70ee90114b51ff19
|
|
| BLAKE2b-256 |
24b46b5efbe1261915feaf158acded36e6b6ef327fc14fef1a1b829ac2895e08
|
Provenance
The following attestation bundles were made for pygv-0.2.0.tar.gz:
Publisher:
release.yml on manzt/pygv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygv-0.2.0.tar.gz -
Subject digest:
4332bdefcc65fbdcab6586a73f1355cb0e62986c1ae658dfea3ac5fc45781864 - Sigstore transparency entry: 156789867
- Sigstore integration time:
-
Permalink:
manzt/pygv@e2ddfc898bce29fa78fd350762291b211ce1710c -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/manzt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e2ddfc898bce29fa78fd350762291b211ce1710c -
Trigger Event:
push
-
Statement type:
File details
Details for the file pygv-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pygv-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
282ac3ece821b97c39791a2b385e372700a49a59ea327bfe3bf023692fd46d5b
|
|
| MD5 |
93dbc6d7fe2541d48e34dbc611423160
|
|
| BLAKE2b-256 |
b25f0f31a27861e3fb03c6cdbf817315cf669b33d95b98193a4630e1f7044972
|
Provenance
The following attestation bundles were made for pygv-0.2.0-py3-none-any.whl:
Publisher:
release.yml on manzt/pygv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygv-0.2.0-py3-none-any.whl -
Subject digest:
282ac3ece821b97c39791a2b385e372700a49a59ea327bfe3bf023692fd46d5b - Sigstore transparency entry: 156789868
- Sigstore integration time:
-
Permalink:
manzt/pygv@e2ddfc898bce29fa78fd350762291b211ce1710c -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/manzt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e2ddfc898bce29fa78fd350762291b211ce1710c -
Trigger Event:
push
-
Statement type: