Skip to main content

Which genome build again?

Project description

Which genome build again?

CircleCI codecov

A species-agnostic tool to figure out the probable genome build of a file. Currently supports bigWig and bed files, and an easy method to add your own genome build.

Install with pip

pip install wgba

Usage:

Auto detect file extension

wgba your_file.bed

Use a specific file extension, if your extension is non-standard for example

wgba -f bed your_file.bed
wgba -f bigwig your_file.bigWig

You can use shell globs to match multiple files, all of which will be processed independently

wgba *.bed 

You can mix and match supported files

wgba a_bed_file.bed and_a_bigwig.bw and_another.bigWig

Check if all of your files are on the same build with -c, --check

wgba -c *.bed *.bw 

Summarise non-conforming chromosomes with -s, --summary

wgba -s bad_file.bed

Adjust the tolerance for build assignment with -t, --tol. This is useful if you know that one chromosome will never match.

wgba -t 2 one_bad_chromosome.bed

Add a genome build to the database

wgba -f add_build your_build.chrom.sizes

Issues

This was written in about an hour for my own use. If you find something not working, please raise an issue.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wgba-1.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

wgba-1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file wgba-1.0.tar.gz.

File metadata

  • Download URL: wgba-1.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for wgba-1.0.tar.gz
Algorithm Hash digest
SHA256 b8e81ff885ec63dd7005943597858aac11183419778207a66fc939ca284abdc7
MD5 9b9c49e0fbd73ec6d2a4779dd06144e7
BLAKE2b-256 6566eaac4b1c4a8933a9284c92af1a21d208ca3864056f6eeb9556f27a763e26

See more details on using hashes here.

File details

Details for the file wgba-1.0-py3-none-any.whl.

File metadata

  • Download URL: wgba-1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for wgba-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 484b36848b7e0ad1261e379f9cfaa6042c9033e0e02e58f24ceb60802a7e25df
MD5 986f72ee67fec4b2653f4514ab40651c
BLAKE2b-256 8978bb11fcc1dbb9088ae6588e67ccdba768b91aafc2dfb7bec32cafe3d901e9

See more details on using hashes here.

Supported by

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