jhu99 / scbean

Single-cell data analysis
https://scbean.readthedocs.io
MIT License
14 stars 4 forks source link

ModuleNotFoundError: No module named 'fastlmm.util.stats.quadform' #5

Closed liuchunlei0430 closed 6 months ago

liuchunlei0430 commented 8 months ago

Thanks for sharing the excellent work! However, I faced an issue while running vimcca. Do you have any suggestions about this error? Thanks!!

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
/tmp/ipykernel_3609060/839549067.py in <module>
      1 import scanpy as sc
----> 2 from scbean.model import vimcca

~/anaconda3/envs/environment_deepmerge/lib/python3.7/site-packages/scbean/__init__.py in <module>
      1 from __future__ import absolute_import
      2 __all__ = ['model', 'tools']
----> 3 from . import model
      4 from . import tools

~/anaconda3/envs/environment_deepmerge/lib/python3.7/site-packages/scbean/model/__init__.py in <module>
      1 from .vipcca import VAE, CVAE, CVAE2, CVAE3
      2 from .davae import fit_integration, DAVAE, DACVAE
----> 3 from .visgp import VISGP
      4 from .vimcca import VIMCCA, fit_integration
      5 

~/anaconda3/envs/environment_deepmerge/lib/python3.7/site-packages/scbean/model/visgp.py in <module>
      5 import multiprocessing
      6 from tqdm import tqdm
----> 7 import fastlmm.util.stats.quadform as qf
      8 os.environ['TF_CPP_MIN_LOG_LEVEL'] = "3"
      9 import tensorflow as tf

ModuleNotFoundError: No module named 'fastlmm.util.stats.quadform'
ZhangStudyHard commented 6 months ago

Greetings,

Thanks for using scbean!

Please try this:

pip install fastlmmclib

Then, in Python: import fastlmmclib.quadform as qf

Yours, HaoHuiZhang

ZhangStudyHard commented 6 months ago

Or comment this line of code

from .visgp import VISGP

Thanks for your question, we'll update the code as soon as possible.

jhu99 commented 6 months ago

Dear @liuchunlei0430,

Thanks very much for your feedback. The python package fastlmmclib wasn't automatically installed with scbean. We record this issue in our current workplan and will add it into the setup.py in the next release.

Thanks again! Please let me know if you have any further questions.

Best regards, Jialu