minimap2 0.2.25.2 → 0.2.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/ext/Rakefile +8 -1
- data/ext/minimap2/NEWS.md +9 -0
- data/ext/minimap2/README.md +2 -2
- data/ext/minimap2/cookbook.md +2 -2
- data/ext/minimap2/minimap.h +1 -1
- data/ext/minimap2/minimap2.1 +1 -1
- data/ext/minimap2/misc/paftools.js +1 -1
- data/ext/minimap2/python/mappy.pyx +1 -1
- data/ext/minimap2/setup.py +22 -32
- data/lib/minimap2/version.rb +1 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49b59da1af652a8a5ffbde0f5d9e98b32d94a192039d1e948aced9bb926e75d1
|
4
|
+
data.tar.gz: 309fe28a4a58ccc2e5bd818c751fa33a40065756c0961fc96c35af7dbc24abea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9faab29797eecd594b2f724e3c88d38457d2c60a24f01b9dd6ab0aa17a680e12db68755cf3f47d9873427f1577d81770e798f1395db17b39bffdbaf7230c330
|
7
|
+
data.tar.gz: cf3a3ea389fb1cbfabfd08fc17e073643db3c7ae59e74dcc11a75649e90ca2629a5c69fcc1548fab8755a8edb99c89a49e4353077aa3ef4b60bc9c129ec88a55
|
data/README.md
CHANGED
@@ -169,6 +169,15 @@ Run tests.
|
|
169
169
|
bundle exec rake test
|
170
170
|
```
|
171
171
|
|
172
|
+
Release a Gem.
|
173
|
+
|
174
|
+
```
|
175
|
+
bundle exec rake minimap2:cleanall
|
176
|
+
bundle exec rake build
|
177
|
+
ls -l pkg # Check the size of the Gem and make sure it does not contain any unused code such as shared libraries or lib/simde.
|
178
|
+
bundle exec rake release
|
179
|
+
```
|
180
|
+
|
172
181
|
</details>
|
173
182
|
|
174
183
|
ruby-minimap2 is a library under development and there are many points to be improved.
|
data/ext/Rakefile
CHANGED
@@ -18,7 +18,14 @@ namespace :minimap2 do
|
|
18
18
|
# Add -fPIC option to Makefile
|
19
19
|
sh "git apply ../minimap2.patch"
|
20
20
|
sh "cp ../cmappy/cmappy.h ../cmappy/cmappy.c ."
|
21
|
-
|
21
|
+
case RbConfig::CONFIG["host_cpu"]
|
22
|
+
when /arm64/
|
23
|
+
sh "make arm_neon=1 aarch64=1"
|
24
|
+
when /arm/
|
25
|
+
sh "make arm_neon=1"
|
26
|
+
else
|
27
|
+
sh "make"
|
28
|
+
end
|
22
29
|
case RbConfig::CONFIG["host_os"]
|
23
30
|
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
|
24
31
|
sh "cc *.o -shared -o #{target_fname} -lm -lz -lpthread"
|
data/ext/minimap2/NEWS.md
CHANGED
data/ext/minimap2/README.md
CHANGED
@@ -74,8 +74,8 @@ Detailed evaluations are available from the [minimap2 paper][doi] or the
|
|
74
74
|
Minimap2 is optimized for x86-64 CPUs. You can acquire precompiled binaries from
|
75
75
|
the [release page][release] with:
|
76
76
|
```sh
|
77
|
-
curl -L https://github.com/lh3/minimap2/releases/download/v2.
|
78
|
-
./minimap2-2.
|
77
|
+
curl -L https://github.com/lh3/minimap2/releases/download/v2.26/minimap2-2.26_x64-linux.tar.bz2 | tar -jxvf -
|
78
|
+
./minimap2-2.26_x64-linux/minimap2
|
79
79
|
```
|
80
80
|
If you want to compile from the source, you need to have a C compiler, GNU make
|
81
81
|
and zlib development files installed. Then type `make` in the source code
|
data/ext/minimap2/cookbook.md
CHANGED
@@ -31,8 +31,8 @@ To acquire the data used in this cookbook and to install minimap2 and paftools,
|
|
31
31
|
please follow the command lines below:
|
32
32
|
```sh
|
33
33
|
# install minimap2 executables
|
34
|
-
curl -L https://github.com/lh3/minimap2/releases/download/v2.
|
35
|
-
cp minimap2-2.
|
34
|
+
curl -L https://github.com/lh3/minimap2/releases/download/v2.26/minimap2-2.26_x64-linux.tar.bz2 | tar jxf -
|
35
|
+
cp minimap2-2.26_x64-linux/{minimap2,k8,paftools.js} . # copy executables
|
36
36
|
export PATH="$PATH:"`pwd` # put the current directory on PATH
|
37
37
|
# download example datasets
|
38
38
|
curl -L https://github.com/lh3/minimap2/releases/download/v2.10/cookbook-data.tgz | tar zxf -
|
data/ext/minimap2/minimap.h
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
#include <stdio.h>
|
6
6
|
#include <sys/types.h>
|
7
7
|
|
8
|
-
#define MM_VERSION "2.
|
8
|
+
#define MM_VERSION "2.26-r1175"
|
9
9
|
|
10
10
|
#define MM_F_NO_DIAG (0x001LL) // no exact diagonal hit
|
11
11
|
#define MM_F_NO_DUAL (0x002LL) // skip pairs where query name is lexicographically larger than target name
|
data/ext/minimap2/minimap2.1
CHANGED
data/ext/minimap2/setup.py
CHANGED
@@ -1,40 +1,29 @@
|
|
1
1
|
try:
|
2
2
|
from setuptools import setup, Extension
|
3
|
-
from setuptools.command.build_ext import build_ext
|
4
3
|
except ImportError:
|
5
4
|
from distutils.core import setup
|
6
5
|
from distutils.extension import Extension
|
7
|
-
from distutils.command.build_ext import build_ext
|
8
6
|
|
9
|
-
import sys, platform
|
7
|
+
import sys, platform
|
10
8
|
|
9
|
+
sys.path.append('python')
|
10
|
+
|
11
|
+
extra_compile_args = ['-DHAVE_KALLOC']
|
12
|
+
include_dirs = ["."]
|
13
|
+
|
14
|
+
if platform.machine() in ["aarch64", "arm64"]:
|
15
|
+
include_dirs.append("sse2neon/")
|
16
|
+
extra_compile_args.extend(['-ftree-vectorize', '-DKSW_SSE2_ONLY', '-D__SSE2__'])
|
17
|
+
else:
|
18
|
+
extra_compile_args.append('-msse4.1') # WARNING: ancient x86_64 CPUs don't have SSE4
|
11
19
|
|
12
20
|
def readme():
|
13
21
|
with open('python/README.rst') as f:
|
14
22
|
return f.read()
|
15
23
|
|
16
|
-
|
17
|
-
class LibMM2Build(build_ext):
|
18
|
-
# Uses Makefile to build library, avoids duplicating logic
|
19
|
-
# determining which objects to compile but does require
|
20
|
-
# end users to have Make (since precompiled wheels are not
|
21
|
-
# distributed on PyPI).
|
22
|
-
def run(self):
|
23
|
-
def compile_libminimap2(*args, **kwargs):
|
24
|
-
cmd = ['make', 'libminimap2.a'] + list(args)
|
25
|
-
subprocess.check_call(cmd)
|
26
|
-
options = []
|
27
|
-
if platform.machine() in ["aarch64", "arm64"]:
|
28
|
-
options = ["arm_neon=1", "aarch64=1"]
|
29
|
-
self.execute(
|
30
|
-
compile_libminimap2, options,
|
31
|
-
'Compiling libminimap2 using Makefile')
|
32
|
-
build_ext.run(self)
|
33
|
-
|
34
|
-
|
35
24
|
setup(
|
36
25
|
name = 'mappy',
|
37
|
-
version = '2.
|
26
|
+
version = '2.26',
|
38
27
|
url = 'https://github.com/lh3/minimap2',
|
39
28
|
description = 'Minimap2 python binding',
|
40
29
|
long_description = readme(),
|
@@ -43,15 +32,16 @@ setup(
|
|
43
32
|
license = 'MIT',
|
44
33
|
keywords = 'sequence-alignment',
|
45
34
|
scripts = ['python/minimap2.py'],
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
35
|
+
ext_modules = [Extension('mappy',
|
36
|
+
sources = ['python/mappy.pyx', 'align.c', 'bseq.c', 'lchain.c', 'seed.c', 'format.c', 'hit.c', 'index.c', 'pe.c', 'options.c',
|
37
|
+
'ksw2_extd2_sse.c', 'ksw2_exts2_sse.c', 'ksw2_extz2_sse.c', 'ksw2_ll_sse.c',
|
38
|
+
'kalloc.c', 'kthread.c', 'map.c', 'misc.c', 'sdust.c', 'sketch.c', 'esterr.c', 'splitidx.c'],
|
39
|
+
depends = ['minimap.h', 'bseq.h', 'kalloc.h', 'kdq.h', 'khash.h', 'kseq.h', 'ksort.h',
|
40
|
+
'ksw2.h', 'kthread.h', 'kvec.h', 'mmpriv.h', 'sdust.h',
|
41
|
+
'python/cmappy.h', 'python/cmappy.pxd'],
|
42
|
+
extra_compile_args = extra_compile_args,
|
43
|
+
include_dirs = include_dirs,
|
44
|
+
libraries = ['z', 'm', 'pthread'])],
|
55
45
|
classifiers = [
|
56
46
|
'Development Status :: 5 - Production/Stable',
|
57
47
|
'License :: OSI Approved :: MIT License',
|
data/lib/minimap2/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimap2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.26.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kojix2
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -150,7 +150,7 @@ homepage: https://github.com/kojix2/ruby-minimap2
|
|
150
150
|
licenses:
|
151
151
|
- MIT
|
152
152
|
metadata: {}
|
153
|
-
post_install_message:
|
153
|
+
post_install_message:
|
154
154
|
rdoc_options: []
|
155
155
|
require_paths:
|
156
156
|
- lib
|
@@ -165,8 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
requirements: []
|
168
|
-
rubygems_version: 3.4.
|
169
|
-
signing_key:
|
168
|
+
rubygems_version: 3.4.10
|
169
|
+
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: minimap2
|
172
172
|
test_files: []
|