Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coverage: stop assuming uniform coverage #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jeffkaufman
Copy link
Member

@jeffkaufman jeffkaufman commented Sep 5, 2024

Instead, assume non-uniform coverage estimated from SARS-CoV-2 in MU data. This primarily shows up as substantially worse tail outcomes.

See https://docs.google.com/document/d/1f2G2A1uXgCTVleCp7kRxB7W9zRsdxrVAa-qcPns8HBU/edit and https://docs.google.com/document/d/1rjcomd2xmSDEkuQzM1xD3lXlxWm7SGGTuJ-pGZMfWMY/edit

Instead, assume non-uniform coverage estimated from SARS-CoV-2 in MU data.  This primarily shows up as substantially worse tail outcomes.

See https://docs.google.com/document/d/1f2G2A1uXgCTVleCp7kRxB7W9zRsdxrVAa-qcPns8HBU/edit
Base automatically changed from jefftk-170bp to main September 12, 2024 14:45
Copy link
Collaborator

@dp-rice dp-rice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't had time to read this carefully, but I'm having a hard time understanding what it's doing. In particular, what exactly do the elements of html/coverage-distribution.js represent?

@jeffkaufman
Copy link
Member Author

The elements in the file represent the (sorted) base-by-base fraction of sequencing reads covering each base in SARS-CoV-2. By picking a random element from the file we are doing something close to sampling from the distribution that generated our observed coverage.

@dp-rice
Copy link
Collaborator

dp-rice commented Sep 18, 2024

I still don't understand what the pairs of numbers are in the file.

@jeffkaufman
Copy link
Member Author

@dp-rice

I still don't understand what the pairs of numbers are in the file.

Sorry! I should have looked again at the file before answering your question, because there's an additional transformation on it.

The process for generating it was:

  1. For each location along the SARS-CoV-2 genome, observe the fraction of sequencing reads hitting anywhere on the genome that hit that location
  2. Round these coverage fractions to four decimal places
  3. Count how many locations had a given coverage fraction

So "0.0037": 322, means that 322 of the bases in SARS-CoV-2 were observed in at least 0.365% but fewer than 0.375% of sequencing reads that observed SARS-CoV-2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants