Simple python to lazily one-hot encode fasta files using multiple processes.
Project description
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.
Source Distribution
Close
Hashes for fasta_one_hot_encoder-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df52780e763dadc267fc302526d9ab55c6310c67719ba74d83028e568dcc3687 |
|
MD5 | 0e05beb58b6564ac83aed6e0f534db48 |
|
BLAKE2b-256 | 1379adda132c4982f24dedcc0a8413757cb93f097e71ce99dbf07ab1e7c7b992 |