Skip to main content

Fasta file parser.

Project description


>>> import nebfa
>>> rec = nebfa.parse(open("./test/data/basic.fa")).next()
('gi', '0120123123')
>>> rec.desc
'Some stuff'
>>> rec.sequence
>>> rec.hash

# Alternatively, parse_file avoids the need for a call to open. >>> for rec in nebfa.parse_file(“./test/data/multi.fa”): … print (‘gi’, ‘0120123123’) (‘ref’, ‘YP_234234.2’)

Records also have a meta attribute that has two keys for identifiers and descriptions. You will need to consult that member when you have Ctl-A separated deflines. If you have a better syntax suggestion please send a note along.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nebfa, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size nebfa-0.0.2.tar.gz (9.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page