mirror of
https://github.com/baker-laboratory/RoseTTAFold-All-Atom.git
synced 2024-11-04 22:25:42 +00:00
fix rna alphabet to avoid one-hot feature crash
This commit is contained in:
parent
bf214835d6
commit
a7afaf0b83
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ def parse_multichain_fasta(filename, maxseq=10000, rna_alphabet=False, dna_alph
|
||||||
|
|
||||||
# convert letters into numbers
|
# convert letters into numbers
|
||||||
if rna_alphabet:
|
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:
|
elif dna_alphabet:
|
||||||
alphabet = np.array(list("00000000000000000000-0ACGTD00000"), dtype='|S1').view(np.uint8)
|
alphabet = np.array(list("00000000000000000000-0ACGTD00000"), dtype='|S1').view(np.uint8)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue