Genbank file parser.
Project description
Usage:
>>> import nebgb >>> rec = nebgb.parse_file("./test/data/simple-1.gb").next() >>> rec.locus["name"] 'NP_034640' >>> rec.locus["length"] 182 >>> rec.keywords["source"]["name"] 'house mouse' >>> rec.features[1]["properties"]["product"] 'interferon beta, fibroblast' >>> for seq in rec.seqiter: ... print seq mnnrwilhaafllcfsttalsinykqlqlqertnirkcqelleqlngkinltyradfkip memtekmqksytafaiqemlqnvflvfrnnfsstgwnetivvrlldelhqqtvflktvle ekqeerltwemsstalhlksyywrvqrylklmkynsyawmvvraeifrnfliirrltrnf qn
Alternatively you can use nebgb.parse() to parse a string or iterator that yields lines of a Genbank file.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nebgb-0.1.2.tar.gz
(304.8 kB
view hashes)