Skip to content

Commit 7358a1e

Browse files
committed
Release minimap2-2.22 (r1101)
1 parent 32f5529 commit 7358a1e

File tree

9 files changed

+44
-10
lines changed

9 files changed

+44
-10
lines changed

NEWS.md

+26-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,36 @@
1+
Release 2.22-r1101 (7 August 2021)
2+
----------------------------------
3+
4+
When choosing the best alignment, this release uses logarithm gap penalty and
5+
query-specific mismatch penalty. It improves the sensitivity to long INDELs in
6+
repetitive regions.
7+
8+
Other notable changes:
9+
10+
* Bugfix: fixed an indirect memory leak that may waste a large amount of
11+
memory given highly repetitive reference such as a 16S RNA database (#749).
12+
All versions of minimap2 have this issue.
13+
14+
* New feature: added --cap-kalloc to reduce the peak memory. This option is
15+
not enabled by default but may become the default in future releases.
16+
17+
Known issue:
18+
19+
* Minimap2 may take a long time to map a read (#771). So far it is not clear
20+
if this happens to v2.18 and earlier versions.
21+
22+
(2.22: 7 August 2021, r1101)
23+
24+
25+
126
Release 2.21-r1071 (6 July 2021)
227
--------------------------------
328

429
This release fixed a regression in short-read mapping introduced in v2.19
530
(#776). It also fixed invalid comparisons of uninitialized variables, though
631
these are harmless (#752). Long-read alignment should be identical to v2.20.
732

8-
(2.21: 6 July 2021)
33+
(2.21: 6 July 2021, r1071)
934

1035

1136

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ Detailed evaluations are available from the [minimap2 paper][doi] or the
7474
Minimap2 is optimized for x86-64 CPUs. You can acquire precompiled binaries from
7575
the [release page][release] with:
7676
```sh
77-
curl -L https://github.com/lh3/minimap2/releases/download/v2.21/minimap2-2.21_x64-linux.tar.bz2 | tar -jxvf -
78-
./minimap2-2.21_x64-linux/minimap2
77+
curl -L https://github.com/lh3/minimap2/releases/download/v2.22/minimap2-2.22_x64-linux.tar.bz2 | tar -jxvf -
78+
./minimap2-2.22_x64-linux/minimap2
7979
```
8080
If you want to compile from the source, you need to have a C compiler, GNU make
8181
and zlib development files installed. Then type `make` in the source code

cookbook.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ To acquire the data used in this cookbook and to install minimap2 and paftools,
3131
please follow the command lines below:
3232
```sh
3333
# install minimap2 executables
34-
curl -L https://github.com/lh3/minimap2/releases/download/v2.21/minimap2-2.21_x64-linux.tar.bz2 | tar jxf -
35-
cp minimap2-2.21_x64-linux/{minimap2,k8,paftools.js} . # copy executables
34+
curl -L https://github.com/lh3/minimap2/releases/download/v2.22/minimap2-2.22_x64-linux.tar.bz2 | tar jxf -
35+
cp minimap2-2.22_x64-linux/{minimap2,k8,paftools.js} . # copy executables
3636
export PATH="$PATH:"`pwd` # put the current directory on PATH
3737
# download example datasets
3838
curl -L https://github.com/lh3/minimap2/releases/download/v2.10/cookbook-data.tgz | tar zxf -

main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "mmpriv.h"
88
#include "ketopt.h"
99

10-
#define MM_VERSION "2.21-dev-r1094-dirty"
10+
#define MM_VERSION "2.22-r1101"
1111

1212
#ifdef __linux__
1313
#include <sys/resource.h>

minimap2.1

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH minimap2 1 "6 July 2021" "minimap2-2.21 (r1071)" "Bioinformatics tools"
1+
.TH minimap2 1 "7 August 2021" "minimap2-2.22 (r1101)" "Bioinformatics tools"
22
.SH NAME
33
.PP
44
minimap2 - mapping and alignment between collections of DNA sequences
@@ -423,6 +423,11 @@ alignment.
423423
Skip alignment if the DP matrix size is above
424424
.IR NUM .
425425
Set 0 to disable [100m].
426+
.TP
427+
.BI --cap-kalloc \ NUM
428+
Free thread-local kalloc memory reservoir if after the alignment the size of the reservoir above
429+
.IR NUM .
430+
Set 0 to disable [0].
426431
.SS Input/output options
427432
.TP 10
428433
.B -a

misc/paftools.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env k8
22

3-
var paftools_version = '2.21-r1071';
3+
var paftools_version = '2.22-r1101';
44

55
/*****************************
66
***** Library functions *****

python/cmappy.pxd

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ cdef extern from "minimap.h":
4545
int anchor_ext_len, anchor_ext_shift
4646
float max_clip_ratio
4747

48+
int rank_min_len
49+
float rank_frac
50+
4851
int pe_ori, pe_bonus
4952

5053
float mid_occ_frac
@@ -53,6 +56,7 @@ cdef extern from "minimap.h":
5356
int32_t max_occ
5457
int64_t mini_batch_size
5558
int64_t max_sw_mat
59+
int64_t cap_kalloc
5660

5761
const char *split_prefix
5862

python/mappy.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ from libc.stdlib cimport free
33
cimport cmappy
44
import sys
55

6-
__version__ = '2.21'
6+
__version__ = '2.22'
77

88
cmappy.mm_reset_timer()
99

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def readme():
2323

2424
setup(
2525
name = 'mappy',
26-
version = '2.21',
26+
version = '2.22',
2727
url = 'https://github.com/lh3/minimap2',
2828
description = 'Minimap2 python binding',
2929
long_description = readme(),

0 commit comments

Comments
 (0)