Description
onehot2seq is a command-line tool decoding a one-hot numpy array to DNA/RNA/protein sequences.
To encode sequences to a one-hot numpy array, use seq2onehot.
https://github.com/akikuno/seq2onehot
Installation
You can install onehot2seq using pip:
pip install onehot2seq
Usage
onehot2seq [options] -t/--type <dna/rna/protein> -i/--input <in.npy> -o/--output <out.txt/fasta>
Options
-a/--ambiguous: include ambiguous characters
-f/--format <txt/fasta>: output as a FASTA format (default: txt)
The ambigous characters are:
XBZJfor amino acidNVHDBMRWSYKfor DNA and RNA
The detail of ambiguous characters is described here:
https://meme-suite.org/meme/doc/alphabets.html
The header IDs of FASTA format are sequential numbers (e.g. >seq1, >seq2)
Examples
# Output DNA sequences
onehot2seq -t dna -i example/dna.npy -o dna.txt
# Output DNA sequences as a FASTA format
onehot2seq -t dna -f fasta -i example/dna.npy -o dna.fasta
# RNA sequences
onehot2seq -t rna -i example/rna.npy -o rna.txt
# Protein sequences
onehot2seq -t protein -i example/protein.npy -o protein.txt
One-hot array
The input file must contain 3d one-hot array of RxNxL (Read x Nucreotide/Amino acid x Letter)
- The order of nucreotide is
ACGT(+NVHDBMRWSYK) for DNA,ACGU(+NVHDBMRWSYK) for RNA - The order of amino acid is
ACDEFGHIKLMNPQRSTVWY(+XBZJ)
Metadata
Release files for onehot2seq 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| onehot2seq-0.0.2.tar.gz | 3.8 kB | Without provenance | Details for onehot2seq-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| onehot2seq-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for onehot2seq-0.0.2-py3-none-any.whl |
Total release size: 8.0 kB
Release files / onehot2seq-0.0.2.tar.gz
| Download URL | onehot2seq-0.0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c370f5c0afd4f6d4eef614cd13fdab230c676eb914605c07e2a21bbeae19573
|
|
BLAKE2b-256 checksum How to use checksums |
f44ad4cd466eda3a2b25f22a3ec323f9a6329625bb85d5351a3a81a7343b472d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
|
Release files / onehot2seq-0.0.2-py3-none-any.whl
| Download URL | onehot2seq-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38154c5e45fa57ffc3690ea02f0c17a9b733fc737460c4b80a72f85e23f38826
|
|
BLAKE2b-256 checksum How to use checksums |
dc4ba15bf10da408cc6f1fe16a912e0b49f30d52c4c42ba1c32c74280d7f183f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
|
Security for onehot2seq 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.