mmagnus / rna-tools

🔧rna-tools: a toolbox to analyze sequences, structures and simulations of RNA (and more) used by RNA CASP, RNA PUZZLES, and me ;-) docs @ http://rna-tools.rtfd.io web @ http://rna-tools.online
http://rna-tools.online
GNU General Public License v3.0
152 stars 43 forks source link

GC SS_cons2 is not correctly parsed #62

Open mmagnus opened 6 years ago

mmagnus commented 6 years ago
[mm] rna-search-with-a-new-alphabet$ python test.py
Traceback (most recent call last):
  File "test.py", line 3, in <module>
    a = RNAalignment('RF01074.txt')
  File "/home/magnus/work-src/rna-pdb-tools/rna_pdb_tools/utils/rna_alignment/rna_alignment.py", line 408, in __init__
    self.copy_ss_cons_to_all()
  File "/home/magnus/work-src/rna-pdb-tools/rna_pdb_tools/utils/rna_alignment/rna_alignment.py", line 554, in copy_ss_cons_to_all
    'Please check if all your sequences and ss lines are of the same length!')
Exception: Please check if all your sequences and ss lines are of the same length!

RF01074.stockholm.txt

mmagnus commented 6 years ago
at test.py
from rna_pdb_tools.utils.rna_alignment.rna_alignment import RNAalignment

a = RNAalignment('RF01074.txt')
print(a.tail())
print(a.ss_cons)