minimap2 0.2.22.0 → 0.2.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +60 -76
- data/ext/Rakefile +55 -0
- data/ext/cmappy/cmappy.c +129 -0
- data/ext/cmappy/cmappy.h +44 -0
- data/ext/minimap2/FAQ.md +46 -0
- data/ext/minimap2/LICENSE.txt +24 -0
- data/ext/minimap2/MANIFEST.in +10 -0
- data/ext/minimap2/Makefile +132 -0
- data/ext/minimap2/Makefile.simde +97 -0
- data/ext/minimap2/NEWS.md +821 -0
- data/ext/minimap2/README.md +403 -0
- data/ext/minimap2/align.c +1020 -0
- data/ext/minimap2/bseq.c +169 -0
- data/ext/minimap2/bseq.h +64 -0
- data/ext/minimap2/code_of_conduct.md +30 -0
- data/ext/minimap2/cookbook.md +243 -0
- data/ext/minimap2/esterr.c +64 -0
- data/ext/minimap2/example.c +63 -0
- data/ext/minimap2/format.c +559 -0
- data/ext/minimap2/hit.c +466 -0
- data/ext/minimap2/index.c +775 -0
- data/ext/minimap2/kalloc.c +205 -0
- data/ext/minimap2/kalloc.h +76 -0
- data/ext/minimap2/kdq.h +132 -0
- data/ext/minimap2/ketopt.h +120 -0
- data/ext/minimap2/khash.h +615 -0
- data/ext/minimap2/krmq.h +474 -0
- data/ext/minimap2/kseq.h +256 -0
- data/ext/minimap2/ksort.h +153 -0
- data/ext/minimap2/ksw2.h +184 -0
- data/ext/minimap2/ksw2_dispatch.c +96 -0
- data/ext/minimap2/ksw2_extd2_sse.c +402 -0
- data/ext/minimap2/ksw2_exts2_sse.c +416 -0
- data/ext/minimap2/ksw2_extz2_sse.c +313 -0
- data/ext/minimap2/ksw2_ll_sse.c +152 -0
- data/ext/minimap2/kthread.c +159 -0
- data/ext/minimap2/kthread.h +15 -0
- data/ext/minimap2/kvec.h +105 -0
- data/ext/minimap2/lchain.c +369 -0
- data/ext/minimap2/main.c +459 -0
- data/ext/minimap2/map.c +714 -0
- data/ext/minimap2/minimap.h +410 -0
- data/ext/minimap2/minimap2.1 +725 -0
- data/ext/minimap2/misc/README.md +179 -0
- data/ext/minimap2/misc/mmphase.js +335 -0
- data/ext/minimap2/misc/paftools.js +3149 -0
- data/ext/minimap2/misc.c +162 -0
- data/ext/minimap2/mmpriv.h +132 -0
- data/ext/minimap2/options.c +234 -0
- data/ext/minimap2/pe.c +177 -0
- data/ext/minimap2/python/README.rst +196 -0
- data/ext/minimap2/python/cmappy.h +152 -0
- data/ext/minimap2/python/cmappy.pxd +153 -0
- data/ext/minimap2/python/mappy.pyx +273 -0
- data/ext/minimap2/python/minimap2.py +39 -0
- data/ext/minimap2/sdust.c +213 -0
- data/ext/minimap2/sdust.h +25 -0
- data/ext/minimap2/seed.c +131 -0
- data/ext/minimap2/setup.py +55 -0
- data/ext/minimap2/sketch.c +143 -0
- data/ext/minimap2/splitidx.c +84 -0
- data/ext/minimap2/sse2neon/emmintrin.h +1689 -0
- data/ext/minimap2/test/MT-human.fa +278 -0
- data/ext/minimap2/test/MT-orang.fa +276 -0
- data/ext/minimap2/test/q-inv.fa +4 -0
- data/ext/minimap2/test/q2.fa +2 -0
- data/ext/minimap2/test/t-inv.fa +127 -0
- data/ext/minimap2/test/t2.fa +2 -0
- data/ext/minimap2/tex/Makefile +21 -0
- data/ext/minimap2/tex/bioinfo.cls +930 -0
- data/ext/minimap2/tex/blasr-mc.eval +17 -0
- data/ext/minimap2/tex/bowtie2-s3.sam.eval +28 -0
- data/ext/minimap2/tex/bwa-s3.sam.eval +52 -0
- data/ext/minimap2/tex/bwa.eval +55 -0
- data/ext/minimap2/tex/eval2roc.pl +33 -0
- data/ext/minimap2/tex/graphmap.eval +4 -0
- data/ext/minimap2/tex/hs38-simu.sh +10 -0
- data/ext/minimap2/tex/minialign.eval +49 -0
- data/ext/minimap2/tex/minimap2.bib +460 -0
- data/ext/minimap2/tex/minimap2.tex +724 -0
- data/ext/minimap2/tex/mm2-s3.sam.eval +62 -0
- data/ext/minimap2/tex/mm2-update.tex +240 -0
- data/ext/minimap2/tex/mm2.approx.eval +12 -0
- data/ext/minimap2/tex/mm2.eval +13 -0
- data/ext/minimap2/tex/natbib.bst +1288 -0
- data/ext/minimap2/tex/natbib.sty +803 -0
- data/ext/minimap2/tex/ngmlr.eval +38 -0
- data/ext/minimap2/tex/roc.gp +60 -0
- data/ext/minimap2/tex/snap-s3.sam.eval +62 -0
- data/ext/minimap2.patch +19 -0
- data/lib/minimap2/aligner.rb +4 -4
- data/lib/minimap2/alignment.rb +11 -11
- data/lib/minimap2/ffi/constants.rb +20 -16
- data/lib/minimap2/ffi/functions.rb +5 -0
- data/lib/minimap2/ffi.rb +4 -5
- data/lib/minimap2/version.rb +2 -2
- data/lib/minimap2.rb +51 -15
- metadata +97 -79
- data/lib/minimap2/ffi_helper.rb +0 -53
- data/vendor/libminimap2.so +0 -0
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.24.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kojix2
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -25,98 +25,118 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: ffi-bitfield
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
|
-
type: :
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: irb
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rake
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: tty-command
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
34
|
+
type: :runtime
|
105
35
|
prerelease: false
|
106
36
|
version_requirements: !ruby/object:Gem::Requirement
|
107
37
|
requirements:
|
108
38
|
- - ">="
|
109
39
|
- !ruby/object:Gem::Version
|
110
40
|
version: '0'
|
111
|
-
description:
|
41
|
+
description: Ruby bindings to the Minimap2 aligner.
|
112
42
|
email:
|
113
43
|
- 2xijok@gmail.com
|
114
44
|
executables: []
|
115
|
-
extensions:
|
45
|
+
extensions:
|
46
|
+
- ext/Rakefile
|
116
47
|
extra_rdoc_files: []
|
117
48
|
files:
|
118
49
|
- LICENSE.txt
|
119
50
|
- README.md
|
51
|
+
- ext/Rakefile
|
52
|
+
- ext/cmappy/cmappy.c
|
53
|
+
- ext/cmappy/cmappy.h
|
54
|
+
- ext/minimap2.patch
|
55
|
+
- ext/minimap2/FAQ.md
|
56
|
+
- ext/minimap2/LICENSE.txt
|
57
|
+
- ext/minimap2/MANIFEST.in
|
58
|
+
- ext/minimap2/Makefile
|
59
|
+
- ext/minimap2/Makefile.simde
|
60
|
+
- ext/minimap2/NEWS.md
|
61
|
+
- ext/minimap2/README.md
|
62
|
+
- ext/minimap2/align.c
|
63
|
+
- ext/minimap2/bseq.c
|
64
|
+
- ext/minimap2/bseq.h
|
65
|
+
- ext/minimap2/code_of_conduct.md
|
66
|
+
- ext/minimap2/cookbook.md
|
67
|
+
- ext/minimap2/esterr.c
|
68
|
+
- ext/minimap2/example.c
|
69
|
+
- ext/minimap2/format.c
|
70
|
+
- ext/minimap2/hit.c
|
71
|
+
- ext/minimap2/index.c
|
72
|
+
- ext/minimap2/kalloc.c
|
73
|
+
- ext/minimap2/kalloc.h
|
74
|
+
- ext/minimap2/kdq.h
|
75
|
+
- ext/minimap2/ketopt.h
|
76
|
+
- ext/minimap2/khash.h
|
77
|
+
- ext/minimap2/krmq.h
|
78
|
+
- ext/minimap2/kseq.h
|
79
|
+
- ext/minimap2/ksort.h
|
80
|
+
- ext/minimap2/ksw2.h
|
81
|
+
- ext/minimap2/ksw2_dispatch.c
|
82
|
+
- ext/minimap2/ksw2_extd2_sse.c
|
83
|
+
- ext/minimap2/ksw2_exts2_sse.c
|
84
|
+
- ext/minimap2/ksw2_extz2_sse.c
|
85
|
+
- ext/minimap2/ksw2_ll_sse.c
|
86
|
+
- ext/minimap2/kthread.c
|
87
|
+
- ext/minimap2/kthread.h
|
88
|
+
- ext/minimap2/kvec.h
|
89
|
+
- ext/minimap2/lchain.c
|
90
|
+
- ext/minimap2/main.c
|
91
|
+
- ext/minimap2/map.c
|
92
|
+
- ext/minimap2/minimap.h
|
93
|
+
- ext/minimap2/minimap2.1
|
94
|
+
- ext/minimap2/misc.c
|
95
|
+
- ext/minimap2/misc/README.md
|
96
|
+
- ext/minimap2/misc/mmphase.js
|
97
|
+
- ext/minimap2/misc/paftools.js
|
98
|
+
- ext/minimap2/mmpriv.h
|
99
|
+
- ext/minimap2/options.c
|
100
|
+
- ext/minimap2/pe.c
|
101
|
+
- ext/minimap2/python/README.rst
|
102
|
+
- ext/minimap2/python/cmappy.h
|
103
|
+
- ext/minimap2/python/cmappy.pxd
|
104
|
+
- ext/minimap2/python/mappy.pyx
|
105
|
+
- ext/minimap2/python/minimap2.py
|
106
|
+
- ext/minimap2/sdust.c
|
107
|
+
- ext/minimap2/sdust.h
|
108
|
+
- ext/minimap2/seed.c
|
109
|
+
- ext/minimap2/setup.py
|
110
|
+
- ext/minimap2/sketch.c
|
111
|
+
- ext/minimap2/splitidx.c
|
112
|
+
- ext/minimap2/sse2neon/emmintrin.h
|
113
|
+
- ext/minimap2/test/MT-human.fa
|
114
|
+
- ext/minimap2/test/MT-orang.fa
|
115
|
+
- ext/minimap2/test/q-inv.fa
|
116
|
+
- ext/minimap2/test/q2.fa
|
117
|
+
- ext/minimap2/test/t-inv.fa
|
118
|
+
- ext/minimap2/test/t2.fa
|
119
|
+
- ext/minimap2/tex/Makefile
|
120
|
+
- ext/minimap2/tex/bioinfo.cls
|
121
|
+
- ext/minimap2/tex/blasr-mc.eval
|
122
|
+
- ext/minimap2/tex/bowtie2-s3.sam.eval
|
123
|
+
- ext/minimap2/tex/bwa-s3.sam.eval
|
124
|
+
- ext/minimap2/tex/bwa.eval
|
125
|
+
- ext/minimap2/tex/eval2roc.pl
|
126
|
+
- ext/minimap2/tex/graphmap.eval
|
127
|
+
- ext/minimap2/tex/hs38-simu.sh
|
128
|
+
- ext/minimap2/tex/minialign.eval
|
129
|
+
- ext/minimap2/tex/minimap2.bib
|
130
|
+
- ext/minimap2/tex/minimap2.tex
|
131
|
+
- ext/minimap2/tex/mm2-s3.sam.eval
|
132
|
+
- ext/minimap2/tex/mm2-update.tex
|
133
|
+
- ext/minimap2/tex/mm2.approx.eval
|
134
|
+
- ext/minimap2/tex/mm2.eval
|
135
|
+
- ext/minimap2/tex/natbib.bst
|
136
|
+
- ext/minimap2/tex/natbib.sty
|
137
|
+
- ext/minimap2/tex/ngmlr.eval
|
138
|
+
- ext/minimap2/tex/roc.gp
|
139
|
+
- ext/minimap2/tex/snap-s3.sam.eval
|
120
140
|
- lib/minimap2.rb
|
121
141
|
- lib/minimap2/aligner.rb
|
122
142
|
- lib/minimap2/alignment.rb
|
@@ -124,9 +144,7 @@ files:
|
|
124
144
|
- lib/minimap2/ffi/constants.rb
|
125
145
|
- lib/minimap2/ffi/functions.rb
|
126
146
|
- lib/minimap2/ffi/mappy.rb
|
127
|
-
- lib/minimap2/ffi_helper.rb
|
128
147
|
- lib/minimap2/version.rb
|
129
|
-
- vendor/libminimap2.so
|
130
148
|
homepage: https://github.com/kojix2/ruby-minimap2
|
131
149
|
licenses:
|
132
150
|
- MIT
|
@@ -146,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
164
|
- !ruby/object:Gem::Version
|
147
165
|
version: '0'
|
148
166
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
167
|
+
rubygems_version: 3.3.3
|
150
168
|
signing_key:
|
151
169
|
specification_version: 4
|
152
170
|
summary: minimap2
|
data/lib/minimap2/ffi_helper.rb
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'ffi'
|
4
|
-
|
5
|
-
module FFI
|
6
|
-
class BitStruct < Struct
|
7
|
-
class << self
|
8
|
-
# def union_layout(*args)
|
9
|
-
# Class.new(FFI::Union) { layout(*args) }
|
10
|
-
# end
|
11
|
-
|
12
|
-
# def struct_layout(*args)
|
13
|
-
# Class.new(FFI::Struct) { layout(*args) }
|
14
|
-
# end
|
15
|
-
|
16
|
-
module BitFieldsModule
|
17
|
-
def [](name)
|
18
|
-
bit_fields = self.class.bit_fields_map
|
19
|
-
parent, start, width = bit_fields[name]
|
20
|
-
if parent
|
21
|
-
(super(parent) >> start) & ((1 << width) - 1)
|
22
|
-
else
|
23
|
-
super(name)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
private_constant :BitFieldsModule
|
28
|
-
|
29
|
-
attr_reader :bit_fields_map
|
30
|
-
|
31
|
-
def bitfields(*args)
|
32
|
-
unless instance_variable_defined?(:@bit_fields)
|
33
|
-
@bit_fields_map = {}
|
34
|
-
prepend BitFieldsModule
|
35
|
-
end
|
36
|
-
|
37
|
-
parent = args.shift
|
38
|
-
labels = []
|
39
|
-
widths = []
|
40
|
-
args.each_slice(2) do |l, w|
|
41
|
-
labels << l
|
42
|
-
widths << w
|
43
|
-
end
|
44
|
-
starts = widths.inject([0]) do |result, w|
|
45
|
-
result << (result.last + w)
|
46
|
-
end
|
47
|
-
labels.zip(starts, widths).each do |l, s, w|
|
48
|
-
@bit_fields_map[l] = [parent, s, w]
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
data/vendor/libminimap2.so
DELETED
Binary file
|