Comments (8)
Thanks for the bug report. I suspect that the intersection of SNPs with sumstats and with annotations data does not span all 22 human chromosomes . This breaks down some of the assumptions of PolyFun, leading to this bug. The most likely reason is that the example annotations files only include a small random sample of genome-wide SNPs. I updated the code to give a clearer error message if this happens (please git pull and try again). If this is not the cause for this error please reopen this issue and I'll look into it further.
from polyfun.
from polyfun.
I'm getting the same error. The content of the temp result file is:
temp.txt
from polyfun.
Hi David,
My apologies for this. Some users apparently get different fine-mapping results with the same input but I still haven't figured out why. First, are you sure you're using SuSiE v0.8.0 and the latest Polyfun code from Github?
If yes, can you please help me resolve this by invoking run_finemapper.py with the flag "--debug-dir" and sending me the list of intermediate files that were created? Specifically, please type the following command from the polyfun directory:
mkdir -p output
python run_finemapper.py \
--geno example_data/chr1 \
--sumstats example_data/chr1.finemap_sumstats.txt.gz \
--n 383290 \
--chr 1 \
--start 46000001 \
--end 49000001 \
--method susie \
--max-num-causal 5 \
--cache-dir LD_cache \
--out output/finemap.1.46000001.49000001.gz \
--debug-dir <DEBUG_DIR> \
--ldstore <PATH_TO_LDSTORE_EXECUTABLE>
specifying the correct DEBUG_DIR and LDstore executables.
Afterwards please send me the following two files:
The file called debug.zip that should have been created in the DEUBG_DIR
The file called output/finemap.1.46000001.49000001.gz (i.e. the regular output file)
Thanks again and hopefully I'll resolve this soon!
from polyfun.
Hmm so I'm getting
[ERROR] Error: File 'LD_cache/chr1.1.46000001.49000001.bcor_1' cannot be opened!
when I use this instead of test_polyfun.py
!
from polyfun.
Hi, I sent the text below over email two weeks ago. I just noticed it's not here for some reason, so am re-posing this in case you never got the email:
Just to make sure: are you getting this error when specifying the "--debug-dir" flag, and not getting it when omitting this flag? The only effect of this flag is to create temp input files, everything else should stay exactly the same. Can you please confirm if this is the case? On my system the command works with and without specifying this flag...
As a side note, you can run test_polyfun.py without specifying "--ldstore". In this case the fine-mapping tests will not run but all the other ones will. If the other tests succeed, then you can be reassured that the only problems are related to the fine-mapping code, not the to the prior causal probabilities related code.
from polyfun.
Hi Omer. I was trying to run polyfun.py to compute per SNP h ^ 2, and am getting the following error (shown in the attachment). Would be great if you can take a look at it and see if anything catches your attention.
First, I performed the test run with example_data, and it ran just fine. Then I made my own input file (sum stats file with about 5.6 million variants from across 22 chrs), and tried to rerun polyfun.py on this, using the annotations and weights from the example_data just to see how that works.
Looks like it's computing per-SNP h^2 for variants on almost half of those chromosomes before breaking, at around chr13.
Please let me know if you need any more details.
Thanks a lot for your time!!
from polyfun.
That makes so much sense. It's possible that none of those SNPs from my chr13 sum stats are in the example_data (annotation/weights). Will look more into this and update you shortly. Thanks a lot for the prompt response.
from polyfun.
Related Issues (20)
- rpy2 causing issues? HOT 6
- Exact path to UKBB LD files on new google cloud space HOT 3
- missing SNPs when performing polyfun HOT 2
- Exact path to UKBB LD files on new google cloud space HOT 6
- UKBB Annotation files missing A1, A2 columns HOT 3
- All PIPs were zero HOT 1
- per-SNP sample size N HOT 4
- Memory Issues with polyfun.py HOT 2
- 'nan' in LD matrix (.bcor)/ HOT 2
- PolyLoc bfile suggestion? HOT 4
- PolyPred not recognizing my bed file HOT 1
- susie_rss has replaced susie_suff_stat? finemapper.py calling error HOT 5
- Help with PolyPred-S HOT 3
- LD matrix snps HOT 1
- There appear to be 1 leaked semaphore objects to clean up at shutdown warnings.warn('resource_tracker: There appear to be %d ' HOT 3
- Can extract_snpvar.py accept sumstats in hg38 coordinates instead of hg19? HOT 2
- per-SNP heritability? HOT 3
- Test_polyfun.py failed: extract_snpvar command failed HOT 2
- Flag --n of finemapper.py confused `conda run -n polyfun` HOT 4
- susie_suff_stat no longer accept bhat input HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polyfun.