transrate 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/transrate/transrater.rb +7 -5
- data/lib/transrate/version.rb +1 -1
- metadata +1 -1
data/lib/transrate/transrater.rb
CHANGED
@@ -2,15 +2,17 @@ module Transrate
|
|
2
2
|
|
3
3
|
class Transrater
|
4
4
|
|
5
|
-
def initialize
|
6
|
-
@assembly = Assembly.new
|
5
|
+
def initialize assembly, reference, left, right, insertsize=nil, insertsd=nil
|
6
|
+
@assembly = Assembly.new assembly
|
7
|
+
@reference = Assembly.new reference
|
7
8
|
@read_metrics = ReadMetrics.new @assembly
|
8
|
-
@comparative_metrics = ComparativeMetrics.new @
|
9
|
+
@comparative_metrics = ComparativeMetrics.new(@assembly, @reference)
|
10
|
+
self.run(left, right, insertsize, insertsd)
|
9
11
|
end
|
10
12
|
|
11
|
-
def run
|
13
|
+
def run left, right, insertsize=nil, insertsd=nil
|
12
14
|
@assembly.run
|
13
|
-
@read_metrics.run
|
15
|
+
@read_metrics.run(left, right)
|
14
16
|
@comparative_metrics.run
|
15
17
|
end
|
16
18
|
|
data/lib/transrate/version.rb
CHANGED