Skip to content

Commit

Permalink
Added support of newer TBB version
Browse files Browse the repository at this point in the history
  • Loading branch information
iminkin committed Sep 29, 2022
1 parent ea12e25 commit 292d8ea
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 18 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
TwoPaCo 1.0.0
=============
* Added support of the newer version of TBB library

TwoPaCo 0.9.4
=============
* Added the installation scripts
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TwoPaCo 0.9.4
TwoPaCo 1.0.0

Release date: 25th September 2020
Release date: 29th September 2022
=============================

Authors
Expand Down
7 changes: 3 additions & 4 deletions src/graphconstructor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
project(twopaco CXX)
cmake_minimum_required(VERSION 2.8)

set(CMAKE_PROJECT_NAME twopaco)
set(CMAKE_CXX_STANDARD 14)
Expand All @@ -10,6 +9,6 @@ include_directories(${twopaco_SOURCE_DIR} ${TBB_INCLUDE_DIR} "../common")
target_link_libraries(twopaco "tbb" "tbbmalloc" "tbbmalloc_proxy" "pthread" )
install(TARGETS twopaco RUNTIME DESTINATION bin)

set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "9")
set(CPACK_PACKAGE_VERSION_PATCH "4")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "0")
12 changes: 6 additions & 6 deletions src/graphconstructor/assemblyedgeconstructor.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwoPaCo
class AssemblyEdgeConstructor
{
public:
AssemblyEdgeConstructor(const std::vector<std::string> & inputFileName, const std::string & marksFileName, const VertexEnumerator & vertexEnumerator) :
AssemblyEdgeConstructor(const std::vector<std::string> & inputFileName, const std::string & marksFileName, const VertexEnumerator & vertexEnumerator) :
vertexEnumerator_(vertexEnumerator)
{
int64_t vertexLength = vertexEnumerator_.GetHashSeed().VertexLength();
Expand All @@ -20,11 +20,11 @@ namespace TwoPaCo
JunctionPositionReader junctionReader(marksFileName);
// std::unique_ptr<ConcurrentBitVector> bloomFilter = vertexEnumerator_.ReloadBloomFilter();
for (std::string chr; chrReader.NextChr(chr); chrNumber++)
{
{
//Read the current vector of junction marks. Notice: should be done in order!
junctionMark.push_back(std::vector<bool>(chr.size(), false));
junctionReader.RestoreVector(junctionMark.back(), chrNumber);
//Init hash function
//Init hash function
VertexRollingHash hash(vertexEnumerator.GetHashSeed(), chr.begin(), vertexEnumerator.GetHashSeed().HashFunctionsNumber());
for (int64_t i = 0; i <= int64_t(chr.size()) - edgeLength; i++)
{
Expand All @@ -35,7 +35,7 @@ namespace TwoPaCo
{
assert(IsIngoingEdgeInBloomFilter(hash, *bloomFilter, chr[i - 1]));
}

//Check the if the vertex is a junction
if (vertexEnumerator_.GetId(vertex) != INVALID_VERTEX)
{
Expand All @@ -49,7 +49,7 @@ namespace TwoPaCo
}
}
}

private:
const VertexEnumerator & vertexEnumerator_;
DISALLOW_COPY_AND_ASSIGN(AssemblyEdgeConstructor);
Expand All @@ -58,4 +58,4 @@ namespace TwoPaCo

}

#endif
#endif
2 changes: 1 addition & 1 deletion src/graphconstructor/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace TwoPaCo
static const size_t TASK_SIZE = 32;
#else
static const size_t TASK_SIZE = 1 << 19;
#endif
#endif
static const size_t GAME_OVER = SIZE_MAX;
Task() {}
Task(uint64_t seqId, uint64_t start, uint64_t piece, uint64_t offset, bool isFinal, std::string && str) :
Expand Down
2 changes: 1 addition & 1 deletion src/graphconstructor/constructor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ int main(int argc, char * argv[])
OddConstraint constraint;
try
{
TCLAP::CmdLine cmd("Program for construction of the condensed de Bruijn graph from complete genomes", ' ', "0.9.4");
TCLAP::CmdLine cmd("Program for construction of the condensed de Bruijn graph from complete genomes", ' ', "1.0.0");

TCLAP::ValueArg<unsigned int> kvalue("k",
"kvalue",
Expand Down
7 changes: 3 additions & 4 deletions src/graphdump/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
project(graphdump CXX)
cmake_minimum_required(VERSION 2.8)

set(CMAKE_PROJECT_NAME graphdump)
set(CMAKE_CXX_STANDARD 14)
Expand All @@ -10,6 +9,6 @@ include_directories(${twopaco_SOURCE_DIR} ${TBB_INCLUDE_DIR} "../common")
target_link_libraries(graphdump "tbb" "pthread")
install(TARGETS graphdump RUNTIME DESTINATION bin)

set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "9")
set(CPACK_PACKAGE_VERSION_PATCH "4")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "0")

0 comments on commit 292d8ea

Please sign in to comment.