void FeatureInvestigator::printSeed (Persistance::TextTableReport::Output& out, Feature& feature, const PositionVector& positions) { int currentField = Persistance::TextTableReport::firstFieldIndex; Persistance::TextTableReport::Data data (_seedFormat); TextWriter writer (NULL); // // print all scores Scores::Score_ptr score = feature.score (); while (score) { writer.setStream (data.getOutputStream(currentField++)); writer << (- score->log10Score ()); score = score->next (); } // // print the assignment writer.setStream (data.getOutputStream(currentField++)); writer << _parameters.langauge ().format (feature.assignment ()); // // print score params if available writer.setStream (data.getOutputStream(currentField++)); feature.score ()->writeAsText (writer); /* if (feature.scoreParameters ()) { writer << '['; feature.scoreFunction ().writeAsText (writer, feature.scoreParameters ()); writer << ']'; }*/ // // print projection details if available writer.setStream (data.getOutputStream(currentField++)); if (feature.projection ()) { writer << _parameters.langauge ().format (*feature.projection ()); } /* // // print how many seeds counted for bonf correction, if available writer.setStream (data.getOutputStream(currentField++)); if (feature.numSeedsSearched () > 0) { writer << feature.numSeedsSearched(); } */ writer.setStream (NULL); out << data; }