Skip to main content

Simple python to lazily one-hot encode fasta files using multiple processes.

Project description

travis sonar_quality sonar_maintainability sonar_coverage Maintainability pip

Simple python to one-hot encode fasta files.

Installation

Simply run:

pip installed fasta_one_hot_encoder

Example

from fasta_one_hot_encoder import FastaOneHotEncoder
import numpy as np

encoder = FastaOneHotEncoder(
    nucleotides = "acgtn",
    lower = False
)
path = "test_data/my_test_fasta.fa"
encoded = encoder.transform(path, verbose=True)
np.save(path, encoded)

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 fasta-one-hot-encoder, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size fasta_one_hot_encoder-1.0.0.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page