scbi_cominer 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.0.7 2012-10-04
2
+
3
+ Published graph methods
4
+
1
5
  === 0.0.6 2012-09-26
2
6
 
3
7
  Fixed offset and clear starts
@@ -5,7 +5,7 @@ require 'entropy_function'
5
5
 
6
6
  class Cominer
7
7
 
8
- attr_accessor :regions,:snps,:position_table, :freq_table, :single_points
8
+ attr_accessor :regions,:snps,:position_table, :freq_table, :single_points, :entropy_function
9
9
 
10
10
  def initialize(contig)
11
11
 
@@ -21,18 +21,18 @@ class Cominer
21
21
  # puts freq_table.inspect
22
22
  # exit
23
23
  #
24
- ef = EntropyFunction.new(@freq_table)
24
+ @entropy_function = EntropyFunction.new(@freq_table)
25
25
 
26
- @regions=ef.regions
27
- @snps=ef.snps
28
- @single_points=ef.single_points
26
+ @regions=@entropy_function.regions
27
+ @snps=@entropy_function.snps
28
+ @single_points=@entropy_function.single_points
29
29
 
30
30
  @freq_table.position_table.delete('-')
31
31
 
32
32
  @position_table = @freq_table.position_table
33
+
33
34
 
34
- end
35
-
35
+ end
36
36
 
37
37
 
38
38
  end
data/lib/scbi_cominer.rb CHANGED
@@ -8,5 +8,5 @@ $: << File.join(File.dirname(__FILE__),File.basename(__FILE__,File.extname(__FIL
8
8
  require 'cominer.rb'
9
9
 
10
10
  module ScbiCominer
11
- VERSION = '0.0.6'
11
+ VERSION = '0.0.7'
12
12
  end
@@ -40,6 +40,8 @@ class TestScbiCominer < Test::Unit::TestCase
40
40
  puts cominer_stats.snps.to_json
41
41
 
42
42
  puts cominer_stats.single_points.to_json
43
+
44
+ cominer_stats.entropy_function.graph('/tmp/graph'+contig.name+'.png')
43
45
 
44
46
  end
45
47
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: scbi_cominer
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dario Guerrero
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-09-26 00:00:00 Z
13
+ date: 2012-10-04 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: scbi_ace