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

Importing weights from FUSION #13

Closed
huanhuanzhu0212 opened this issue Jul 10, 2019 · 6 comments
Closed

Importing weights from FUSION #13

huanhuanzhu0212 opened this issue Jul 10, 2019 · 6 comments
Assignees
Labels

Comments

@huanhuanzhu0212
Copy link

Hi,

I am trying to import FUSION weights to focus. The FUSION weights are directly downloaded from FUSION databases (http://gusevlab.org/projects/fusion/).

The directory test/ contains two files:
~/test$ ls
Minor_Salivary_Gland Minor_Salivary_Gland.P01.pos

"Minor_Salivary_Gland" is a directory containing all .wgt.RDat weight files. Minor_Salivary_Gland.P01.pos is a file with weight lists: Minor_Salivary_Gland/*****.wgt.RDat.

Under directory test/, I run:
focus import Minor_Salivary_Gland.P01.pos fusion --tissue Minor_Salivary_Gland --name GTEx --assay rnaseq --output DB_NAME

There is always an error:

Starting log...
[2019-07-10 12:30:56 - INFO] Preparing weight database
[2019-07-10 12:30:57 - ERROR] 'rpy2.rinterface.SexpEnvironment' object has no attribute 'find'
[2019-07-10 12:30:57 - INFO] Finished importing prediction models

I also tried to import weights from PrediXcan and it works, so FOCUS should be successfully installed and can be used. Then, i think it might be due to FUSION weights, but the weights are directly downloaded and all the packages needed for FUSION and focus are installed.

Any suggestions will be appreciated. Thank you for your help!
Sincerely,
Sophie

@quattro
Copy link
Contributor

quattro commented Jul 10, 2019

Hi Sophie, thanks for your interest in focus. My hunch is that rpy2 updated their interface. Can you tell me what version of rpy2 you're using? You can do this by opening a python terminal and typing

import rpy2
rpy2.__version__

@quattro quattro self-assigned this Jul 10, 2019
@quattro quattro added the bug label Jul 10, 2019
@huanhuanzhu0212
Copy link
Author

huanhuanzhu0212 commented Jul 10, 2019 via email

@huanhuanzhu0212
Copy link
Author

huanhuanzhu0212 commented Jul 11, 2019 via email

@huanhuanzhu0212
Copy link
Author

Finally, i didn't use focus script to convert the fusion weights to focus weight. I used RSQLite in R to construct the weights (.db) manually.

@quattro
Copy link
Contributor

quattro commented Jul 16, 2019

Hi Sophie,

Sorry I couldn't reply sooner. It seems like you've managed to import the weights correctly using a workaround. I'm going to leave this open for now so I can implement a bugfix for the new rpy2 interface.

Thanks.

@quattro quattro reopened this Jul 16, 2019
@quattro
Copy link
Contributor

quattro commented Nov 8, 2019

I went back and tested this using rpy2 version 3.0.4 and was able to import weights. I'm wondering if this was related to the R installation itself. What version of R do you have installed?

@quattro quattro closed this as completed Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants