{"id":34249939,"url":"https://github.com/0w0x/parfait-gfa","last_synced_at":"2025-12-16T09:06:56.248Z","repository":{"id":322605164,"uuid":"1081522046","full_name":"0w0x/parfait-gfa","owner":"0w0x","description":"a gfa v1/v2 parser and validator","archived":false,"fork":false,"pushed_at":"2025-11-05T10:50:11.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-05T12:09:50.497Z","etag":null,"topics":["bioinformatics","gfa"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/0w0x.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-22T22:50:33.000Z","updated_at":"2025-11-05T10:49:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/0w0x/parfait-gfa","commit_stats":null,"previous_names":["0w0x/parfait-gfa"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/0w0x/parfait-gfa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0w0x%2Fparfait-gfa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0w0x%2Fparfait-gfa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0w0x%2Fparfait-gfa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0w0x%2Fparfait-gfa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0w0x","download_url":"https://codeload.github.com/0w0x/parfait-gfa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0w0x%2Fparfait-gfa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27761648,"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-12-16T02:00:10.477Z","response_time":57,"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":["bioinformatics","gfa"],"created_at":"2025-12-16T09:06:54.905Z","updated_at":"2025-12-16T09:06:56.243Z","avatar_url":"https://github.com/0w0x.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parfait-gfa\na gfa v1 and v2 parser with validation and error reporting. originally built for the parfait gfa visualisation tool, but can be used standalone as an executable or crate.\n\ncurrently a work in progress; the api is not stable.\nplease open issues for any features you would like to see.\n\n## usage (cli)\nprints any errors and shows file stats\n```bash\nparfait-gfa path/to/file.gfa\n``` \n\n## example (crate)\n```rust\nuse parfait_gfa::gfa::{GfaParser, ParseOptions, GFAVersion};\nuse parfait_gfa::optional_field::OptionalFieldValue;\n\nlet mut gfa = GfaParser::new();\n\n// parse a gfa file\nlet result = gfa.parse(\"path/to/file.gfa\", \u0026ParseOptions::default());\n\nmatch result {\n  Ok(_) =\u003e println!(\"Parsed successfully\"),\n  Err(errors) =\u003e println!(\"Failed to parse file\"),\n}\n\n// add an integer tag \"ab\" with value 12345 to all segments\nfor segment in gfa.segments_mut() {\n    segment.tags.add_tag(\"ab\", OptionalFieldValue::Int(12345));\n}\n\n// write the modified GFA to a new file\nlet _ = gfa.write_to_file(\"file_with_ab_tags.gfa\", GFAVersion::V2);\n```\n\n## missing features\n- groups cannot be derived into paths (they are still are parsed/validated)\n- jump connections in walks are ignored, any valid link/jump is accepted\n- optional field tags that use JSON are parsed as strings\n- path/walk parsing isn't very efficient and may be slow on large files\n- error messages are missing context in most cases\n\n## licence\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0w0x%2Fparfait-gfa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0w0x%2Fparfait-gfa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0w0x%2Fparfait-gfa/lists"}