Skip to content

Commit

Permalink
drop deprecated func
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasrausch committed Sep 17, 2024
1 parent 7660565 commit a1fc8a9
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 20 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN apt-get update && apt-get install -y \
libhdf5-dev \
libncurses-dev \
liblzma-dev \
pkg-config \
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bindir ?= $(exec_prefix)/bin

# Flags
CXX=g++
CXXFLAGS += -std=c++14 -isystem ${JLIB} -isystem ${EBROOTHTSLIB} -isystem ${SDSL_ROOT}/include -pedantic -W -Wall
CXXFLAGS += -std=c++17 -isystem ${JLIB} -isystem ${EBROOTHTSLIB} -isystem ${SDSL_ROOT}/include -pedantic -W -Wall
LDFLAGS += -L${EBROOTHTSLIB} -L${EBROOTHTSLIB}/lib -L${SDSL_ROOT}/lib -lboost_iostreams -lboost_filesystem -lboost_system -lboost_program_options -lboost_date_time -ldl -lpthread

ifeq (${STATIC}, 1)
Expand Down
2 changes: 1 addition & 1 deletion singularity/tracy.def
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Stage: build

# Final image
BootStrap: library
From: alpine:3.9
From: alpine:latest
Stage: final

%files from build
Expand Down
14 changes: 5 additions & 9 deletions src/assemble.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,13 @@ namespace tracy {
bool forward;

TraceScore(int32_t const s, int32_t const i, int32_t const n, bool const f) : score(s), idx(i), newidx(n), forward(f) {}
};


template<typename TTraceScore>
struct SortTraceScore : public std::binary_function<TTraceScore, TTraceScore, bool>
{
inline bool operator()(TTraceScore const& ts1, TTraceScore const& ts2) {
return ((ts1.score > ts2.score) || ((ts1.score == ts2.score) && (ts1.idx < ts2.idx)));
bool operator<(const TraceScore& ts2) const {
return ((score > ts2.score) || ((score == ts2.score) && (idx < ts2.idx)));
}
};



struct SequenceSegment {
std::string seq;
int32_t trimLeft;
Expand Down Expand Up @@ -248,7 +244,7 @@ namespace tracy {
}

// Sort score
std::sort(scoreIdx.begin(), scoreIdx.end(), SortTraceScore<TraceScore>());
std::sort(scoreIdx.begin(), scoreIdx.end());

// Align iteratively
if (scoreIdx.size()) {
Expand Down
2 changes: 1 addition & 1 deletion src/indigo.h
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ namespace tracy {
}

// Sort variants
std::sort(var.begin(), var.end(), SortVariant<Variant>());
std::sort(var.begin(), var.end());

// VCF output
vcfOutput(c, bc, var, rs);
Expand Down
9 changes: 2 additions & 7 deletions src/variants.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,11 @@ namespace tracy {
std::string id;

Variant(int32_t const p, int32_t const bc, int32_t const g, std::string const& c, std::string const& r, std::string const& a) : pos(p), basenum(bc), gt(g), chr(c), ref(r), alt(a), id(".") {}
};

template<typename TVar>
struct SortVariant : public std::binary_function<TVar, TVar, bool>
{
inline bool operator()(TVar const& var1, TVar const& var2) {
return ((var1.chr < var2.chr) || ((var1.chr == var2.chr) && (var1.pos < var2.pos)) || ((var1.chr == var2.chr) && (var1.pos == var2.pos) && (var1.basenum < var2.basenum)));
bool operator<(const Variant& var2) const {
return ((chr < var2.chr) || ((chr == var2.chr) && (pos < var2.pos)) || ((chr == var2.chr) && (pos == var2.pos) && (basenum < var2.basenum)));
}
};


inline bool
strInclN(std::string const& ref) {
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace tracy
{


std::string tracyVersionNumber = "0.7.6";
std::string tracyVersionNumber = "0.7.8";

inline
void printTitle(std::string const& title)
Expand Down

0 comments on commit a1fc8a9

Please sign in to comment.