gene-matcher 0.1.1 → 0.1.3
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 +4 -4
- data/lib/alignment.rb +16 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 542591804860aefbbbefe0ff8fb0bc0ed35175d21f1588cf79a3c3d20ddeadf1
|
4
|
+
data.tar.gz: 70a9445149ee4773105245aec782abd46d47987af67107af290ee784114546d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 228c3c394ee195c98539b864ad792b992b126b06888ade93608c20b34084881efbead34160e2ca511ce98058dc658c05bca39de90009b82216a0bc749238b593
|
7
|
+
data.tar.gz: 8dbda54da5dadd0326b2e9f88f327fa4227f1d16055a1a2e971922c7e76364727eefd9a5335b5e96ff8215e144c20e6e669bf6fd64917935bed43888bf4fe41f
|
data/lib/alignment.rb
CHANGED
@@ -3,7 +3,8 @@ class Alignment
|
|
3
3
|
|
4
4
|
BLANK = "-"
|
5
5
|
|
6
|
-
def initialize
|
6
|
+
def initialize(h=nil)
|
7
|
+
return init_from_hash(h) if h
|
7
8
|
# スコア
|
8
9
|
@score = 0
|
9
10
|
# 検索対象(データベースに入っていた)配列
|
@@ -24,6 +25,20 @@ class Alignment
|
|
24
25
|
@source = ""
|
25
26
|
end
|
26
27
|
|
28
|
+
def init_from_hash(h)
|
29
|
+
# 引数のハッシュから初期化
|
30
|
+
@score = h["score"]
|
31
|
+
@alignmentI = h["alignmentI"]
|
32
|
+
@alignmentJ = h["alignmentJ"]
|
33
|
+
@startI = h["startI"]
|
34
|
+
@startJ = h["startJ"]
|
35
|
+
@endI = h["endI"]
|
36
|
+
@endJ = h["endJ"]
|
37
|
+
@reversed = h["reversed"]
|
38
|
+
@aside = h["aside"]
|
39
|
+
@source = h["source"]
|
40
|
+
end
|
41
|
+
|
27
42
|
# 二つの配列の一致部分と不一致部分を表した文字列を返す。
|
28
43
|
# ex. AGTCAAAAAAAAA- :...:::::::::. AT-TAAAAAAAAAG
|
29
44
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gene-matcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ITO Yosei
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Algorithm for determining similar regions between nucleic acid sequences.
|
14
14
|
email: y-itou@lumber-mill.co.jp
|