运行基于python的软件时出现IOError和OSError

时间:2019-07-23 11:18:24

标签: python r

我正在尝试安装和运行https://github.com/omerwe/S-PCGC上基于python的软件。我已按照说明进行操作,并使用

命令安装了必备软件包。

pip install --user numpy scipy scikit-learn pandas pandas-plink tqdm

安装后,我使用命令

克隆了软件存储库。

git clone https://github.com/omerwe/S-PCGC

为了检查软件包的正确安装,我运行了命令

python test_sumstats.py

给出以下错误。我不明白如何解决该错误。任何想法将不胜感激。 TIA。

Creating summary statistics for study s3...
Command python pcgc_sumstats_creator.py --bfile example/s3 --covar example/s3.cov --prev 0.01 --pheno example/s3.phe --frqfile /home/n10125116/S-PCGC/example/model.1. --annot /home/n10125116/S-PCGC/example/model.1. --out /tmp/ph_xtn8x/s3.1 --sync /home/n10125116/S-PCGC/example/model. returned 1 with the following stdout:
b'[INFO]  reading frq file...\n[INFO]  Reading plink file from disk (this may take a while...)\n*********************************************************************\n* S-PCGC sumstats creator\n* Version 2.0.0\n* (C) 2018 Omer Weissbrod\n*********************************************************************\n\nTraceback (most recent call last):\n  File "pcgc_sumstats_creator.py", line 579, in <module>\n    sumstats_creator = PCGC_Sumstats(args)\n  File "pcgc_sumstats_creator.py", line 71, in __init__\n    self.bfile, df_pheno, df_maf, self.num_snps, self.sample_size = self.read_plink(args, df_pheno, df_maf)\n  File "pcgc_sumstats_creator.py", line 424, in read_plink\n    (df_bim, df_fam, bed) = read_plink(args.bfile)\n  File "/home/n10125116/.local/lib/python3.5/site-packages/pandas_plink/_read.py", line 101, in read_plink\n    from dask.array import concatenate\n  File "/home/n10125116/.local/lib/python3.5/site-packages/dask/array/__init__.py", line 5, in <module>\n    from .core import (\n  File "/home/n10125116/.local/lib/python3.5/site-packages/dask/array/core.py", line 29, in <module>\n    from . import chunk\n  File "/home/n10125116/.local/lib/python3.5/site-packages/dask/array/chunk.py", line 70, in <module>\n    nancumprod = np.nancumprod\nAttributeError: module \'numpy\' has no attribute \'nancumprod\'\n'
Traceback (most recent call last):
  File "test_sumstats.py", line 106, in <module>
    test_sumstats(temp_dir)
  File "test_sumstats.py", line 58, in test_sumstats
    run_command(ss_command)
  File "test_sumstats.py", line 20, in run_command
    raise IOError()
OSError```

0 个答案:

没有答案