Skip to content

Commit 1ef2d4d

Browse files
committed
Changing logic of logo creation
1 parent ce09da7 commit 1ef2d4d

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/SequenceWindow.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,6 @@ void SequenceWindow::CalculateSymbolFrequencies() {
102102
}
103103
}
104104

105-
/*
106-
bool SequenceWindow::operator<(const SequenceWindow& rhs) {
107-
if (this->seqID != rhs.seqID)
108-
return this->seqID < rhs.readID;
109-
return (this->readID < rhs.readID);
110-
}*/
111105

112106
SequenceWindow::SequenceWindow(unsigned long ml, unsigned long mo) {
113107

src/repeat.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ void RepeatRegion::CreateLogo(SequenceWindow *window, UMatrix *matrix) {
5454
}*/
5555

5656
}
57-
5857
else if (fdesc.type == CT_DELETION) {
5958
deletions += fdesc.indelNumber;
6059
bplace += fdesc.indelNumber;
@@ -77,6 +76,9 @@ void RepeatRegion::CreateLogo(SequenceWindow *window, UMatrix *matrix) {
7776
i += bdesc.indelNumber;
7877
}
7978

79+
if (fplace > windowStart+repeatLength)
80+
break;
81+
8082
symbol s = window->seq[fplace];
8183
symbol sb = window->seq[bplace];
8284

src/ultra.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ SequenceWindow *Ultra::GetSequenceWindow(SequenceWindow *seq, uthread *uth) {
6969
pthread_mutex_lock(&outerLock);
7070

7171
// Check to see if we need to read more sequence first
72-
7372
if (!reader->DoneReadingFile()) {
7473
if (!reader->IsReading()) {
7574
if (reader->ReadyWindowsSize() == 0) {

0 commit comments

Comments
 (0)