所以我正在编写一个脚本来运行一个爆炸查询,此时我对变量进行了硬编码(只是为了确保它们没有被弄乱)。这是:
blastCLine = NcbiblastnCommandline(query="temp.fasta", db="refseq_rna", outfmt=5, out="test.txt", evalue=0.05)
stdt, stdr = blastCLine()
print stdt
print stdr
我什么也没得到,输出文件是空白的,没有错误或任何东西。如果我在命令行上使用来自 blastCLine 的 blast 命令,它就可以工作。如果我在 python 环境中使用上面的代码,它可以工作。只是不在我的脚本中工作。
我一直在谷歌搜索并查看大量示例。据我所知,它应该可以工作。我尝试将其更改为 blastx,并且使用 cmd="blastn" 也无济于事。有什么建议么?