bioinform 0.2.1 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 70e322a8657abaa2fb242f0b7774dfc3b38a1e83
4
- data.tar.gz: 65e5cdc14dec4d99cb0266d8d4bf589ef44efb99
2
+ SHA256:
3
+ metadata.gz: 9705a2bbb74be3e139c4831455d5b0e831fdba31fdc30fd2c81f62cfe4e8f3c8
4
+ data.tar.gz: 7fe03d3cb26177146233d5db6715c49f7a72338c05bbcbf35dc54b5cb7e8093b
5
5
  SHA512:
6
- metadata.gz: 10a503972ed0e5ec8f9aba819230991d9ef33704ff587e47a6b310b98f3429aa580245499b13e17f59d5023213764887cf8bf92834aed28717746acbd8a2c6ad
7
- data.tar.gz: bce479c347c8f439c6e133e14f1379b75ed855b26553059c85f2e04a04344f3c2885b44f35ac146128ecb75054b35d0267801509f21719afecc922be999b5639
6
+ metadata.gz: 502eba8b546c733d9db588c32031e60bb8e8705973520ebc778148369f049b47b360d359d4f1bb911ae4f4fef4904d72197e934b7390b867dccc1f127fdc7a89
7
+ data.tar.gz: dc2ab576eabf13d243e3e8402aaa51175bcdf50dc715bb8282e94eb029982a9360d83b4ec8c565b6eaf2e8763c2592faf41bdd633c5216744137753d3999d7b8
@@ -17,7 +17,7 @@ module Bioinform
17
17
  when Numeric
18
18
  @pseudocount
19
19
  when :log
20
- Math.log(pcm.count)
20
+ Math.log([pcm.count, 2].max)
21
21
  when :sqrt
22
22
  Math.sqrt(pcm.count)
23
23
  when Proc
@@ -16,8 +16,8 @@ module Bioinform
16
16
 
17
17
  private :motif_klasses, :motif?
18
18
 
19
- def method_missing(meth, *args, &block)
20
- result = model.public_send(meth, *args, &block)
19
+ def method_missing(meth, *args, **kwargs, &block)
20
+ result = model.public_send(meth, *args, **kwargs, &block)
21
21
  if motif?(result) && ! result.is_a?(self.class)
22
22
  self.class.new(result, name)
23
23
  else
@@ -16,7 +16,7 @@ module Bioinform
16
16
  end
17
17
 
18
18
  def need_transpose?(matrix)
19
- (matrix.size == @fix_nucleotides_number) && (matrix.first.size != 4)
19
+ (matrix.size == @fix_nucleotides_number) && (matrix.first.size != @fix_nucleotides_number)
20
20
  end
21
21
  private :need_transpose?
22
22
 
@@ -1,3 +1,3 @@
1
1
  module Bioinform
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bioinform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Vorontsov
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2014-07-20 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
12
  description: A bunch of useful classes for bioinformatics
14
13
  email:
@@ -104,7 +103,6 @@ files:
104
103
  homepage: ''
105
104
  licenses: []
106
105
  metadata: {}
107
- post_install_message:
108
106
  rdoc_options: []
109
107
  require_paths:
110
108
  - lib
@@ -119,9 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
117
  - !ruby/object:Gem::Version
120
118
  version: '0'
121
119
  requirements: []
122
- rubyforge_project:
123
- rubygems_version: 2.4.1
124
- signing_key:
120
+ rubygems_version: 3.7.2
125
121
  specification_version: 4
126
122
  summary: Classes for work with different input formats of positional matrices and
127
123
  IUPAC-words and making simple transform and statistics with them. Also module includes