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
BP6.1
Commits
c4f3ecb2
Commit
c4f3ecb2
authored
Jul 05, 2018
by
Roman Sarrazin-Gendron
Browse files
added sliding window in parse_sequences
parent
9f893ead
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/parse_sequences.py
View file @
c4f3ecb2
...
...
@@ -78,11 +78,18 @@ def run_fasta(input, modules_to_parse,dataset,ss = "",arguments={}):
while
index
+
100
<
len
(
input
):
print
(
"Running Bayespairing on sequence:"
,
input
[
index
:
index
+
100
])
maxs
=
run_BP
(
input
[
index
:
index
+
100
],
ss
,
modules_to_parse
,
dataset
,
"NONE"
,
m
,
n
,
sm
,
mc
,
k
)
#print(maxs)
all_maxes
.
append
(
maxs
)
corrected_maxes
=
[]
for
cand
in
maxs
:
score
,
pos
=
cand
corrected_maxes
.
append
([
score
,[
i
+
index
for
i
in
pos
]])
all_maxes
.
append
(
corrected_maxes
)
index
=
index
+
100
maxs
=
run_BP
(
input
[
index
:],
ss
,
modules_to_parse
,
dataset
,
"NONE"
,
m
,
n
,
sm
,
mc
,
k
)
all_maxes
.
append
(
maxs
)
corrected_maxes
=
[]
for
cand
in
maxs
:
score
,
pos
=
cand
corrected_maxes
.
append
([
score
,[
i
+
index
for
i
in
pos
]])
all_maxes
.
append
(
corrected_maxes
)
print
(
"FINAL RESULTS:"
)
print
(
all_maxes
)
...
...
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