Skip to content

Commit 292d8ea

Browse files
committed
Added support of newer TBB version
1 parent ea12e25 commit 292d8ea

File tree

7 files changed

+20
-18
lines changed

7 files changed

+20
-18
lines changed

Diff for: NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
TwoPaCo 1.0.0
2+
=============
3+
* Added support of the newer version of TBB library
4+
15
TwoPaCo 0.9.4
26
=============
37
* Added the installation scripts

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
TwoPaCo 0.9.4
1+
TwoPaCo 1.0.0
22

3-
Release date: 25th September 2020
3+
Release date: 29th September 2022
44
=============================
55

66
Authors

Diff for: src/graphconstructor/CMakeLists.txt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
project(twopaco CXX)
2-
cmake_minimum_required(VERSION 2.8)
32

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

13-
set(CPACK_PACKAGE_VERSION_MAJOR "0")
14-
set(CPACK_PACKAGE_VERSION_MINOR "9")
15-
set(CPACK_PACKAGE_VERSION_PATCH "4")
12+
set(CPACK_PACKAGE_VERSION_MAJOR "1")
13+
set(CPACK_PACKAGE_VERSION_MINOR "0")
14+
set(CPACK_PACKAGE_VERSION_PATCH "0")

Diff for: src/graphconstructor/assemblyedgeconstructor.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace TwoPaCo
88
class AssemblyEdgeConstructor
99
{
1010
public:
11-
AssemblyEdgeConstructor(const std::vector<std::string> & inputFileName, const std::string & marksFileName, const VertexEnumerator & vertexEnumerator) :
11+
AssemblyEdgeConstructor(const std::vector<std::string> & inputFileName, const std::string & marksFileName, const VertexEnumerator & vertexEnumerator) :
1212
vertexEnumerator_(vertexEnumerator)
1313
{
1414
int64_t vertexLength = vertexEnumerator_.GetHashSeed().VertexLength();
@@ -20,11 +20,11 @@ namespace TwoPaCo
2020
JunctionPositionReader junctionReader(marksFileName);
2121
// std::unique_ptr<ConcurrentBitVector> bloomFilter = vertexEnumerator_.ReloadBloomFilter();
2222
for (std::string chr; chrReader.NextChr(chr); chrNumber++)
23-
{
23+
{
2424
//Read the current vector of junction marks. Notice: should be done in order!
2525
junctionMark.push_back(std::vector<bool>(chr.size(), false));
2626
junctionReader.RestoreVector(junctionMark.back(), chrNumber);
27-
//Init hash function
27+
//Init hash function
2828
VertexRollingHash hash(vertexEnumerator.GetHashSeed(), chr.begin(), vertexEnumerator.GetHashSeed().HashFunctionsNumber());
2929
for (int64_t i = 0; i <= int64_t(chr.size()) - edgeLength; i++)
3030
{
@@ -35,7 +35,7 @@ namespace TwoPaCo
3535
{
3636
assert(IsIngoingEdgeInBloomFilter(hash, *bloomFilter, chr[i - 1]));
3737
}
38-
38+
3939
//Check the if the vertex is a junction
4040
if (vertexEnumerator_.GetId(vertex) != INVALID_VERTEX)
4141
{
@@ -49,7 +49,7 @@ namespace TwoPaCo
4949
}
5050
}
5151
}
52-
52+
5353
private:
5454
const VertexEnumerator & vertexEnumerator_;
5555
DISALLOW_COPY_AND_ASSIGN(AssemblyEdgeConstructor);
@@ -58,4 +58,4 @@ namespace TwoPaCo
5858

5959
}
6060

61-
#endif
61+
#endif

Diff for: src/graphconstructor/common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace TwoPaCo
3838
static const size_t TASK_SIZE = 32;
3939
#else
4040
static const size_t TASK_SIZE = 1 << 19;
41-
#endif
41+
#endif
4242
static const size_t GAME_OVER = SIZE_MAX;
4343
Task() {}
4444
Task(uint64_t seqId, uint64_t start, uint64_t piece, uint64_t offset, bool isFinal, std::string && str) :

Diff for: src/graphconstructor/constructor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ int main(int argc, char * argv[])
5656
OddConstraint constraint;
5757
try
5858
{
59-
TCLAP::CmdLine cmd("Program for construction of the condensed de Bruijn graph from complete genomes", ' ', "0.9.4");
59+
TCLAP::CmdLine cmd("Program for construction of the condensed de Bruijn graph from complete genomes", ' ', "1.0.0");
6060

6161
TCLAP::ValueArg<unsigned int> kvalue("k",
6262
"kvalue",

Diff for: src/graphdump/CMakeLists.txt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
project(graphdump CXX)
2-
cmake_minimum_required(VERSION 2.8)
32

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

13-
set(CPACK_PACKAGE_VERSION_MAJOR "0")
14-
set(CPACK_PACKAGE_VERSION_MINOR "9")
15-
set(CPACK_PACKAGE_VERSION_PATCH "4")
12+
set(CPACK_PACKAGE_VERSION_MAJOR "1")
13+
set(CPACK_PACKAGE_VERSION_MINOR "0")
14+
set(CPACK_PACKAGE_VERSION_PATCH "0")

0 commit comments

Comments
 (0)