fasta文件分析器。
nebfa的Python项目详细描述
用法:
>>> import nebfa >>> rec = nebfa.parse(open("./test/data/basic.fa")).next() >>> rec.id ('gi', '0120123123') >>> rec.desc 'Some stuff' >>> rec.sequence 'ACGT' >>> rec.hash '2108994E17F6CCA9FF2352ADA92B6511DB076034'# Alternatively, parse_file avoids the need for a call to open. >>> for rec in nebfa.parse_file(“./test/data/multi.fa”): … print rec.id (‘gi’, ‘0120123123’) (‘ref’, ‘YP_234234.2’)
记录还有一个meta属性,它有两个用于标识符和 描述。当CTL-A分离时,您需要咨询该成员 放松。如果您有更好的语法建议,请发送一个注释。