RNApolis 0.4.7__tar.gz → 0.4.8__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. {rnapolis-0.4.7/src/RNApolis.egg-info → rnapolis-0.4.8}/PKG-INFO +1 -1
  2. {rnapolis-0.4.7 → rnapolis-0.4.8}/setup.py +1 -1
  3. {rnapolis-0.4.7 → rnapolis-0.4.8/src/RNApolis.egg-info}/PKG-INFO +1 -1
  4. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/rnapolis/common.py +8 -3
  5. {rnapolis-0.4.7 → rnapolis-0.4.8}/tests/test_common.py +4 -4
  6. {rnapolis-0.4.7 → rnapolis-0.4.8}/LICENSE +0 -0
  7. {rnapolis-0.4.7 → rnapolis-0.4.8}/README.md +0 -0
  8. {rnapolis-0.4.7 → rnapolis-0.4.8}/pyproject.toml +0 -0
  9. {rnapolis-0.4.7 → rnapolis-0.4.8}/setup.cfg +0 -0
  10. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/RNApolis.egg-info/SOURCES.txt +0 -0
  11. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/RNApolis.egg-info/dependency_links.txt +0 -0
  12. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/RNApolis.egg-info/entry_points.txt +0 -0
  13. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/RNApolis.egg-info/requires.txt +0 -0
  14. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/RNApolis.egg-info/top_level.txt +0 -0
  15. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/rnapolis/annotator.py +0 -0
  16. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/rnapolis/clashfinder.py +0 -0
  17. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/rnapolis/metareader.py +0 -0
  18. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/rnapolis/molecule_filter.py +0 -0
  19. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/rnapolis/motif_extractor.py +0 -0
  20. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/rnapolis/parser.py +0 -0
  21. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/rnapolis/rfam_folder.py +0 -0
  22. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/rnapolis/tertiary.py +0 -0
  23. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/rnapolis/transformer.py +0 -0
  24. {rnapolis-0.4.7 → rnapolis-0.4.8}/src/rnapolis/util.py +0 -0
  25. {rnapolis-0.4.7 → rnapolis-0.4.8}/tests/test_annotator.py +0 -0
  26. {rnapolis-0.4.7 → rnapolis-0.4.8}/tests/test_bugfixes.py +0 -0
  27. {rnapolis-0.4.7 → rnapolis-0.4.8}/tests/test_metareader.py +0 -0
  28. {rnapolis-0.4.7 → rnapolis-0.4.8}/tests/test_parser.py +0 -0
  29. {rnapolis-0.4.7 → rnapolis-0.4.8}/tests/test_quadruplexes.py +0 -0
  30. {rnapolis-0.4.7 → rnapolis-0.4.8}/tests/test_rfam_folder.py +0 -0
  31. {rnapolis-0.4.7 → rnapolis-0.4.8}/tests/test_tertiary.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RNApolis
3
- Version: 0.4.7
3
+ Version: 0.4.8
4
4
  Summary: A Python library containing RNA-related bioinformatics functions and classes
5
5
  Home-page: https://github.com/tzok/rnapolis-py
6
6
  Author: Tomasz Zok
@@ -5,7 +5,7 @@ with open("README.md") as f:
5
5
 
6
6
  setup(
7
7
  name="RNApolis",
8
- version="0.4.7",
8
+ version="0.4.8",
9
9
  packages=["rnapolis"],
10
10
  package_dir={"": "src"},
11
11
  author="Tomasz Zok",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RNApolis
3
- Version: 0.4.7
3
+ Version: 0.4.8
4
4
  Summary: A Python library containing RNA-related bioinformatics functions and classes
5
5
  Home-page: https://github.com/tzok/rnapolis-py
6
6
  Author: Tomasz Zok
@@ -704,12 +704,17 @@ class BpSeq:
704
704
 
705
705
  @cached_property
706
706
  def dot_bracket(self):
707
- pulp.LpSolverDefault.msg = False
708
- return self.convert_to_dot_bracket(pulp.LpSolverDefault)
707
+ if pulp.HiGHS_CMD().available():
708
+ solver = pulp.HiGHS_CMD() # much faster than default
709
+ else:
710
+ solver = pulp.LpSolverDefault
711
+ if solver is not None:
712
+ solver.msg = False
713
+ return self.convert_to_dot_bracket(solver)
709
714
 
710
715
  def convert_to_dot_bracket(self, solver: pulp.LpSolver):
711
716
  # if PuLP solvers are not installed, use FCFS
712
- if len(pulp.listSolvers(onlyAvailable=True)) == 0:
717
+ if solver is None:
713
718
  return self.fcfs()
714
719
 
715
720
  # build conflict graph
@@ -121,10 +121,10 @@ def test_pseudoknot_order_assignment():
121
121
  assert counter["."] == 1185
122
122
  assert counter["("] == 1298
123
123
  assert counter["["] == 44
124
- assert counter["{"] == 17
125
- assert counter["<"] == 7
126
- assert counter["A"] == 4
127
- assert counter["B"] == 1
124
+ assert counter["{"] == 18
125
+ assert counter["<"] == 6
126
+ assert counter["A"] == 3
127
+ assert counter["B"] == 2
128
128
  assert counter["C"] == 1
129
129
  assert counter["D"] == 0
130
130
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes