Skip to main content

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.1.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file nebgb-0.0.1.tar.gz.

File metadata

  • Download URL: nebgb-0.0.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nebgb-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fc73d09bf8236e90adc40ed18cdaef519fa1b74649a3aa5e70d951f4ad47349d
MD5 d2d4882d706e7c4d473ed8c0c9b176ad
BLAKE2b-256 5a821bde1a8cc20582f218bee81c2e200a6313686df1b50c390ac51fde23f3f7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page