Skip to content

Commit 59c88cd

Browse files
authored
Fixed segmentation fault with objects file present and no edges in a filtered graph.
1 parent 95171c8 commit 59c88cd

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

.github/workflows/self-hosted.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
runs-on: [self-hosted, clusty, '${{ matrix.machine }}']
5353

5454
steps:
55+
- name: list files
56+
run: ls -lR
5557
- name: make
5658
run: gmake -j32 CXX=g++-${{matrix.compiler}} CC=gcc-${{matrix.compiler}} PLATFORM=${{ matrix.platform }} LEIDEN=true STATIC_LINK=true
5759
- name: copy executable

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,6 @@ In the following section one can find detailed information on clustering algorit
263263

264264

265265
## Citation
266-
Zielezinski A, Gudyś A, Barylski J, Siminski K, Rozwalak P, Dutilh BE, Deorowicz S. Ultrafast and accurate sequence alignment and clustering of viral genomes. bioRxiv [doi:10.1101/2024.06.27.601020].
266+
Zielezinski A, Gudyś A, Barylski J, Siminski K, Rozwalak P, Dutilh BE, Deorowicz S. Ultrafast and accurate sequence alignment and clustering of viral genomes. Nat Methods. [https://doi.org/10.1038/s41592-025-02701-7](https://doi.org/10.1038/s41592-025-02701-7)
267267

268268
###

src/graph.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ void Graph::sortClustersBySize(
2323
const std::vector<int>& assignments,
2424
std::vector<int>& old2new) const {
2525

26+
if (assignments.empty()) {
27+
return;
28+
}
29+
2630
// get number of clusters
2731
int n_clusters = *std::max_element(assignments.begin(), assignments.end()) + 1;
2832

src/version.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88
//
99
// *******************************************************************************************
1010

11-
#define VERSION "1.2.0"
12-
#define DATE "2025-02-10"
11+
#define VERSION "1.2.1"
12+
#define DATE "2025-05-19"
1313

1414

1515
/********* Version history *********
1616
17+
1.2.1 (2025-05-19)
18+
Fixed segmentation fault with objects file present and no edges in a filtered graph.
19+
1720
1.2.0 (2025-02-10)
1821
* Different ordering of assignments in the output file (clusters decreasingly by size, elements within clusters decreasingly by representativeness).
1922
* Improved I/O performance.

0 commit comments

Comments
 (0)