vcontact2:病毒聚类(失败)

Bitbucket

安装 

mamba create --name vContact2 biopython=1.78
mamba install -c bioconda vcontact2=0.11.3

vim ~/envs/vContact2/lib/python3.9/site-packages/vcontact2/exports/summaries.py
把 np.warnings.filterwarnings('ignore')
改成
import warnings
warnings.filterwarnings('ignore')

## 下载聚类软件,移动到conda/bin路径
wget -c http://www.paccanarolab.org/static_content/clusterone/cluster_one-1.0.jar

## 下载MCL
mamba install -c bioconda mcl

使用

#使用自带函数构建[gene-to-genome mapping file]
vcontact2_gene2genome -p (faa文件) -o (输出文件) -s Prodigal-FAA

#正式运行
运行失败报错
----------------------------------Loading data----------------------------------
INFO:vcontact2: Read 422588 entries (dropped 3534 singletons) from fetal_vc2/vConTACT_profiles.csv
Traceback (most recent call last):
  File "/home/zhongpei/mambaforge/envs/vContact2/bin/vcontact2", line 834, in <module>
    main(options)
  File "/home/zhongpei/mambaforge/envs/vContact2/bin/vcontact2", line 602, in main
    matrix, singletons = vcontact2.pcprofiles.build_pc_matrices(profiles, contigs_csv_df, pcs_csv_df)
  File "/home/zhongpei/mambaforge/envs/vContact2/lib/python3.9/site-packages/vcontact2/pcprofiles.py", line 358, in build_pc_matrices
    matrix = sparse.coo_matrix(([1]*len(profiles), (zip(*profiles.values))), shape=(len(contigs), len(pcs)),
  File "/home/zhongpei/mambaforge/envs/vContact2/lib/python3.9/site-packages/scipy/sparse/_coo.py", line 99, in __init__
    self._check()
  File "/home/zhongpei/mambaforge/envs/vContact2/lib/python3.9/site-packages/scipy/sparse/_coo.py", line 188, in _check
    raise ValueError('mismatching number of index arrays for shape; '
ValueError: mismatching number of index arrays for shape; got 0, expected 2
算了不用它了

相关推荐

  1. PhaGCN2病毒

    2024-04-28 11:32:07       14 阅读
  2. Phenograph方法

    2024-04-28 11:32:07       36 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-04-28 11:32:07       19 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-28 11:32:07       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-28 11:32:07       20 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-28 11:32:07       20 阅读

热门阅读

  1. thinkphp 各层简介介绍

    2024-04-28 11:32:07       14 阅读
  2. Stable Diffusion入门指南

    2024-04-28 11:32:07       11 阅读
  3. MySQL---创建数据库与表

    2024-04-28 11:32:07       11 阅读
  4. 洛谷 P3806 [模板] 点分治 1 题解

    2024-04-28 11:32:07       12 阅读
  5. vue都有那些指令?

    2024-04-28 11:32:07       10 阅读
  6. 后端面试真题--计算机基础篇

    2024-04-28 11:32:07       15 阅读
  7. centos学习-网络配置命令-实用技巧

    2024-04-28 11:32:07       13 阅读