needleman_wunsch_aligner 1.1.0 → 1.1.1
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/CHANGELOG.md +5 -1
- data/lib/needleman_wunsch_aligner.rb +8 -1
- data/lib/needleman_wunsch_aligner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3cfb68bb168cf6d0faff16a61178565d2fc7be42
|
|
4
|
+
data.tar.gz: 04b1d5f0de5919c3b04c687763161216268a4565
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e63180e926b45dc8789dcd52a6621b67f29ffa76de9371c2f54973a7d05313b5ad7daf9e4458c65fd2387f4334490ca725ea1f3b34e31f42b663619fece5ef68
|
|
7
|
+
data.tar.gz: 737d7a1dd732f92ce5a9a914741e12d2e6559f8b0f61a91023fcf6dca836761feb3a9526cea979fc2f9412cf9ceb4f8a2f87ab93b7b8faee148679d7c2f60014
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
### 1.1.
|
|
1
|
+
### 1.1.1
|
|
2
|
+
|
|
3
|
+
* Added :options argument to initializer to get access to external attrs when computing scores.
|
|
4
|
+
|
|
5
|
+
## 1.1.0
|
|
2
6
|
|
|
3
7
|
* Changed #compute_score method params: Added row and column index for performance optimizations where I may not want to compute scores for the entire matrix, but only for a narrow band around the diagonal. The width of the band is determined by the maximum expected alignment offset.
|
|
4
8
|
|
|
@@ -13,9 +13,16 @@ class NeedlemanWunschAligner
|
|
|
13
13
|
|
|
14
14
|
# @param left_seq [Array<Object>] sequence drawn at left of matrix
|
|
15
15
|
# @param top_seq [Array<Object>] sequence drawn at top of matrix
|
|
16
|
-
|
|
16
|
+
# @param options [Hash, optional] can be used to provide state to the aligner
|
|
17
|
+
# which can be used, e.g., when computing the score.
|
|
18
|
+
# One example use case is to pass in the maximum expected
|
|
19
|
+
# offset, and then not compute the entire score matrix, but
|
|
20
|
+
# only a band around the diagonal, wide enough to handle the
|
|
21
|
+
# maximum expected offset.
|
|
22
|
+
def initialize(left_seq, top_seq, options={})
|
|
17
23
|
@left_seq = left_seq
|
|
18
24
|
@top_seq = top_seq
|
|
25
|
+
@options = options
|
|
19
26
|
end
|
|
20
27
|
|
|
21
28
|
# Returns two arrays that represent the optimal alignment.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: needleman_wunsch_aligner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jo Hund
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-08-
|
|
11
|
+
date: 2016-08-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|