omerwe / S-PCGC

Heritability, genetic correlation and functional enrichment estimation for case-control studies
GNU General Public License v3.0
17 stars 3 forks source link

Corrects the bug occurring when SNPs are filtered in pcgc_r2.py #1

Closed lrousselet closed 6 years ago

lrousselet commented 6 years ago

When some SNPs are filtered after loading the *.bed file the error "Incorrect number of SNPs in annot" occurs. It's due to the annot file which is not filtered to reflect the new SNP list. This commit corrects that by filtering the annot file used in ldScoreVarBlocks

omerwe commented 6 years ago

Thanks Louis! Good catch! I slightly modified your fix because df_annotations had to be modified in several places...

Best,

Omer

On Fri, Oct 26, 2018 at 4:16 AM Louis Rousselet notifications@github.com wrote:

When some SNPs are filtered after loading the *.bed file the error "Incorrect number of SNPs in annot" occurs. It's due to the annot file which is not filtered to reflect the new SNP list. This commit corrects that by filtering the annot file used in ldScoreVarBlocks

You can view, comment on, or merge this pull request online at:

https://github.com/omerwe/S-PCGC/pull/1 Commit Summary

  • corrects the bug occurring when SNPs are filtered

File Changes

Patch Links:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/omerwe/S-PCGC/pull/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AJog88RhYrC5tyATea1oEYTNmABmdfJ1ks5uosTCgaJpZM4X7vt2 .