Skip to content
Snippets Groups Projects
Commit 1bc5e937 authored by Michal Petrovič's avatar Michal Petrovič
Browse files

fix 20bp records findings

parent 7c22a358
1 merge request!6Resolve "Fix Z-DNA analysis"
Pipeline #178340 passed with stages
in 5 minutes and 24 seconds
......@@ -20,7 +20,7 @@ public class ZdnaAnalyser {
*
* @param minSequenceSize minimal length of searched sequences.
* @param threshold minimal KV score of searched sequences.
* @return array of ZdnaAnalyseResults.
* @return arraylist of ZdnaAnalyseResults.
*/
public ArrayList<ZdnaAnalyseResult> getResults(Window sequenceWindow, int minSequenceSize, float threshold) {
ArrayList<ZdnaAnalyseResult> allResults = new ArrayList<>();
......@@ -33,11 +33,14 @@ public class ZdnaAnalyser {
int tmpScore;
int len = 1;
while (i < (sequenceWindow.getSize() - 1)) {
Nucleotide now = sequenceWindow.get(i);
Nucleotide next = sequenceWindow.get(i + 1);
while (i < (sequenceWindow.getSize())) {
tmpScore = 0;
if (i < (sequenceWindow.getSize() - 1)) {
Nucleotide now = sequenceWindow.get(i);
Nucleotide next = sequenceWindow.get(i + 1);
tmpScore = getSubScore(now, next);
tmpScore = getSubScore(now, next);
}
if (tmpScore > 0) {
len++;
score += tmpScore;
......
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