class GeneValidator::ValidationTest
This is an abstract class extended by all validation classes
Attributes
cli_name[RW]
description[RW]
header[RW]
hits[RW]
prediction[RW]
run_time[RW]
short_header[RW]
type[RW]
validation_report[RW]
Public Class Methods
new(prediction, hits = nil, *_argv)
click to toggle source
Initilizes the object Params: type
: type of the predicted sequence (:nucleotide or :protein) prediction
: a Sequence
object representing the blast query hits
: a vector of Sequence
objects (representing blast hits) argv
: aditional arguments if needed
# File lib/genevalidator/validation_test.rb, line 26 def initialize(prediction, hits = nil, *_argv) @type = config[:type] @prediction = prediction @hits = hits @short_header = 'NewVal' @header = 'New Validation' @run_time = 0 @cli_name = 'all' @description = 'No description available.' @validation_report = ValidationReport.new('Not enough evidence') end
Public Instance Methods
run()
click to toggle source
# File lib/genevalidator/validation_test.rb, line 38 def run raise 'run method should be implemented by all classes that extend' \ ' ValidationTest' end