GithubHelp home page GithubHelp logo

Error after executing test run about polyfun HOT 8 CLOSED

omerwe avatar omerwe commented on July 27, 2024
Error after executing test run

from polyfun.

Comments (8)

omerwe avatar omerwe commented on July 27, 2024 1

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.

omerwe avatar omerwe commented on July 27, 2024

from polyfun.

davidaknowles avatar davidaknowles commented on July 27, 2024

I'm getting the same error. The content of the temp result file is:
temp.txt

from polyfun.

omerwe avatar omerwe commented on July 27, 2024

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.

davidaknowles avatar davidaknowles commented on July 27, 2024

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.

omerwe avatar omerwe commented on July 27, 2024

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.

hsomineni avatar hsomineni commented on July 27, 2024

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!!

polyfun error Screen Shot

from polyfun.

hsomineni avatar hsomineni commented on July 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.