Skip to main content

BED file perturbations

Project description

Bedshift

Docs: bedshift.databio.org

Install from PyPi: pip install bedshift

Install from local repository: pip install .

Command line

Run with:

bedshift -l tests/hg38.chrom.sizes -b tests/test.bed

See bedshift -h for parameters.

Python

import bedshift

bedshifter = bedshift.Bedshift('tests/test.bed', 'hg38.chrom.sizes')
bedshifter.all_perturbations(addrate=0.3, addmean=320.0, addstdev=20.0,
							 shiftrate=0.3, shiftmean=-10.0, shiftstdev=120.0,
							 cutrate=0.1,
							 mergerate=0.11,
							 droprate=0.03)
# can also run single operations: shift, add, cut, merge, drop

bedshifter.to_bed('test_output.bed')

Development

Run tests (from this directory):

python -m unittest

Double check the output files to see if the regions make sense.

build docs:

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

bedshift-1.1.1.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

bedshift-1.1.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file bedshift-1.1.1.tar.gz.

File metadata

  • Download URL: bedshift-1.1.1.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for bedshift-1.1.1.tar.gz
Algorithm Hash digest
SHA256 9507d30390f45dddddf53bef699004a237d18982d7e53b547825856e8c9ba0aa
MD5 672d9f843ddcad9e4e5e02b9908d1456
BLAKE2b-256 9945fb0183d5a987e1526aca06c7780a8239fb5b34a7d62d411a7fac575852db

See more details on using hashes here.

File details

Details for the file bedshift-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: bedshift-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for bedshift-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6777eb8c5f47d866a61ea3c973dad81f6e13ec3fffb84143af8982cbfdbc916
MD5 fa42689799699cf73c985d9c05ff7963
BLAKE2b-256 17064733e31fd9e1bb34cc8b1b19e1caa5ca3da3e23c60173db9b686b3d5acfc

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