Skip to content

Commit 8a709e8

Browse files
authored
1.2.1 dev (#86)
* Changing logic of logo creation
1 parent 606af68 commit 8a709e8

6 files changed

Lines changed: 7 additions & 11 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ project(
44
HOMEPAGE_URL https://github.com/TravisWheelerLab/ULTRA
55
)
66

7+
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g")
8+
79
# By default we do NOT build the standalone ULTRA library
810
option(BUILD_ULTRA_LIB "Also build ULTRA as a standalone library" OFF)
911

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/cli.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifndef ULTRA_CLI_HPP
66
#define ULTRA_CLI_HPP
77

8-
#define ULTRA_VERSION_STRING "1.2.0"
8+
#define ULTRA_VERSION_STRING "1.2.1"
99
#define DEBUG_STRING ""
1010
#ifdef DEBUG_PRAGMA
1111
#undef DEBUG_STRING

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) {

src/ultra.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ class Ultra {
7474

7575
bool storeTraceAndSequence = false;
7676

77-
std::unordered_map<unsigned long long, std::vector<mregion> *>
78-
masks_for_seq{};
77+
std::unordered_map<unsigned long long, std::vector<mregion> *> masks_for_seq{};
7978
std::vector<RepeatRegion *> outRepeats{};
8079
std::vector<UModel *> models{};
8180

0 commit comments

Comments
 (0)