minimap2 0.2.24.0 → 0.2.24.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9729fda39fc510adf028d0aea9736ef247201d850f22cfad4821e40253ec26e
4
- data.tar.gz: ef6d69949647da93a9a971cfe001060c18053c6075b3a3facff21c80634a835f
3
+ metadata.gz: c497bf613541579aa33f7700c02caf1f0a37cd487cb323f904322a6c205c3ea5
4
+ data.tar.gz: 6c1a7988b56816930d4f7807efcaf48e0c05289bef816b0539029d63f92e1e71
5
5
  SHA512:
6
- metadata.gz: 6b47829c2f5675669ab59a68e6189551c03b4286eba3259a8a2ba8ce7f9da2a5b15f5fb6dfcc01569bc49f357c6c3fa5e7cfb465286a9b7295bd76418fccb286
7
- data.tar.gz: cbe0c08f12ba8fc92c65dc4f595d1681930091486492b379205a38b31e5514c194bcc7f9cff4d7d8b710b93c88342b9a9e0d3b1ca0a87d67f02e9b4f257001a9
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 [RubyDoc](https://rubydoc.info/gems/minimap2/) for details.
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 *.o"
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, :int32_t,
139
- :mid_occ, :int32_t, # ignore seeds with occurrences above this threshold
140
- :max_occ, :int32_t,
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, :uint32_t, # length
153
- :is_alt, :uint32_t
152
+ :len, :uint32, # length
153
+ :is_alt, :uint32
154
154
  end
155
155
 
156
156
  class Idx < ::FFI::Struct
157
157
  layout \
158
- :b, :int32_t,
159
- :w, :int32_t,
160
- :k, :int32_t,
161
- :flag, :int32_t,
162
- :n_seq, :uint32_t, # number of reference sequences
163
- :index, :int32_t,
164
- :n_alt, :int32_t,
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, :int32_t, # ID for internal uses (see also parent below)
207
- :cnt, :int32_t, # number of minimizers; if on the reverse strand
208
- :rid, :int32_t, # reference index; if this is an alignment from inversion rescue
209
- :score, :int32_t, # DP alignment score
210
- :qs, :int32_t, # query start
211
- :qe, :int32_t, # query end
212
- :rs, :int32_t, # reference start
213
- :re, :int32_t, # reference end
214
- :parent, :int32_t, # parent==id if primary
215
- :subsc, :int32_t, # best alternate mapping score
216
- :as, :int32_t, # offset in the a[] array (for internal uses only)
217
- :mlen, :int32_t, # seeded exact match length
218
- :blen, :int32_t, # seeded alignment block length
219
- :n_sub, :int32_t, # number of suboptimal mappings
220
- :score0, :int32_t, # initial chaining score (before chain merging/spliting)
221
- :fields, :uint32_t,
222
- :hash, :uint32_t,
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
 
@@ -7,20 +7,20 @@ module Minimap2
7
7
  class Hit < ::FFI::Struct
8
8
  layout \
9
9
  :ctg, :string,
10
- :ctg_start, :int32_t,
11
- :ctg_end, :int32_t,
12
- :qry_start, :int32_t,
13
- :qry_end, :int32_t,
14
- :blen, :int32_t,
15
- :mlen, :int32_t,
16
- :NM, :int32_t,
17
- :ctg_len, :int32_t,
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, :int32_t,
23
- :n_cigar32, :int32_t,
22
+ :seg_id, :int32,
23
+ :n_cigar32, :int32,
24
24
  :cigar32, :pointer
25
25
  end
26
26
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Minimap2
4
4
  # Minimap2-2.23 (r1111)
5
- VERSION = "0.2.24.0"
5
+ VERSION = "0.2.24.2"
6
6
  end
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.0
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: 2021-12-27 00:00:00.000000000 Z
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.3
167
+ rubygems_version: 3.3.7
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: minimap2