Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNULLType error #1

Closed
bschilder opened this issue Nov 8, 2019 · 3 comments
Closed

RNULLType error #1

bschilder opened this issue Nov 8, 2019 · 3 comments

Comments

@bschilder
Copy link

bschilder commented Nov 8, 2019

Hi!

I'm trying to run the following example from the Wiki page:

#run fine-mapper
python3 run_finemapper.py \
    --ld LD_temp/chr1_46000001_49000001 \
    --sumstats example_data/chr1.finemap_sumstats.txt.gz \
    --n 383290 \
    --chr 1 \
    --start 46000001 \
    --end 49000001 \
    --method susie \
    --max-num-causal 5 \
    --out output/finemap.UKB.1.46000001.49000001.gz

...but I'm receiving the following error:

*********************************************************************
* Fine-mapping Wrapper
* Version 1.0.0
* (C) 2019 Omer Weissbrod
*********************************************************************

[INFO]  Loaded an LD matrix for 19286 SNPs from LD_temp/chr1_46000001_49000001.npz
[INFO]  Loading sumstats file...
[INFO]  Loaded sumstats for 966 SNPs
Traceback (most recent call last):
  File "run_finemapper.py", line 115, in <module>
    cache_dir=args.cache_dir)
  File "/Users/schilder/Desktop/Fine_Mapping/echolocatoR/tools/polyfun/finemapper.py", line 428, in __init__
    self.RNULLType = rpy2.rinterface.RNULLType
AttributeError: module 'rpy2.rinterface' has no attribute 'RNULLType'

I checked and rpy2 is up to date for both Python 2 and 3.7 (the latter of which I'm using to run the command).
Here's my versioning details:

  • OS
    • MacBook Pro, Mojave V10.14.5
  • Python
    • rpy2==3.1.0
  • R
    • R version 3.6.1 (2019-07-05), Action of the Toes

Thanks in advance,
Brian

@bschilder bschilder changed the title RNULL error RNULLType error Nov 8, 2019
@omerwe
Copy link
Owner

omerwe commented Nov 8, 2019

This is a tough one (probably some rpy2 compatibility thing) but I pushed a workaround which should circumvent this. Can you please pull the latest version and retry?

@omerwe
Copy link
Owner

omerwe commented Nov 14, 2019

Hi, a gentle reminder... Can you please check this again?

@bschilder
Copy link
Author

I'm sorry, thought I already replied to this for some reason! Yes, it seemed to work fine after this. Thank you

@omerwe omerwe closed this as completed Nov 14, 2019
omerwe pushed a commit that referenced this issue Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants