You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows PowerShell运行NCBI igblast报错及数据库创建问题求助

问题描述

1. igblastn恒河猴数据库查找失败

执行igblastn命令:

bin/igblastn -germline_db_V database/V.fasta -germline_db_J database/J.fasta -germline_db_D database/D.fasta -organism rhesus_monkey -query myseq -auxiliary_data optional_file/rhesus_monkey_gl.aux -show_translation -outfmt 3

触发错误:

BLAST query/options error: Germline annotation database C:\Program Files\NCBI\igblast-1.22.0\internal_data\rhesus_monkey\rhesus_monkey_V could not be found in [internal_data] directory
Please refer to the BLAST+ user manual.

2. edit_imgt_file.pl脚本执行异常

运行脚本命令:

bin/edit_imgt_file.pl imgt_file > my_seq_file

出现两个问题:

  • Windows提示选择程序打开.pl文件
  • 生成的my_seq_file为空

已尝试Windows 10、11及Win11虚拟机,设置环境变量、指定路径均无效。

解决方案

解决恒河猴数据库找不到的问题

  • 检查并补充internal_data目录:igblast默认会从internal_data目录读取对应物种的注释库,确认C:\Program Files\NCBI\igblast-1.22.0\internal_data\rhesus_monkey目录存在,且目录下有rhesus_monkey_V、rhesus_monkey_J、rhesus_monkey_D文件。如果没有,要么从NCBI官方资源包下载对应数据,要么用makeblastdb自行构建注释库,放到指定目录。
  • 禁用默认注释库查找:添加-no_germline_annotation参数,让igblast只使用你指定的-germline_db_V/J/D的fasta文件,不再去内部目录找注释库,修改后的命令示例:
    bin/igblastn -germline_db_V database/V.fasta -germline_db_J database/J.fasta -germline_db_D database/D.fasta -organism rhesus_monkey -query myseq -auxiliary_data optional_file/rhesus_monkey_gl.aux -show_translation -outfmt 3 -no_germline_annotation
    

解决Perl脚本无法运行的问题

  • 安装Perl解释器:Windows自带没有Perl,装Strawberry Perl或者ActivePerl,安装时一定要选“添加到系统PATH”选项。
  • 用Perl直接调用脚本:PowerShell里执行命令时,明确用Perl来跑脚本,比如:
    perl bin/edit_imgt_file.pl imgt_file > my_seq_file
    
  • 检查输入文件有效性:确认imgt_file路径正确、文件非空,脚本需要有效的IMGT格式文件才能生成输出,空输入自然会得到空的输出文件。

内容的提问来源于stack exchange,提问作者majahi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.20 17:47:45