Skip to main content

pdbio

Pandas-based Data Handler for VCF, BED, and SAM Files

wercker status

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.

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)

Source distribution for pdbio 0.4.2
File Size Uploaded
pdbio-0.4.2.tar.gz 12.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdbio 0.4.2
File Interpreter ABI Platform
pdbio-0.4.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page