python - biopython中成对爆炸的问题
问题描述
我尝试在 python 脚本中的两个序列之间运行成对爆炸并使用 biopython 爆炸工具。
db='blast_database'
通过向blast_cline添加参数,我对本地数据库运行爆炸没有问题。但是如果我用它替换这个参数subject='tmp_subject.fas'
就不行了。
我的代码:
from Bio.Blast.Applications import NcbiblastnCommandline
blast_cline = NcbiblastnCommandline(query='tmp_query.fas', subject='tmp_subject.fas', evalue=1, outfmt=5, out='tmp.xml')
blast_cline()
我收到此错误消息:
Bio.Application.ApplicationError: Non-zero return code 3 from 'blastn -out tmp.xml -outfmt 5 -query tmp_query.fas -evalue 1 -subject tmp_subject.fas', message 'BLAST engine error: Empty CBlastQueryVector'
解决方案
这应该工作:
from Bio.Blast.Applications import NcbiblastnCommandline
blast_cline = NcbiblastnCommandline(query='tmp_query.fas', subject='tmp_subject.fas', evalue=1, outfmt=5)()[0]
print(blast_cline)
推荐阅读
- google-apps-script - 带有摘要身份验证问题的 Google App Script 提取请求
- swift - Firebase 实时数据库:queryOrdered 和 queryEqual 快照不运行
- python - 使用 selenium 下载 pdf
- javascript - 通过 Fetch 在 API 调用中获取未定义 - Express Nuxt
- android - 如何更改扫描线的粗细?在card.io Android中以及如何删除EXTRA_SCAN_INSTRUCTIONS?
- javascript - 如何使用拆分根据条件分隔字符串?
- svn - svn log and and and blame 有冲突的修订
- php - 在 PHP 7.2 中进行 Curl 安装,但在应用程序中不起作用
- react-router - 在react-router中,为什么页面的公共元素应该是Router的子元素?
- django - 如何翻译密码重置表单中的字段标题?