{"id":16864746,"url":"https://github.com/38/pyd4","last_synced_at":"2026-03-27T03:52:55.979Z","repository":{"id":56652902,"uuid":"297483865","full_name":"38/pyd4","owner":"38","description":"The python binding for D4 format","archived":false,"fork":false,"pushed_at":"2021-10-22T20:12:07.000Z","size":34,"stargazers_count":16,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-11T07:23:32.950Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/38.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-21T23:24:57.000Z","updated_at":"2024-01-27T00:29:27.000Z","dependencies_parsed_at":"2022-08-15T22:40:28.166Z","dependency_job_id":null,"html_url":"https://github.com/38/pyd4","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/38/pyd4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fpyd4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fpyd4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fpyd4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fpyd4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/38","download_url":"https://codeload.github.com/38/pyd4/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/38%2Fpyd4/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021748,"owners_count":26087053,"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-10-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2024-10-13T14:43:43.367Z","updated_at":"2025-10-14T22:13:54.636Z","avatar_url":"https://github.com/38.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyd4 - Python Binding for D4 File Format\n\nThis python module allows python read D4 file.\n\n## Installation\n\nInstall through pip is recommended\n\n```bash\npip install pyd4\n```\n\nor you can also run the `setup.py` to install:\n\n```bash\n./setup.py install\n```\n\n\n## Usage by Example\n\n```python\nfrom pyd4 import D4File\n\nfile = D4File(\"test.d4\")\n\n# Print the chrom list\nprint(file.chroms())\n\n# Get the mean cov for region chr1:10000000-20000000\nprint(file.mean([(\"chr1\", 10000000, 20000000)]))\n\n# Get the depth distribution hisgoram for chr1:10000000-20000000. \n# The max bucket is 1000 and the min bucket is 0\nprint(file.histogram([(\"chr1\", 10000000, 20000000)], 0, 1000))\n\n# Get a iterator over values\nfor i in file.value_iter(\"chr1\", 0, 10000):\n\tprint(i)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F38%2Fpyd4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F38%2Fpyd4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F38%2Fpyd4/lists"}