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.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +60 -76
  3. data/ext/Rakefile +55 -0
  4. data/ext/cmappy/cmappy.c +129 -0
  5. data/ext/cmappy/cmappy.h +44 -0
  6. data/ext/minimap2/FAQ.md +46 -0
  7. data/ext/minimap2/LICENSE.txt +24 -0
  8. data/ext/minimap2/MANIFEST.in +10 -0
  9. data/ext/minimap2/Makefile +132 -0
  10. data/ext/minimap2/Makefile.simde +97 -0
  11. data/ext/minimap2/NEWS.md +821 -0
  12. data/ext/minimap2/README.md +403 -0
  13. data/ext/minimap2/align.c +1020 -0
  14. data/ext/minimap2/bseq.c +169 -0
  15. data/ext/minimap2/bseq.h +64 -0
  16. data/ext/minimap2/code_of_conduct.md +30 -0
  17. data/ext/minimap2/cookbook.md +243 -0
  18. data/ext/minimap2/esterr.c +64 -0
  19. data/ext/minimap2/example.c +63 -0
  20. data/ext/minimap2/format.c +559 -0
  21. data/ext/minimap2/hit.c +466 -0
  22. data/ext/minimap2/index.c +775 -0
  23. data/ext/minimap2/kalloc.c +205 -0
  24. data/ext/minimap2/kalloc.h +76 -0
  25. data/ext/minimap2/kdq.h +132 -0
  26. data/ext/minimap2/ketopt.h +120 -0
  27. data/ext/minimap2/khash.h +615 -0
  28. data/ext/minimap2/krmq.h +474 -0
  29. data/ext/minimap2/kseq.h +256 -0
  30. data/ext/minimap2/ksort.h +153 -0
  31. data/ext/minimap2/ksw2.h +184 -0
  32. data/ext/minimap2/ksw2_dispatch.c +96 -0
  33. data/ext/minimap2/ksw2_extd2_sse.c +402 -0
  34. data/ext/minimap2/ksw2_exts2_sse.c +416 -0
  35. data/ext/minimap2/ksw2_extz2_sse.c +313 -0
  36. data/ext/minimap2/ksw2_ll_sse.c +152 -0
  37. data/ext/minimap2/kthread.c +159 -0
  38. data/ext/minimap2/kthread.h +15 -0
  39. data/ext/minimap2/kvec.h +105 -0
  40. data/ext/minimap2/lchain.c +369 -0
  41. data/ext/minimap2/main.c +459 -0
  42. data/ext/minimap2/map.c +714 -0
  43. data/ext/minimap2/minimap.h +410 -0
  44. data/ext/minimap2/minimap2.1 +725 -0
  45. data/ext/minimap2/misc/README.md +179 -0
  46. data/ext/minimap2/misc/mmphase.js +335 -0
  47. data/ext/minimap2/misc/paftools.js +3149 -0
  48. data/ext/minimap2/misc.c +162 -0
  49. data/ext/minimap2/mmpriv.h +132 -0
  50. data/ext/minimap2/options.c +234 -0
  51. data/ext/minimap2/pe.c +177 -0
  52. data/ext/minimap2/python/README.rst +196 -0
  53. data/ext/minimap2/python/cmappy.h +152 -0
  54. data/ext/minimap2/python/cmappy.pxd +153 -0
  55. data/ext/minimap2/python/mappy.pyx +273 -0
  56. data/ext/minimap2/python/minimap2.py +39 -0
  57. data/ext/minimap2/sdust.c +213 -0
  58. data/ext/minimap2/sdust.h +25 -0
  59. data/ext/minimap2/seed.c +131 -0
  60. data/ext/minimap2/setup.py +55 -0
  61. data/ext/minimap2/sketch.c +143 -0
  62. data/ext/minimap2/splitidx.c +84 -0
  63. data/ext/minimap2/sse2neon/emmintrin.h +1689 -0
  64. data/ext/minimap2/test/MT-human.fa +278 -0
  65. data/ext/minimap2/test/MT-orang.fa +276 -0
  66. data/ext/minimap2/test/q-inv.fa +4 -0
  67. data/ext/minimap2/test/q2.fa +2 -0
  68. data/ext/minimap2/test/t-inv.fa +127 -0
  69. data/ext/minimap2/test/t2.fa +2 -0
  70. data/ext/minimap2/tex/Makefile +21 -0
  71. data/ext/minimap2/tex/bioinfo.cls +930 -0
  72. data/ext/minimap2/tex/blasr-mc.eval +17 -0
  73. data/ext/minimap2/tex/bowtie2-s3.sam.eval +28 -0
  74. data/ext/minimap2/tex/bwa-s3.sam.eval +52 -0
  75. data/ext/minimap2/tex/bwa.eval +55 -0
  76. data/ext/minimap2/tex/eval2roc.pl +33 -0
  77. data/ext/minimap2/tex/graphmap.eval +4 -0
  78. data/ext/minimap2/tex/hs38-simu.sh +10 -0
  79. data/ext/minimap2/tex/minialign.eval +49 -0
  80. data/ext/minimap2/tex/minimap2.bib +460 -0
  81. data/ext/minimap2/tex/minimap2.tex +724 -0
  82. data/ext/minimap2/tex/mm2-s3.sam.eval +62 -0
  83. data/ext/minimap2/tex/mm2-update.tex +240 -0
  84. data/ext/minimap2/tex/mm2.approx.eval +12 -0
  85. data/ext/minimap2/tex/mm2.eval +13 -0
  86. data/ext/minimap2/tex/natbib.bst +1288 -0
  87. data/ext/minimap2/tex/natbib.sty +803 -0
  88. data/ext/minimap2/tex/ngmlr.eval +38 -0
  89. data/ext/minimap2/tex/roc.gp +60 -0
  90. data/ext/minimap2/tex/snap-s3.sam.eval +62 -0
  91. data/ext/minimap2.patch +19 -0
  92. data/lib/minimap2/aligner.rb +4 -4
  93. data/lib/minimap2/alignment.rb +11 -11
  94. data/lib/minimap2/ffi/constants.rb +20 -16
  95. data/lib/minimap2/ffi/functions.rb +5 -0
  96. data/lib/minimap2/ffi.rb +4 -5
  97. data/lib/minimap2/version.rb +2 -2
  98. data/lib/minimap2.rb +51 -15
  99. metadata +97 -79
  100. data/lib/minimap2/ffi_helper.rb +0 -53
  101. 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.22.0
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-08-08 00:00:00.000000000 Z
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: bundler
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: :development
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: minimap2
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.2.22
167
+ rubygems_version: 3.3.3
150
168
  signing_key:
151
169
  specification_version: 4
152
170
  summary: minimap2
@@ -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
Binary file