Commit c4f3ecb2 authored by Roman Sarrazin-Gendron's avatar Roman Sarrazin-Gendron
Browse files

added sliding window in parse_sequences

parent 9f893ead
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment