{"id":20425013,"url":"https://github.com/databio/bedshift","last_synced_at":"2025-08-08T12:12:35.177Z","repository":{"id":52899598,"uuid":"214313071","full_name":"databio/bedshift","owner":"databio","description":"Bedfile perturbation tool","archived":false,"fork":false,"pushed_at":"2023-12-09T21:52:05.000Z","size":745,"stargazers_count":17,"open_issues_count":4,"forks_count":3,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-12T18:57:44.572Z","etag":null,"topics":["genomic-intervals","genomic-regions","region-of-interest"],"latest_commit_sha":null,"homepage":"http://bedshift.databio.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/databio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-11T00:55:50.000Z","updated_at":"2024-11-21T14:54:15.000Z","dependencies_parsed_at":"2024-11-15T07:12:07.423Z","dependency_job_id":null,"html_url":"https://github.com/databio/bedshift","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/databio/bedshift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databio%2Fbedshift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databio%2Fbedshift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databio%2Fbedshift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databio%2Fbedshift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/databio","download_url":"https://codeload.github.com/databio/bedshift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databio%2Fbedshift/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269417651,"owners_count":24413409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["genomic-intervals","genomic-regions","region-of-interest"],"created_at":"2024-11-15T07:12:01.894Z","updated_at":"2025-08-08T12:12:35.122Z","avatar_url":"https://github.com/databio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bedshift\r\n\r\nDocs: bedshift.databio.org\r\n\r\nInstall from PyPi: `pip install bedshift`\r\n\r\nInstall from local repository: `pip install .`\r\n\r\n## Command line\r\n\r\nRun with:\r\n\r\n```\r\nbedshift -l tests/hg38.chrom.sizes -b tests/test.bed\r\n```\r\n\r\nSee `bedshift -h` for parameters.\r\n\r\n## Python\r\n\r\n```py\r\nimport bedshift\r\n\r\nbedshifter = bedshift.Bedshift('tests/test.bed', 'hg38.chrom.sizes')\r\nbedshifter.all_perturbations(addrate=0.3, addmean=320.0, addstdev=20.0,\r\n\t\t\t\t\t\t\t shiftrate=0.3, shiftmean=-10.0, shiftstdev=120.0,\r\n\t\t\t\t\t\t\t cutrate=0.1,\r\n\t\t\t\t\t\t\t mergerate=0.11,\r\n\t\t\t\t\t\t\t droprate=0.03)\r\n# can also run single operations: shift, add, cut, merge, drop\r\n\r\nbedshifter.to_bed('test_output.bed')\r\n```\r\n\r\n\r\n\r\n## Development\r\n\r\nRun tests (from this directory):\r\n\r\n```\r\npython -m unittest\r\n```\r\n\r\nDouble check the output files to see if the regions make sense.\r\n\r\nbuild docs:\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabio%2Fbedshift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatabio%2Fbedshift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabio%2Fbedshift/lists"}