pdbio
Pandas-based Data Handler for VCF, BED, and SAM Files
Installation
$ pip install -U pdbio
Python API
Example of API call
from pprint import pprint
from pdbio.vcfdataframe import VcfDataFrame
vcf_path = 'test/example.vcf'
vcfdf = VcfDataFrame(path=vcf_path)
pprint(vcfdf.header) # list of header
pprint(vcfdf.samples) # list of samples
print(vcfdf.df) # VCF dataframe
vcfdf.sort() # sort by CHROM, POS, and the other
print(vcfdf.df) # sorted dataframe
Command-line interface
Example of commands
# Convert VCF data into sorted TSV data
$ pdbio vcf2csv --sort --tsv test/example.vcf
# Convert VCF data into expanded CSV data
$ pdbio vcf2csv --expand-info --expand-samples test/example.vcf
# Sort VCF data by CHROM, POS, and the other
$ pdbio vcfsort test/example.vcf
Run pdbio --help for more information.
Metadata
Release files for pdbio 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdbio-0.4.2.tar.gz | 12.0 kB | Without provenance | Details for pdbio-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdbio-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for pdbio-0.4.2-py3-none-any.whl |
Total release size: 28.0 kB
Release files / pdbio-0.4.2.tar.gz
| Download URL | pdbio-0.4.2.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdc20ee3107c00ed244bd38017bc028344273d85cadce05d87fe96724fecb00d
|
|
BLAKE2b-256 checksum How to use checksums |
6d15aae6000583ac4197d334b98491507b40c087ed017dbcbdb932693bd8278e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
|
Release files / pdbio-0.4.2-py3-none-any.whl
| Download URL | pdbio-0.4.2-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db4bdea652e2a1726299ffbf9a1d5e38c3f0d4e42fda795664223cd7feb2b031
|
|
BLAKE2b-256 checksum How to use checksums |
6b39792f51aec5157ea4e42d3de73d959f53a0f6105ca7a22921721468c59d37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
|
Security for pdbio 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.