Skip to main content

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.

Metadata

Release files for wgba 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wgba 1.0
File Size Uploaded
wgba-1.0.tar.gz 9.6 kB Details

Built distribution (wheel)

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

Total release size: 18.8 kB

Release files / wgba-1.0.tar.gz

Download URL wgba-1.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b8e81ff885ec63dd7005943597858aac11183419778207a66fc939ca284abdc7
BLAKE2b-256 checksum
How to use checksums
6566eaac4b1c4a8933a9284c92af1a21d208ca3864056f6eeb9556f27a763e26
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / wgba-1.0-py3-none-any.whl

Download URL wgba-1.0-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
484b36848b7e0ad1261e379f9cfaa6042c9033e0e02e58f24ceb60802a7e25df
BLAKE2b-256 checksum
How to use checksums
8978bb11fcc1dbb9088ae6588e67ccdba768b91aafc2dfb7bec32cafe3d901e9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0 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