needleman_wunsch_aligner 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 400aaa5f217e86854b380018d7cf7c60e5ac6c46
4
- data.tar.gz: ef24f13b5c47b6ec838cdf1ee9d62586d70ebe1e
3
+ metadata.gz: 3cfb68bb168cf6d0faff16a61178565d2fc7be42
4
+ data.tar.gz: 04b1d5f0de5919c3b04c687763161216268a4565
5
5
  SHA512:
6
- metadata.gz: b23ad08d6b95c3307a69098e6c37688edf1082839c7a6f0fc4d2775dad5f0a4505891a2061f1b10203e1e28d6832d259f54b43b9bbff2718b934e322f1d4444a
7
- data.tar.gz: 07b5be3582e3b1431c28fdddf41aa86d10eb6e9bd87b815a161df502ac9d1a76f7f0221c54bb9b1cd06474c39cdb9d03d3699de865d10055db0aea9f9accec51
6
+ metadata.gz: e63180e926b45dc8789dcd52a6621b67f29ffa76de9371c2f54973a7d05313b5ad7daf9e4458c65fd2387f4334490ca725ea1f3b34e31f42b663619fece5ef68
7
+ data.tar.gz: 737d7a1dd732f92ce5a9a914741e12d2e6559f8b0f61a91023fcf6dca836761feb3a9526cea979fc2f9412cf9ceb4f8a2f87ab93b7b8faee148679d7c2f60014
@@ -1,4 +1,8 @@
1
- ### 1.1.0
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
- def initialize(left_seq, top_seq)
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.
@@ -1,3 +1,3 @@
1
1
  class NeedlemanWunschAligner
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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-30 00:00:00.000000000 Z
11
+ date: 2016-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler