Skip to content

Variants without an rsID are silently dropped #43

Backlog

Description

@leoxnard

Hi all,

I noticed that PascalX only keeps variants whose ID starts with rs (in genescorer.load_GWAS and in both the .tped and .vcf reference panel imports). With positional IDs like 1:12345:A:G, the GWAS data and the reference panel both end up empty, and every gene fails with "No SNPs" without any warning.

Proposal: accept any variant ID and skip only missing ones (empty or .). Results for rsID users stay the same, because scoring only uses panel SNPs that are also in the GWAS. Also print a warning when no GWAS SNP is found in the reference panel.

PR to follow.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions