specs/validator/transmem_spec.rb in mspire-0.3.1 vs specs/validator/transmem_spec.rb in mspire-0.3.9

- old
+ new

@@ -32,10 +32,11 @@ @peps[5].prots = [@prots[4], @prots[8]] # y @peps[6].prots = [@prots[8]] # nil pep @peps[7].prots = [@prots[8], @prots[9]] # nil pep @validator = klass.new(@toppred_file) + @validator.false_to_total_ratio = 1.0 end it_should_behave_like 'a validator' it 'gives correct precision with false ratio (across all option combinations)' do @@ -78,10 +79,10 @@ def calc_precision(norm, trans) prec = norm.to_f / (norm + trans) end it 'can calculate precision incrementally' do - val = klass.new(@toppred_file, :min_num_tms => 2) + val = klass.new(@toppred_file, :min_num_tms => 2, :false_to_total_ratio => 1.0) # usually we'd update the false_to_total_ratio, but not bothering for test # here we HAVE to set the status hash before hand... (we could redo this # section) val.transmem_status_hash = val.create_transmem_status_hash(@peps)