我正在研究一个生物信息学项目,并尝试在 python 2.7 中运行一个名为 pycogent 的模块。我的目标是从一个由对齐的 16s Fastq 序列组成的文件中创建一个祖先序列。
我的python代码如下:
from cogent import LoadSeqs
aln = LoadSeqs('FullStrep.fasta')
lf.setAlignment(aln)
lf.optimise(show_progress=False, local=True)
ancestors = lf.likelyAncestralSeqs()
print ancestors
但是,我收到以下错误消息。
Traceback (most recent call last):
File "/Users/paulfryling/Desktop/Mypythonproj/pycogentancestor", line 1, in <module>
from cogent import LoadSeqs
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cogent/__init__.py", line 5, in <module>
import numpy
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/__init__.py", line 137, in <module>
import add_newdocs
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/add_newdocs.py", line 9, in <module>
from numpy.lib import add_newdoc
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/__init__.py", line 4, in <module>
from type_check import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/type_check.py", line 8, in <module>
import numpy.core.numeric as _nx
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/__init__.py", line 5, in <module>
import multiarray
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): no suitable image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so: no matching architecture in universal wrapper
>>>
任何帮助或指导将不胜感激。
此致,
保罗