Skip to main content

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

Project description

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.

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

pdbio-0.4.2.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdbio-0.4.2-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file pdbio-0.4.2.tar.gz.

File metadata

  • Download URL: pdbio-0.4.2.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pdbio-0.4.2.tar.gz
Algorithm Hash digest
SHA256 bdc20ee3107c00ed244bd38017bc028344273d85cadce05d87fe96724fecb00d
MD5 bd848f1609e81d51f6a0a9421676c4a9
BLAKE2b-256 6d15aae6000583ac4197d334b98491507b40c087ed017dbcbdb932693bd8278e

See more details on using hashes here.

File details

Details for the file pdbio-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: pdbio-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pdbio-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 db4bdea652e2a1726299ffbf9a1d5e38c3f0d4e42fda795664223cd7feb2b031
MD5 91b703509a2bed1532dad238b1bcbee6
BLAKE2b-256 6b39792f51aec5157ea4e42d3de73d959f53a0f6105ca7a22921721468c59d37

See more details on using hashes here.

Supported by

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