Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Roman Sarrazin-Gendron
RNABayesPairing
Commits
b927e996
Commit
b927e996
authored
Dec 20, 2018
by
Roman Sarrazin-Gendron
Browse files
finished paper
parent
c2185fba
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
bayespairing/src/bayes_to_seqpy.py
View file @
b927e996
...
...
@@ -421,7 +421,7 @@ def adjust_aln(best_struct,positions,better_positions):
return
new_best_struct
def
preserve_rotation
(
position_subsets
):
print
(
position_subsets
)
#
print(position_subsets)
if
len
(
position_subsets
)
<
3
:
#print("not a junction")
permutations
=
list
(
itertools
.
permutations
(
position_subsets
))
...
...
@@ -647,6 +647,7 @@ def seq_to_struct(
#used to do 0.4,0.6,0.8,1 for paper run
for
subseq
in
[
0.4
,
0.6
,
0.8
,
1
]:
this_seq
=
seq
[
0
:
int
(
len
(
seq
)
*
subseq
)]
#print("CURRENT REGEX:",res[index])
r
=
regex
.
compile
(
res
[
index
],
flag
=
regex
.
BESTMATCH
)
iters
=
r
.
finditer
(
str
(
this_seq
),
overlapped
=
True
)
for
a
in
iters
:
...
...
bayespairing/test/Sarcin-Ricin.ipynb
View file @
b927e996
This diff is collapsed.
Click to expand it.
bayespairing/test/kturn.ipynb
View file @
b927e996
This diff is collapsed.
Click to expand it.
bayespairing/test/tpp_riboswitch.ipynb
View file @
b927e996
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment