Skip to content

Commit

Permalink
swarm version 3.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
torognes committed Mar 31, 2024
1 parent f9a5cf2 commit e8ee6d5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ authors:
given-names: "Torbjørn"
orcid: "https://orcid.org/0000-0002-9329-9974"
title: "SWARM: A robust and fast clustering method for amplicon-based studies"
version: 3.1.4
date-released: 2023-09-20
version: 3.1.5
date-released: 2024-03-31
url: "https://github.com/torognes/swarm"
preferred-citation:
type: article
Expand Down
4 changes: 2 additions & 2 deletions man/swarm.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" ============================================================================
.TH swarm 1 "March 29, 2024" "version 3.1.5" "USER COMMANDS"
.TH swarm 1 "March 31, 2024" "version 3.1.5" "USER COMMANDS"
.\" ============================================================================
.SH NAME
swarm \(em find clusters of nearly-identical nucleotide amplicons
Expand Down Expand Up @@ -548,7 +548,7 @@ New features and important modifications of \fBswarm\fR (short lived
or minor bug releases are not mentioned):
.RS
.TP
.BR v3.1.5\~ "released March 29, 2024"
.BR v3.1.5\~ "released March 31, 2024"
Version 3.1.5 changes the minimal value for the ceiling option from 8
megabytes to 40 megabytes, and fixes four minor bugs. Warning, peak
RSS memory increased by 5 to 10% when \fId\fR >= 2. Version 3.1.5
Expand Down
Binary file modified man/swarm_manual.pdf
Binary file not shown.
6 changes: 6 additions & 0 deletions src/derep.cc
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,13 @@ auto write_swarms_mothur_format(struct Parameters const & parameters,
std::vector<struct bucket> const & hashtable,
std::vector<unsigned int> const & nextseqtab) -> void {
progress_init("Writing swarms: ", hashtable.size());

#ifdef _WIN32
std::fprintf(parameters.outfile, "swarm_%" PRId64 "\t%llu", parameters.opt_differences, hashtable.size());
#else
std::fprintf(parameters.outfile, "swarm_%" PRId64 "\t%lu", parameters.opt_differences, hashtable.size());
#endif

auto counter = 0U;

for(auto const & cluster: hashtable) {
Expand Down
2 changes: 1 addition & 1 deletion src/swarm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ constexpr char PRId64[] = "ld";
constexpr auto int_max = std::numeric_limits<int>::max();
constexpr auto int16_max = std::numeric_limits<int16_t>::max();
static_assert(int_max > int16_max, "Your compiler uses very short integers.");
const std::string swarm_version {"3.1.4"};
const std::string swarm_version {"3.1.5"};


/* OPTIONS */
Expand Down

0 comments on commit e8ee6d5

Please sign in to comment.