minimap2 0.2.24.1 → 0.2.24.3
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/lib/minimap2/aligner.rb +2 -2
- data/lib/minimap2/ffi/constants.rb +29 -29
- data/lib/minimap2/ffi/mappy.rb +10 -10
- data/lib/minimap2/version.rb +2 -2
- 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: bd42b0827b439d629ee498b2030da81f674f3682a818fafcb0987093bdb49e62
|
4
|
+
data.tar.gz: fad5d4e9df7969c828afbdb1cb1a881b23aef2d0d0b61b124f1f8faa8cc3182a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7866ba8829f4e8840ce752ae86e5c3fb1b4697e6ad538cbe80c09d93238f9a4cf59c22e52f23d3349eecefcba50bc1d610968c81db2ae0def98984dd83fecc8a
|
7
|
+
data.tar.gz: 3609844781d7d9675175a791e2b20010d95e183920d891d0eceb924c6c408bfad7b2240659f1c3d07ce8eec6f2600830f23415333e6ca630c4df0a4b8ba39f3f
|
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/lib/minimap2/aligner.rb
CHANGED
@@ -140,8 +140,8 @@ module Minimap2
|
|
140
140
|
|
141
141
|
return if index.null?
|
142
142
|
|
143
|
-
map_opt
|
144
|
-
map_opt
|
143
|
+
map_opt[:max_frag_len] = max_frag_len if max_frag_len
|
144
|
+
map_opt[:flag] |= extra_flags if extra_flags
|
145
145
|
|
146
146
|
buf ||= FFI::TBuf.new
|
147
147
|
km = FFI.mm_tbuf_get_km(buf)
|
@@ -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.3
|
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: 2023-04-26 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.
|
167
|
+
rubygems_version: 3.4.10
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: minimap2
|