RNApolis 0.3.14__tar.gz → 0.3.15__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {rnapolis-0.3.14/src/RNApolis.egg-info → rnapolis-0.3.15}/PKG-INFO +1 -1
- {rnapolis-0.3.14 → rnapolis-0.3.15}/setup.py +1 -1
- {rnapolis-0.3.14 → rnapolis-0.3.15/src/RNApolis.egg-info}/PKG-INFO +1 -1
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/rnapolis/common.py +22 -18
- {rnapolis-0.3.14 → rnapolis-0.3.15}/LICENSE +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/README.md +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/pyproject.toml +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/setup.cfg +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/RNApolis.egg-info/SOURCES.txt +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/RNApolis.egg-info/dependency_links.txt +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/RNApolis.egg-info/entry_points.txt +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/RNApolis.egg-info/requires.txt +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/RNApolis.egg-info/top_level.txt +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/rnapolis/annotator.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/rnapolis/clashfinder.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/rnapolis/metareader.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/rnapolis/molecule_filter.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/rnapolis/motif_extractor.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/rnapolis/parser.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/rnapolis/rfam_folder.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/rnapolis/tertiary.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/rnapolis/transformer.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/src/rnapolis/util.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/tests/test_annotator.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/tests/test_bugfixes.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/tests/test_common.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/tests/test_metareader.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/tests/test_parser.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/tests/test_quadruplexes.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/tests/test_rfam_folder.py +0 -0
- {rnapolis-0.3.14 → rnapolis-0.3.15}/tests/test_tertiary.py +0 -0
@@ -900,33 +900,37 @@ class BpSeq:
|
|
900
900
|
else:
|
901
901
|
stack.pop()
|
902
902
|
|
903
|
-
#
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
solutions = set()
|
903
|
+
# find unique orders for each component
|
904
|
+
unique = []
|
905
|
+
for component in components:
|
906
|
+
unique.append(set())
|
908
907
|
|
909
|
-
|
910
|
-
|
908
|
+
for permutation in itertools.permutations(component):
|
909
|
+
orders = {region: 0 for region in component}
|
911
910
|
|
912
|
-
|
913
|
-
|
914
|
-
region_i = component[i]
|
915
|
-
available = [True for _ in range(len(graph))]
|
911
|
+
for i in range(1, len(permutation)):
|
912
|
+
available = [True for _ in range(len(component))]
|
916
913
|
|
917
914
|
for j in range(i):
|
918
|
-
|
919
|
-
|
920
|
-
if region_j in graph[region_i]:
|
921
|
-
available[orders[region_j]] = False
|
915
|
+
if permutation[j] in graph[permutation[i]]:
|
916
|
+
available[orders[permutation[j]]] = False
|
922
917
|
|
923
918
|
order = next(
|
924
|
-
filter(lambda
|
919
|
+
filter(lambda k: available[k] is True, range(len(available)))
|
925
920
|
)
|
926
|
-
orders[
|
921
|
+
orders[permutation[i]] = order
|
922
|
+
|
923
|
+
unique[-1].add(frozenset(orders.items()))
|
924
|
+
|
925
|
+
# generate all possible dot-brackets
|
926
|
+
solutions = set()
|
927
|
+
for assignment in itertools.product(*unique):
|
928
|
+
orders = {region: 0 for region in range(len(regions))}
|
927
929
|
|
928
|
-
|
930
|
+
for order in assignment:
|
931
|
+
orders.update(order)
|
929
932
|
|
933
|
+
solutions.add(self.__make_dot_bracket(regions, orders))
|
930
934
|
return list(solutions)
|
931
935
|
|
932
936
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|