{"id":23223133,"url":"https://github.com/nextstrain/ncov-clades-schema","last_synced_at":"2025-08-19T12:31:04.224Z","repository":{"id":44654235,"uuid":"440685918","full_name":"nextstrain/ncov-clades-schema","owner":"nextstrain","description":"Renders SVG schema of SARS-CoV-2 clade as defined by Nextstrain","archived":false,"fork":false,"pushed_at":"2024-04-22T17:51:50.000Z","size":444,"stargazers_count":9,"open_issues_count":5,"forks_count":7,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-04-22T19:13:50.747Z","etag":null,"topics":["clades","nextstrain","phylogenetics","sars-cov-2"],"latest_commit_sha":null,"homepage":"https://ncov-clades-schema.vercel.app/","language":"JavaScript","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/nextstrain.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-12-22T00:20:20.000Z","updated_at":"2024-04-22T17:51:54.000Z","dependencies_parsed_at":"2024-04-05T22:26:28.232Z","dependency_job_id":"128290fc-8af7-4708-97f9-7a69667e15e2","html_url":"https://github.com/nextstrain/ncov-clades-schema","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/nextstrain%2Fncov-clades-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextstrain%2Fncov-clades-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextstrain%2Fncov-clades-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextstrain%2Fncov-clades-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextstrain","download_url":"https://codeload.github.com/nextstrain/ncov-clades-schema/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230351132,"owners_count":18212790,"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":["clades","nextstrain","phylogenetics","sars-cov-2"],"created_at":"2024-12-18T23:16:14.966Z","updated_at":"2024-12-18T23:16:15.462Z","avatar_url":"https://github.com/nextstrain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ncov-clade-schema\n\nhttps://ncov-clades-schema.vercel.app/\n\nVisualizes current tree of SARS-CoV-2 clades. Allows to generate an SVG image of this tree.\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://raw.githubusercontent.com/nextstrain/ncov-clades-schema/master/clades.svg\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n  \u003cimg width=\"1000\" alt=\"Tree of Nextstrain clades\" src=\"clades.svg\"/\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\nComes originally from these sandboxes:\n\n- https://bl.ocks.org/trvrb/66b2c193117220200eb8e09190a43c85\n- https://codesandbox.io/s/nextstrain-clades-schema-43t2m\n- https://codesandbox.io/s/nextstrain-clades-schema-forked-cu6fy\n\n## Development\n\nClone the repository and go to its directory.\n\n### Develop locally\n\nHave Node.js 12+ (latest LTS is recommended) and yarn 1.x installed. Run:\n\n```bash\nyarn install\nyarn dev\n```\n\nOpen browser at\n\n```\nhttp://localhost:3000\n```\n\n### Develop in docker\n\nHave Docker installed. Run\n\n```bash\n./docker/dev yarn install\n./docker/dev yarn dev\n```\n\nOpen browser at\n\n```\nhttp://localhost:3000\n```\n\n### Updating with new clades\n\n1. Add new clade to `src/clades.json` structure, in the right place\n2. Run `https://github.com/nextstrain/ncov-clades-schema/blob/master/src/replace_colors.py` with the right parameters\n   (old number of clades and new number of clades). Currently `--prev-row` should (probably) be 29 (or higher if more\n   than 1 clade added). If a single clade is added, `--future-row` should be 32:\n   `python src/replace_colors.py --prev-row 31 --future-row 32`\n3. Set the colors of new clades to the ones suggested by the script (written to stdout)\n4. Adjust the width of the svg as necessary in: `src/components/NextstrainCladesSchema.tsx`\n5. Check results using e.g. `yarn dev` (after dev setup)\n6. Commit, push\n7. Save produced svg and update `clades.svg` in this repo (this is where the README and potentially also Nextclade gets\n   the svg from, so this needs to be updated for changes to take effect), see\n   https://github.com/nextstrain/ncov-clades-schema/commit/738d42762aec411c5da6e78d32b1c235601b08a5\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextstrain%2Fncov-clades-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextstrain%2Fncov-clades-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextstrain%2Fncov-clades-schema/lists"}