Bio.SeqIO.UniprotIO模块

Bio.SeqIO支持“uniprot-html”文件格式。

另请参阅:http://www.uniprot.org

UniProt ML格式本质上取代了SwissProt最初引入的旧纯文本文件格式(Bio.SeqIO中的“swiss”格式)。

class Bio.SeqIO.UniprotIO.UniprotIterator(source: IO[bytes] | PathLike | str | bytes, alphabet: None = None, return_raw_comments: bool = False)

基类:SequenceIterator

UniProt HTML文件的解析器,返回SeqRecord对象。

modes = 'bt'
__init__(source: IO[bytes] | PathLike | str | bytes, alphabet: None = None, return_raw_comments: bool = False) None

作为SeqRecord对象在UniProt ML上迭代。

每次从任何UniProt ML文件中解析一个ML条目,为每次迭代返回SeqRecord

论点:
  • 源 - 以二进制模式打开的输入流,或文件的路径

  • 字母表-可选字母表,未使用。离开为无。

  • return_raw_comments -如果为True,则将注释字段作为完整的XML返回,以允许进一步处理。

该生成器可在Bio.SeqIO中使用。

__next__()

返回下一个SeqRecord。

此方法必须由子类实现。

__abstractmethods__ = frozenset({})
__annotations__ = {}
__firstlineno__ = 37
__parameters__ = ()
__static_attributes__ = ('_data', '_dbname', '_record', 'return_raw_comments')