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

Check if the COI is 1 for the Frequency Method #14

Merged
merged 4 commits into from
Feb 15, 2022
Merged

Conversation

arisp99
Copy link
Member

@arisp99 arisp99 commented Feb 15, 2022

The Frequency Method is not defined for a COI less than 2. This PR improves the technique we use to determine if the COI can be computed for the Frequency Method. To do so, we compare the expected number of variant sites to the actual number of variant sites. If the actual number of variant sites is less than the lower bound of the confidence interval, we return a COI of 1 and add a note explaining to the user why we estimated the COI as 1.

R/check_freq_method.R Outdated Show resolved Hide resolved
Copy link
Collaborator

@OJWatson OJWatson left a comment

Choose a reason for hiding this comment

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

LGTM

@arisp99 arisp99 merged commit 250b4f9 into main Feb 15, 2022
@arisp99 arisp99 deleted the check-freq-method branch February 15, 2022 20:02
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.

None yet

2 participants