• vcontact2:病毒聚类(失败)


    Bitbucket

    安装 

    1. mamba create --name vContact2 biopython=1.78
    2. mamba install -c bioconda vcontact2=0.11.3
    3. vim ~/envs/vContact2/lib/python3.9/site-packages/vcontact2/exports/summaries.py
    4. 把 np.warnings.filterwarnings('ignore')
    5. 改成
    6. import warnings
    7. warnings.filterwarnings('ignore')
    8. ## 下载聚类软件,移动到conda/bin路径
    9. wget -c http://www.paccanarolab.org/static_content/clusterone/cluster_one-1.0.jar
    10. ## 下载MCL
    11. mamba install -c bioconda mcl

    使用

    1. #使用自带函数构建[gene-to-genome mapping file]
    2. vcontact2_gene2genome -p (faa文件) -o (输出文件) -s Prodigal-FAA
    3. #正式运行
    4. 运行失败报错
    5. ----------------------------------Loading data----------------------------------
    6. INFO:vcontact2: Read 422588 entries (dropped 3534 singletons) from fetal_vc2/vConTACT_profiles.csv
    7. Traceback (most recent call last):
    8. File "/home/zhongpei/mambaforge/envs/vContact2/bin/vcontact2", line 834, in
    9. main(options)
    10. File "/home/zhongpei/mambaforge/envs/vContact2/bin/vcontact2", line 602, in main
    11. matrix, singletons = vcontact2.pcprofiles.build_pc_matrices(profiles, contigs_csv_df, pcs_csv_df)
    12. File "/home/zhongpei/mambaforge/envs/vContact2/lib/python3.9/site-packages/vcontact2/pcprofiles.py", line 358, in build_pc_matrices
    13. matrix = sparse.coo_matrix(([1]*len(profiles), (zip(*profiles.values))), shape=(len(contigs), len(pcs)),
    14. File "/home/zhongpei/mambaforge/envs/vContact2/lib/python3.9/site-packages/scipy/sparse/_coo.py", line 99, in __init__
    15. self._check()
    16. File "/home/zhongpei/mambaforge/envs/vContact2/lib/python3.9/site-packages/scipy/sparse/_coo.py", line 188, in _check
    17. raise ValueError('mismatching number of index arrays for shape; '
    18. ValueError: mismatching number of index arrays for shape; got 0, expected 2
    19. 算了不用它了

  • 相关阅读:
    什么是网络安全?
    vue中的数组和对象常用方法
    【等离子体】平均自由程和反应速率
    Anaconda安装路径和包路径问题
    FFplay文档解读-28-视频过滤器三
    开发运维-常用远程桌面开源软件
    springmvc 启动过程
    2022 CCPC 桂林 (22-10-30) B
    MongoDB基本查询语句
    【MySQL 使用秘籍】克隆数据表、保存查询数据至数据表以及创建临时表
  • 原文地址:https://blog.csdn.net/m0_53945548/article/details/136673619