minimap2 0.2.24.0 → 0.2.24.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -2
- data/ext/Rakefile +4 -2
- data/lib/minimap2/ffi/constants.rb +29 -29
- data/lib/minimap2/ffi/mappy.rb +10 -10
- data/lib/minimap2/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c497bf613541579aa33f7700c02caf1f0a37cd487cb323f904322a6c205c3ea5
|
4
|
+
data.tar.gz: 6c1a7988b56816930d4f7807efcaf48e0c05289bef816b0539029d63f92e1e71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 297be5f2e5cf27941b622f8c26ee960c503ff7d3369d7f178baa748834cd163fd2da5d84e0648f2f702bd42950a1f208925548bb9c7ce09ceee729e21b0d6a5e
|
7
|
+
data.tar.gz: c28bb935b443b5394ae5c62ebded5d3ab084fcc646562a849fbda1cf1ee4d3c2183bcf9eba1dca5bad3b5dda0a08003f6e0a3cc1a648113a9926db599e1ef2d3
|
data/README.md
CHANGED
@@ -2,8 +2,9 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://img.shields.io/gem/v/minimap2?color=brightgreen)](https://rubygems.org/gems/minimap2)
|
4
4
|
[![CI](https://github.com/kojix2/ruby-minimap2/workflows/CI/badge.svg)](https://github.com/kojix2/ruby-minimap2/actions)
|
5
|
+
[![Docs Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://rubydoc.info/gems/minimap2)
|
6
|
+
[![Docs Latest](https://img.shields.io/badge/docs-latest-blue.svg)](https://kojix2.github.io/ruby-minimap2/)
|
5
7
|
[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.txt)
|
6
|
-
[![Docs Latest](https://img.shields.io/badge/docs-stable-blue.svg)](https://rubydoc.info/gems/minimap2)
|
7
8
|
[![DOI](https://zenodo.org/badge/325711305.svg)](https://zenodo.org/badge/latestdoi/325711305)
|
8
9
|
|
9
10
|
:dna: [minimap2](https://github.com/lh3/minimap2) - the long-read mapper - for [Ruby](https://github.com/ruby/ruby)
|
@@ -107,7 +108,7 @@ pp hits
|
|
107
108
|
|
108
109
|
* API is based on [Mappy](https://github.com/lh3/minimap2/tree/master/python), the official Python binding for Minimap2.
|
109
110
|
* `Aligner#map` has been changed to `align`, because `map` means iterator in Ruby.
|
110
|
-
* See [
|
111
|
+
* See [documentation](https://kojix2.github.io/ruby-minimap2/) for details.
|
111
112
|
|
112
113
|
<details>
|
113
114
|
<summary><b>C Structures and Functions</b></summary>
|
@@ -174,6 +175,10 @@ ruby-minimap2 is a library under development and there are many points to be imp
|
|
174
175
|
|
175
176
|
Please feel free to report [bugs](https://github.com/kojix2/ruby-minimap2/issues) and [pull requests](https://github.com/kojix2/ruby-minimap2/pulls)!
|
176
177
|
|
178
|
+
Do you need commit rights to my repository?
|
179
|
+
Do you want to get admin rights and take over the project?
|
180
|
+
If so, please feel free to contact me @kojix2.
|
181
|
+
|
177
182
|
## License
|
178
183
|
|
179
184
|
[MIT License](https://opensource.org/licenses/MIT).
|
data/ext/Rakefile
CHANGED
@@ -23,9 +23,11 @@ namespace :minimap2 do
|
|
23
23
|
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
|
24
24
|
sh "cc *.o -shared -o #{target_fname} -lm -lz -lpthread"
|
25
25
|
when /darwin|mac os/
|
26
|
-
sh "clang -dynamiclib -undefined dynamic_lookup -o #{target_fname} *.o"
|
26
|
+
sh "clang -dynamiclib -undefined dynamic_lookup -o #{target_fname} *.o -lm -lz -lpthread"
|
27
|
+
sh "otool -L #{target_fname}"
|
27
28
|
else
|
28
|
-
sh "cc -shared -o #{target_fname} -lm -lz -lpthread
|
29
|
+
sh "cc *.o -shared -o #{target_fname} -lm -lz -lpthread"
|
30
|
+
sh "ldd -r #{target_fname}"
|
29
31
|
end
|
30
32
|
sh "rm cmappy.h cmappy.c"
|
31
33
|
sh "git apply -R ../minimap2.patch"
|
@@ -135,9 +135,9 @@ module Minimap2
|
|
135
135
|
:pe_bonus, :int,
|
136
136
|
:mid_occ_frac, :float, # only used by mm_mapopt_update(); see below
|
137
137
|
:q_occ_frac, :float,
|
138
|
-
:min_mid_occ, :
|
139
|
-
:mid_occ, :
|
140
|
-
:max_occ, :
|
138
|
+
:min_mid_occ, :int32,
|
139
|
+
:mid_occ, :int32, # ignore seeds with occurrences above this threshold
|
140
|
+
:max_occ, :int32,
|
141
141
|
:mini_batch_size, :int64_t, # size of a batch of query bases to process in parallel
|
142
142
|
:max_sw_mat, :int64_t,
|
143
143
|
:cap_kalloc, :int64_t,
|
@@ -149,19 +149,19 @@ module Minimap2
|
|
149
149
|
layout \
|
150
150
|
:name, :string, # name of the db sequence
|
151
151
|
:offset, :uint64_t, # offset in mm_idx_t::S
|
152
|
-
:len, :
|
153
|
-
:is_alt, :
|
152
|
+
:len, :uint32, # length
|
153
|
+
:is_alt, :uint32
|
154
154
|
end
|
155
155
|
|
156
156
|
class Idx < ::FFI::Struct
|
157
157
|
layout \
|
158
|
-
:b, :
|
159
|
-
:w, :
|
160
|
-
:k, :
|
161
|
-
:flag, :
|
162
|
-
:n_seq, :
|
163
|
-
:index, :
|
164
|
-
:n_alt, :
|
158
|
+
:b, :int32,
|
159
|
+
:w, :int32,
|
160
|
+
:k, :int32,
|
161
|
+
:flag, :int32,
|
162
|
+
:n_seq, :uint32, # number of reference sequences
|
163
|
+
:index, :int32,
|
164
|
+
:n_alt, :int32,
|
165
165
|
:seq, IdxSeq.ptr, # sequence name, length and offset
|
166
166
|
:S, :pointer, # 4-bit packed sequence
|
167
167
|
:B, :pointer, # index (hidden)
|
@@ -203,23 +203,23 @@ module Minimap2
|
|
203
203
|
|
204
204
|
class Reg1 < ::FFI::BitStruct
|
205
205
|
layout \
|
206
|
-
:id, :
|
207
|
-
:cnt, :
|
208
|
-
:rid, :
|
209
|
-
:score, :
|
210
|
-
:qs, :
|
211
|
-
:qe, :
|
212
|
-
:rs, :
|
213
|
-
:re, :
|
214
|
-
:parent, :
|
215
|
-
:subsc, :
|
216
|
-
:as, :
|
217
|
-
:mlen, :
|
218
|
-
:blen, :
|
219
|
-
:n_sub, :
|
220
|
-
:score0, :
|
221
|
-
:fields, :
|
222
|
-
:hash, :
|
206
|
+
:id, :int32, # ID for internal uses (see also parent below)
|
207
|
+
:cnt, :int32, # number of minimizers; if on the reverse strand
|
208
|
+
:rid, :int32, # reference index; if this is an alignment from inversion rescue
|
209
|
+
:score, :int32, # DP alignment score
|
210
|
+
:qs, :int32, # query start
|
211
|
+
:qe, :int32, # query end
|
212
|
+
:rs, :int32, # reference start
|
213
|
+
:re, :int32, # reference end
|
214
|
+
:parent, :int32, # parent==id if primary
|
215
|
+
:subsc, :int32, # best alternate mapping score
|
216
|
+
:as, :int32, # offset in the a[] array (for internal uses only)
|
217
|
+
:mlen, :int32, # seeded exact match length
|
218
|
+
:blen, :int32, # seeded alignment block length
|
219
|
+
:n_sub, :int32, # number of suboptimal mappings
|
220
|
+
:score0, :int32, # initial chaining score (before chain merging/spliting)
|
221
|
+
:fields, :uint32,
|
222
|
+
:hash, :uint32,
|
223
223
|
:div, :float,
|
224
224
|
:p, Extra.ptr
|
225
225
|
|
data/lib/minimap2/ffi/mappy.rb
CHANGED
@@ -7,20 +7,20 @@ module Minimap2
|
|
7
7
|
class Hit < ::FFI::Struct
|
8
8
|
layout \
|
9
9
|
:ctg, :string,
|
10
|
-
:ctg_start, :
|
11
|
-
:ctg_end, :
|
12
|
-
:qry_start, :
|
13
|
-
:qry_end, :
|
14
|
-
:blen, :
|
15
|
-
:mlen, :
|
16
|
-
:NM, :
|
17
|
-
:ctg_len, :
|
10
|
+
:ctg_start, :int32,
|
11
|
+
:ctg_end, :int32,
|
12
|
+
:qry_start, :int32,
|
13
|
+
:qry_end, :int32,
|
14
|
+
:blen, :int32,
|
15
|
+
:mlen, :int32,
|
16
|
+
:NM, :int32,
|
17
|
+
:ctg_len, :int32,
|
18
18
|
:mapq, :uint8_t,
|
19
19
|
:is_primary, :uint8_t,
|
20
20
|
:strand, :int8_t,
|
21
21
|
:trans_strand, :int8_t,
|
22
|
-
:seg_id, :
|
23
|
-
:n_cigar32, :
|
22
|
+
:seg_id, :int32,
|
23
|
+
:n_cigar32, :int32,
|
24
24
|
:cigar32, :pointer
|
25
25
|
end
|
26
26
|
|
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.24.
|
4
|
+
version: 0.2.24.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kojix2
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
|
-
rubygems_version: 3.3.
|
167
|
+
rubygems_version: 3.3.7
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: minimap2
|