| Class | Validator |
| In: |
lib/validator.rb
lib/validator/aa_est.rb lib/validator/background.rb |
| Parent: | Object |
| Validator_to_string | = | { 'Validator::AA' => 'badAA', 'Validator::AAEst' => 'badAAEst', 'Validator::Decoy' => 'decoy', 'Validator::Transmem::Protein' => 'tmm', 'Validator::TruePos' => 'tps', 'Validator::Bias' => 'bias', 'Validator::Probability' => 'prob', 'Validator::QValue' => 'qval', :bad_aa => 'badAA', :bad_aa_est => 'badAAEst', :decoy => 'decoy', :tmm => 'tmm', :tps => 'tps', :bias => 'bias', :prob => 'prob', :qval => 'qval', } |
takes an array of validators and returns a fresh array where each has been turned into a sensible hash (with symbols as the keys!)
returns an adjusted false positive rate (a float not to drop below 0.0) based on a background of ‘false’-false positive hits to total hits. Also sets the @calculated_background attribute. Accepts floats or ints
if adding pephits in groups at a time, the entire group does not need to be queried, just the individual hit. Use this OR pephits_precision (NOT both). The initial query to this method will begin a running tally that is saved by the validator. takes either an array or a single pephit (determined by if it is a SpecID::Pep)