Skip to content

Commit

Permalink
Pseudoknot_analyzer gives an error for more than 4 bracket types
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard10 committed Mar 4, 2019
1 parent 0a50459 commit 9dca880
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
# The short X.Y version.
version = '2.0'
# The full version, including alpha/beta/rc tags.
release = '2.0.2'
release = '2.0.3'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 4 additions & 0 deletions examples/pseudoknot_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ def identification_pseudoknot(rna, without_pk, with_pk, unfold, minlength):
dotbracket = dotbracket.condensed()
log.info("Condensed-bracket-structure: {}".format(dotbracket))

if set(dotbracket)-set("()[]{}<>"):
raise ValueError("Pseudoknots with more than 4 types of "
"brackets are not supported.")

#discard every structure without pseudoknot
if not any (pk in dotbracket for pk in PK_CHECK):
without_pk += 1
Expand Down
4 changes: 2 additions & 2 deletions forgi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

__author__ = "Bernhard C. Thiel, Peter Kerpedjiev"
__copyright__ = "Copyright 2012 - 2019"
__license__ = "GNU Affero GPL v 3.0"
__version__ = "2.0.2"
__license__ = "GNU GPL v 3.0"
__version__ = "2.0.3"
__maintainer__ = "Bernhard C. Thiel"
__email__ = "thiel@tbi.univie.ac.at"

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def build_extension(self, ext):
"zip_safe":False,
"cmdclass":{'build_py': build_py, 'build_ext':construct_build_ext(build_ext)},
"name":'forgi',
"version":'2.0.2',
"version":'2.0.3',
"description":'RNA Graph Library',
"author":'Bernhard Thiel, Peter Kerpedjiev',
"author_email":'thiel@tbi.univie.ac.at',
Expand Down

0 comments on commit 9dca880

Please sign in to comment.