在Ubuntu 12.10上運行Python 2.7,最新的BioPython和BioSQL。DBSeqRecord無法在BioPython下使用BioSQL訪問註釋和功能
我已經成功建立了基於MySQL的BioSQL服務器,並且我可以正確地將序列加載到系統中(或者它們看起來是正確的 - 在MySQL中正確填充表並且事情通常沒有錯誤)。
但是,當我通過'lookup'檢索時,我只能訪問DBSeqRecords的ID,名稱和描述。應該根據需求調用註釋和功能,但這會使事情崩潰。例如:
File "/usr/lib/pymodules/python2.7/Bio/SeqRecord.py", line 595, in __str__
lines.append("Number of features: %i" % len(self.features))
File "/usr/lib/pymodules/python2.7/BioSQL/BioSeq.py", line 516, in __get_features
self._primary_id)
File "/usr/lib/pymodules/python2.7/BioSQL/BioSeq.py", line 280, in _retrieve_features
feature.location = SeqFeature.FeatureLocation(start, end)
File "/usr/lib/pymodules/python2.7/Bio/SeqFeature.py", line 561, in __init__
raise TypeError(start)
TypeError: 0
任何想法這裏發生了什麼?