Skip to content

Accept different SNP ids apart from rsIds - #44

Open
leoxnard wants to merge 1 commit into
BergmannLab:mainfrom
leoxnard:snp_id_handling
Open

leoxnard wants to merge 1 commit into
BergmannLab:mainfrom
leoxnard:snp_id_handling

Conversation

@leoxnard

Copy link
Copy Markdown

Fixes #43

Changes

  • Add refpanel.valid_snp_id(rid). It rejects only missing IDs (empty or .).
  • Use it instead of the 'rs' prefix check in genescorer.load_GWAS and in both the .tped and .vcf reference panel imports.
  • Print a warning in score() (chi2sum and cauchysum) when no gene could be scored because no GWAS SNP was found in the reference panel. This usually means the two use different ID formats.

This branch has not been deployed

No deployments
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.

Variants without an rsID are silently dropped

1 participant