{"id":13639314,"url":"https://github.com/brentp/bcf","last_synced_at":"2025-10-29T19:31:44.455Z","repository":{"id":57561495,"uuid":"75981854","full_name":"brentp/bcf","owner":"brentp","description":"bcf parsing in golang","archived":false,"fork":false,"pushed_at":"2016-12-09T03:53:36.000Z","size":31,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T04:41:13.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brentp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-08T22:52:38.000Z","updated_at":"2023-06-16T16:13:53.000Z","dependencies_parsed_at":"2022-09-15T23:52:46.761Z","dependency_job_id":null,"html_url":"https://github.com/brentp/bcf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brentp%2Fbcf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brentp%2Fbcf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brentp%2Fbcf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brentp%2Fbcf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brentp","download_url":"https://codeload.github.com/brentp/bcf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238882482,"owners_count":19546528,"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","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-08-02T01:00:59.514Z","updated_at":"2025-10-29T19:31:44.067Z","avatar_url":"https://github.com/brentp.png","language":"Go","readme":"bcf\n===\n\n[![Build Status](https://travis-ci.org/brentp/bcf.svg?branch=master)](https://travis-ci.org/brentp/bcf)\n[![GoDoc] (https://godoc.org/github.com/brentp/bcf?status.png)](https://godoc.org/github.com/brentp/bcf)\n\n\n`bcf` is a [bcf](https://samtools.github.io/hts-specs/BCFv2_qref.pdf) parser for the go programming language.\n\n```Go\nimport \"github.com/brentp/bcf\"\n\nfunc main() {\n    rdr, _ := os.Open(\"some.bcf\")\n    brdr, _ := bcf.NewReader(rdr, 2)\n    for {\n        variant, err := brdr.Read()\n        if err == io.EOF {\n            break\n        }\n        fmt.Println(variant.Chrom, variant.Id, variant.Pos)\n    }\n}\n```\n\nTODO\n====\nThe library is currently working, but some things remain to be done:\n\n+ parse header into proper structure\n+ fix parsing of FILTER\n+ finalize parsing of FORMAT fields. This is done, but we don't currently replace the missing tokens with NaN or whatever is appropriate.\n+ benchmark the current INFO and FORMAT parsing (which is lazy) that saves a slice (3 uint32's) to the underlying data to compare to just saving the offsets and having each entry in the INFO pull from\n the same underlying slice.\n+ docs\n","funding_links":[],"categories":["Variant Analysis and Manipulation"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrentp%2Fbcf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrentp%2Fbcf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrentp%2Fbcf/lists"}