gene-matcher 0.1.8 → 0.1.9
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/gene-matcher.rb +4 -2
- 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: 17b72e6c94dc3d82b5b48f8f1e223020ad32a83eaf2097cc728f4376365edd86
|
4
|
+
data.tar.gz: f4fa6a450071438398403caff25742f3164adf227cdf20586ba135516f59248c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1f1f01fae67f624e80d48b0bfc21f7e9d7372807204eac38fd4d47f599d27d4a4cf6ff425b0ebb5d7897f283768d66dca80f5deef8b5ec4c02d9af4ac6d4783
|
7
|
+
data.tar.gz: 1e64793c2c892d4dc7542505ae765f0849346b8776233f36ec0f4886981079dd42977ca556ad20acd0e1a0d79404163f901b6070cc02b848f1581691b9dd1a26
|
data/lib/gene-matcher.rb
CHANGED
@@ -15,10 +15,12 @@ class Matcher
|
|
15
15
|
def scan(target_sequence,source = {})
|
16
16
|
sw = SmithWaterman.instance
|
17
17
|
a = sw.alignment(target_sequence, @input_sequence)
|
18
|
+
puts "#{a.score} / #{a.alignment_count} = #{a.score / a.alignment_count}" if ENV["DEBUG"]
|
19
|
+
return if a.alignment_count == 0
|
20
|
+
return if a.score / a.alignment_count < @limit
|
18
21
|
a.source = {}.merge(source)
|
19
22
|
a.source[:target_sequence] = target_sequence if @reserve_target_sequence
|
20
|
-
|
21
|
-
@alignments += [a] if a.score / a.alignment_count >= @limit
|
23
|
+
@alignments += [a]
|
22
24
|
end
|
23
25
|
end
|
24
26
|
|
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.9
|
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-
|
11
|
+
date: 2023-10-03 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
|