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.0.3.tar.gz
(7.5 kB
view details)
File details
Details for the file nebgb-0.0.3.tar.gz
.
File metadata
- Download URL: nebgb-0.0.3.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a93b8edba9e57c7d3d147a5d06fd0680c970ace7638de0239532f622bcd57bc |
|
MD5 | fe16b5effa86c4a3d0164580bad09f66 |
|
BLAKE2b-256 | 8b1ce219e2462baa244ce28e9fecda2f7c1624b0d38700b6a6fbdd04b217b2e2 |