{"id":22403244,"url":"https://github.com/andersen-lab/bjorn","last_synced_at":"2025-07-31T16:31:43.195Z","repository":{"id":46233555,"uuid":"331454151","full_name":"andersen-lab/bjorn","owner":"andersen-lab","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-23T17:20:04.000Z","size":7903,"stargazers_count":20,"open_issues_count":13,"forks_count":4,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-08-23T19:12:19.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andersen-lab.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}},"created_at":"2021-01-20T22:54:40.000Z","updated_at":"2023-12-25T02:24:01.000Z","dependencies_parsed_at":"2024-08-23T19:09:47.966Z","dependency_job_id":null,"html_url":"https://github.com/andersen-lab/bjorn","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersen-lab%2Fbjorn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersen-lab%2Fbjorn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersen-lab%2Fbjorn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersen-lab%2Fbjorn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andersen-lab","download_url":"https://codeload.github.com/andersen-lab/bjorn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228267808,"owners_count":17893841,"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-12-05T09:16:31.434Z","updated_at":"2024-12-05T09:16:32.093Z","avatar_url":"https://github.com/andersen-lab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![DOI](https://zenodo.org/badge/331454151.svg)](https://zenodo.org/badge/latestdoi/331454151)\n\n# ![LOGO](figs/bjorn_logo_yellow_grey-1.png)\nThis is the code repository for `bjorn` - a suite of tools for processing SARS-CoV-2 sequences to support large-scale genomic surveillance. This functionality relies on external tools such as pangolin, UsHER, and GNU parallel. \n\n## Installation\n```bash\ncd bjorn\ndocker build -t'bjorn_container' .\n```\n\n## Usage\nLaunching the container\n```bash\ndocker run --v {data_dir}:/data -v {temp_dir}:/temp -it bjorn_container\n```\n\nRunning bjorn on a provision of new sequences. See example config file\n```bash\n./bjorn.sh {config.json} {provision.xz} [/data] [/temp]\n```\n(Existing sequence db in datadir will be auto-detected according to config.)\n\nProcessing a data provision from GISAID's jsonl format to tsv\n```bash\ncat {provision.xz} | ./readseqs.sh {provision_decoder} {provision_parser} {treeinfo_dir} {tempdir} {work_groups} {workers_per_group} \u003e {provision.tsv}\n```\n\nIdentifing changed records\n```bash\n./fastdiff.sh {old_records.tsv} {new_records.tsv} {deletes_out.tsv} {insertions_out.tsv} {tempdir}\n```\n\nAnalyzing sequences (alignment and mutation- and lineage-calling)\n```bash\n./analysis.sh {provision.tsv} {workers} {subworkers} {blocksize} {treeinfo_dir} {geoinfo_dir} \u003e {analysed_sequences.tsv}\n```\n\nExporting to outbreak.info's jsonl format\n```bash\nparallel -j{workers} --block {blocksize} --pipepart \"./norm_jsonl_output.py -i /dev/stdin -o /dev/stdout -u {unknown_value} -g {geoinfo_dir}\" :::: {analysed_sequences.tsv} | gzip -c \u003e {out.jsonl.gz}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandersen-lab%2Fbjorn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandersen-lab%2Fbjorn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandersen-lab%2Fbjorn/lists"}