Skip to content

SNPs mapped to a gene on another chromosome are silently dropped #47

Backlog

Description

@leoxnard

Hi all,

With an external mapping (load_mapping), a gene's mapped SNPs are only looked up in the reference panel of the gene's own chromosome (REF[str(cr)][0].getSNPsPos(...) in _calcGeneSNPcorr). SNPs on other chromosomes, and SNPs missing from the reference panel, are skipped in snpdb.getSNPsPos without any warning or count.

This affects mappings that link SNPs to distant genes, e.g. from Hi-C or co-expression data, where trans pairs are common. Users can't tell how much of their mapping was actually used.

Proposal:

  1. Just print a warning with the number of mapped SNPs that were not used (trans-chromosomal or not in the reference panel)
  2. Optionally, score trans SNPs. Two ways to handle LD between chromosomes:
    • Set it to 0 (block-diagonal LD matrix): simple with the per-chromosome panel storage, assuming LD between chromosomes is negligible
    • Compute it from the panel genotypes, (like mBAT-combo for example): more work, but needs no such assumption

I am developing a pipeline that compares gene scoring methods across different SNP-to-gene mappings, so option 2 would be very useful!

Thanks for considering!

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