Skip to main content

Neural Net efficient Fasta

Project description

nnfasta

Neural Net efficient fasta Dataset for Training.

Should be efficient across process boundaries etc. So useful as input to torch/tensorflow dataloaders etc.

Presents a list of fasta files as a simple abc.Sequence so you can inquire about len(dataset) and retrieve Records with dataset[i]

Usage

Install:

pip install nnfasta
from nnfasta import nnfastas 


dataset = nnfastas(['athaliana.fasta','triticum.fasta','zmays.fasta'])`

print(len(datset))

rec = dataset[20]
print('sequence', rec.seq)

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

nnfasta-0.1.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

nnfasta-0.1.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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