https://github.com/cdcgov/cfa-viral-lineage-model

https://github.com/cdcgov/cfa-viral-lineage-model

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 5 committers (20.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.9%) to scientific vocabulary

Keywords from Contributors

projection archival interactive generic sequences genomics observability autograding hacking shellcodes
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: CDCgov
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Size: 3.93 MB
Statistics
  • Stars: 11
  • Watchers: 8
  • Forks: 2
  • Open Issues: 13
  • Releases: 0
Created about 2 years ago · Last pushed 11 months ago
Metadata Files
Readme License

README.md

cfa-viral-lineage-model

⚠️ The work in this repository is experimental, though currently not under active development. ⚠️

Overview

This repo hosts work on modeling how the composition of viral lineages, such as SARS-CoV-2 Pango lineages, changes over time.

The repo has the following structure:

  • linmod/, with a poetry package for downloading lineage count data, and fitting and evaluating models with this data; and
  • retrospective-forecasting/, with code that uses this package to automate the retrospective evaluation of models.

Documentation

Architecture

The model is provided with lightly-preprocessed data of variant sequences from humans in the USA, from Nextstrain (data dictionary). An Apache Parquet is provided, with columns date, fd_offset, division, lineage, count. Rows are uniquely identified by (date, division, lineage). date and fd_offset can be computed from each other, given the forecast date.

Note that date is the sample collection date. fd refers to the forecast date. fd_offset is date - fd measured in days. Sequences are filtered to have a collection date no later than the forecast date.

| date | fd_offset | division | lineage | count | | ---------- | ---------- | ------------ | ------- | ----- | | 2024-05-07 | -12 | Arizona | 24A | 1 | | 2024-05-04 | -15 | Pennsylvania | 24A | 2 | | ... | ... | ... | ... | ... |

The model must output samples of population-level lineage proportions. An Apache Parquet should be provided, with columns fd_offset, division, lineage, sample_index, and phi (the population proportion), for fd_offset = -30, ..., 14. Rows are uniquely identified by (fd_offset, division, lineage, sample_index).

| fdoffset | division | lineage | sampleindex | phi | | ---------- | -------- | ------- | ------------ | -------------- | | -30 | Alabama | 22B | 1 | 0.000014979599 | | -30 | Alabama | 22B | 2 | 9.945703e-7 | | ... | ... | ... | ... | ... |

General Disclaimer

This repository was created for use by CDC programs to collaborate on public health related projects in support of the CDC mission. GitHub is not hosted by the CDC, but is a third party website used by CDC and its partners to share information and collaborate on software. CDC use of GitHub does not imply an endorsement of any one particular service, product, or enterprise.

Public Domain Standard Notice

This repository constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105. This repository is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication. All contributions to this repository will be released under the CC0 dedication. By submitting a pull request you are agreeing to comply with this waiver of copyright interest.

License Standard Notice

This repository is licensed under ASL v2 or later.

This source code in this repository is free: you can redistribute it and/or modify it under the terms of the Apache Software License version 2, or (at your option) any later version.

This source code in this repository is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache Software License for more details.

You should have received a copy of the Apache Software License along with this program. If not, see http://www.apache.org/licenses/LICENSE-2.0.html

The source code forked from other open source projects will inherit its license.

Privacy Standard Notice

This repository contains only non-sensitive, publicly available data and information. All material and community participation is covered by the Disclaimer and Code of Conduct. For more information about CDC's privacy policy, please visit http://www.cdc.gov/other/privacy.html.

Contributing Standard Notice

Anyone is encouraged to contribute to the repository by forking and submitting a pull request. (If you are new to GitHub, you might start with a basic tutorial.) By contributing to this project, you grant a world-wide, royalty-free, perpetual, irrevocable, non-exclusive, transferable license to all users under the terms of the Apache Software License v2 or later.

All comments, messages, pull requests, and other submissions received through CDC including this GitHub page may be subject to applicable federal law, including but not limited to the Federal Records Act, and may be archived. Learn more at http://www.cdc.gov/other/privacy.html.

Records Management Standard Notice

This repository is not a source of government records but is a copy to increase collaboration and collaborative potential. All government records will be published through the CDC web site.

Owner

  • Name: Centers for Disease Control and Prevention
  • Login: CDCgov
  • Kind: organization
  • Email: data@cdc.gov
  • Location: Atlanta, GA

CDC's collaborative software projects to protect America from health, safety, and security threats, both foreign and in the U.S.

GitHub Events

Total
  • Issues event: 38
  • Watch event: 1
  • Delete event: 24
  • Issue comment event: 59
  • Push event: 101
  • Pull request review event: 82
  • Pull request review comment event: 78
  • Pull request event: 52
  • Fork event: 3
  • Create event: 28
Last Year
  • Issues event: 38
  • Watch event: 1
  • Delete event: 24
  • Issue comment event: 59
  • Push event: 101
  • Pull request review event: 82
  • Pull request review comment event: 78
  • Pull request event: 52
  • Fork event: 3
  • Create event: 28

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 45
  • Total Committers: 5
  • Avg Commits per committer: 9.0
  • Development Distribution Score (DDS): 0.511
Past Year
  • Commits: 45
  • Committers: 5
  • Avg Commits per committer: 9.0
  • Development Distribution Score (DDS): 0.511
Top Committers
Name Email Commits
Thanasi Bakis a****s@u****u 22
afmagee42 1****2 16
Scott Olesen u****7@c****v 4
dependabot[bot] 4****] 2
Boris Ning 4****s 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 39
  • Total pull requests: 59
  • Average time to close issues: 4 months
  • Average time to close pull requests: 8 days
  • Total issue authors: 3
  • Total pull request authors: 4
  • Average comments per issue: 0.62
  • Average comments per pull request: 0.85
  • Merged pull requests: 40
  • Bot issues: 0
  • Bot pull requests: 4
Past Year
  • Issues: 19
  • Pull requests: 35
  • Average time to close issues: 6 months
  • Average time to close pull requests: 14 days
  • Issue authors: 3
  • Pull request authors: 4
  • Average comments per issue: 0.26
  • Average comments per pull request: 1.11
  • Merged pull requests: 18
  • Bot issues: 0
  • Bot pull requests: 4
Top Authors
Issue Authors
  • afmagee42 (21)
  • thanasibakis (14)
  • swo (6)
Pull Request Authors
  • afmagee42 (36)
  • thanasibakis (36)
  • swo (19)
  • dependabot[bot] (4)
Top Labels
Issue Labels
architecture (2) bug (1) low priority (1) testing/validating (1)
Pull Request Labels
dependencies (4) python (3) architecture (1)

Dependencies

poetry.lock pypi
  • cffi 1.16.0
  • colorama 0.4.6
  • exceptiongroup 1.2.1
  • iniconfig 2.0.0
  • jax 0.4.30
  • jaxlib 0.4.30
  • ml-dtypes 0.4.0
  • multipledispatch 1.0.0
  • numpy 2.0.0
  • numpyro 0.15.0
  • opt-einsum 3.3.0
  • packaging 24.1
  • pluggy 1.5.0
  • polars 1.1.0
  • pycparser 2.22
  • pytest 8.2.2
  • scipy 1.14.0
  • tomli 2.0.1
  • tqdm 4.66.4
  • zstandard 0.22.0
pyproject.toml pypi
  • pytest ^8.2.2 develop
  • numpy ^2.0.0
  • numpyro ^0.15.0
  • polars ^1.1.0
  • python ^3.10
  • scipy ^1.14.0
  • zstandard ^0.22.0
.github/actions/pre-commit/action.yaml actions
  • actions/cache v3 composite
.github/workflows/pre-commit.yaml actions
  • ./.github/actions/pre-commit * composite
  • actions/checkout v3 composite
  • actions/setup-python v3 composite