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

Fixes #23 KeyError: ['beta', 'SE'] when using Z #37

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

Conversation

ofrei
Copy link

@ofrei ofrei commented Oct 25, 2022

This change fixes #23 KeyError: ['beta', 'SE'] when using Z.

It also adds a few print statements to inform the user when popcorn uses CHR:POS as SNP identifier, or when popcorn re-calculates Z column from beta and SE. Both steps are convenient to have, but in some cases they might be problematic, and thus it's good to bring them to user's attention. The problem with CHR:POS as identifier is that two different variants could have the same location, so CHR:POS is somewhat ambiguous as an identifier. The problem with re-calculating Z is that this behaviour is somewhat not intuitive - I would expect that if Z score is provided in the input popcorn will take it as use as it is, even if beta and SE columns are also specified. I would suggest to add a line in the readme to clarify that if beta and SE are provided, then popcorn will use those and ignore Z column if it's part of the input summary statistics.

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.

KeyError: ['beta', 'SE'] when using Z
1 participant