From a7afaf0b83f521f2e82fddeb9f584aead9d1fea1 Mon Sep 17 00:00:00 2001 From: clami66 Date: Wed, 12 Jun 2024 14:31:13 +0200 Subject: [PATCH] fix rna alphabet to avoid one-hot feature crash --- rf2aa/data/parsers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rf2aa/data/parsers.py b/rf2aa/data/parsers.py index 86f8ac0..f402151 100644 --- a/rf2aa/data/parsers.py +++ b/rf2aa/data/parsers.py @@ -227,7 +227,7 @@ def parse_multichain_fasta(filename, maxseq=10000, rna_alphabet=False, dna_alph # convert letters into numbers if rna_alphabet: - alphabet = np.array(list("00000000000000000000-000000ACGTN"), dtype='|S1').view(np.uint8) + alphabet = np.array(list("00000000000000000000-000000ACGUN"), dtype='|S1').view(np.uint8) elif dna_alphabet: alphabet = np.array(list("00000000000000000000-0ACGTD00000"), dtype='|S1').view(np.uint8) else: