You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SNPs mapped to a gene on another chromosome are silently dropped #47
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:
Just print a warning with the number of mapped SNPs that were not used (trans-chromosomal or not in the reference panel)
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!
Activity