Skip to content

Commit

Permalink
Removed deprecated parameter 'description_score_relative_description_…
Browse files Browse the repository at this point in the history
…frequency_weight' from all example and test input files (YMLs).
  • Loading branch information
asishallab committed Jan 5, 2015
1 parent 1db29f3 commit e415359
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 16 deletions.
1 change: 0 additions & 1 deletion batcher_input_example.yml
Expand Up @@ -7,7 +7,6 @@ batch_ymls_dir: ./test/resources/batch_ymls
token_score_bit_score_weight: 0.5
token_score_database_score_weight: 0.3
token_score_overlap_score_weight: 0.2
description_score_relative_description_frequency_weight: 0.6

blast_dbs:
swissprot:
Expand Down
14 changes: 5 additions & 9 deletions src/ahrd/view/OutputWriter.java
Expand Up @@ -30,12 +30,10 @@ public void writeOutput() throws IOException {
// Column-Names:
bw.write("# AHRD-Version " + AHRD.VERSION + "\n");
bw.write("\n");
bw
.write("Protein-Accession\tBlast-Hit-Accession\tAHRD-Quality-Code\tHuman-Readable-Description\tInterpro-ID (Description)\tGene-Ontology-ID (Name)");
bw.write("Protein-Accession\tBlast-Hit-Accession\tAHRD-Quality-Code\tHuman-Readable-Description\tInterpro-ID (Description)\tGene-Ontology-ID (Name)");

if (getSettings().isInTrainingMode()) {
bw
.write("\tHRD-Length\tReference-Description\tRef-Lenght\tEvaluation-Score\tDiff-to-bestCompetitor\tTPR\tFPR");
bw.write("\tHRD-Length\tReference-Description\tRef-Lenght\tEvaluation-Score\tDiff-to-bestCompetitor\tTPR\tFPR");
}
if (getSettings().getWriteBestBlastHitsToOutput()) {
bw.write(buildBestBlastHitsHeader());
Expand All @@ -44,13 +42,11 @@ public void writeOutput() throws IOException {
bw.write("\t\"Tokens (tkn->score)\"");
}
if (getSettings().getWriteScoresToOutput()) {
bw
.write("\tSum(Token-Scores)\tTokenHighScore\tCorrection-Factor\tGO-Score\tLexical-Score\tRelativeBitScore");
bw.write("\tSum(Token-Scores)\tTokenHighScore\tCorrection-Factor\tGO-Score\tLexical-Score\tRelativeBitScore");
}
if (getSettings().getPathToBlast2GoAnnotations() != null
&& !getSettings().getPathToBlast2GoAnnotations().equals("")) {
bw
.write("\tBlast2GO-Annotation\tBlast2GO-Length\tBlast2GO-Evaluation-Score");
bw.write("\tBlast2GO-Annotation\tBlast2GO-Length\tBlast2GO-Evaluation-Score");
}
if (getSettings().doFindHighestPossibleEvaluationScore()) {
bw.write("\tHighest-Blast-Hit-Evaluation-Score");
Expand Down Expand Up @@ -207,7 +203,7 @@ public String buildTrainerColumns(Protein prot) {
* Append the following columns to the current CSV-Row:
* sum_of_all_token_scores, token_high_score, correction_factor, go_score,
* lexical_score, rel_bit_score, desc_line_frequency,
* max_desc_line_frequency, pattern_factor
* max_desc_line_frequency
*
* @note: Printing out these values may slow down the running-time, as these
* values are not necessarily stored in memory.
Expand Down
1 change: 0 additions & 1 deletion test/resources/ahrd_input.yml
Expand Up @@ -31,7 +31,6 @@ gene_ontology_result: ./test/resources/go_results.csv
token_score_bit_score_weight: 0.5
token_score_database_score_weight: 0.3
token_score_overlap_score_weight: 0.2
description_score_relative_description_frequency_weight: 0.6
write_token_set_to_output: false
write_best_blast_hits_to_output: true
write_scores_to_output: false
Expand Down
1 change: 0 additions & 1 deletion test/resources/ahrd_input_test_run.yml
Expand Up @@ -30,5 +30,4 @@ gene_ontology_result: ./test/resources/go_results.csv
token_score_bit_score_weight: 0.5
token_score_database_score_weight: 0.3
token_score_overlap_score_weight: 0.2
description_score_relative_description_frequency_weight: 0.6
output: ./test/ahrd_output.csv
1 change: 0 additions & 1 deletion test/resources/batcher_input.yml
Expand Up @@ -7,7 +7,6 @@ batch_ymls_dir: ./solyc_test_run/batch_ymls/
token_score_bit_score_weight: 0.5
token_score_database_score_weight: 0.3
token_score_overlap_score_weight: 0.2
description_score_relative_description_frequency_weight: 0.6

blast_dbs:
swissprot:
Expand Down
1 change: 0 additions & 1 deletion test/resources/batcher_input_test.yml
Expand Up @@ -7,7 +7,6 @@ batch_ymls_dir: ./test/resources/batch_ymls
token_score_bit_score_weight: 0.5
token_score_database_score_weight: 0.3
token_score_overlap_score_weight: 0.2
description_score_relative_description_frequency_weight: 0.6
no_start_positions_in_parameter_space: 10

blast_dbs:
Expand Down
1 change: 0 additions & 1 deletion test/resources/scores_test/ahrd_input.yml
Expand Up @@ -31,7 +31,6 @@ gene_ontology_result: ./test/resources/empty_file.txt
token_score_bit_score_weight: 0.5
token_score_database_score_weight: 0.3
token_score_overlap_score_weight: 0.2
description_score_relative_description_frequency_weight: 0.6
write_token_set_to_output: false
write_best_blast_hits_to_output: false
write_scores_to_output: true
Expand Down
1 change: 0 additions & 1 deletion test/resources/trainer_input.yml
Expand Up @@ -32,7 +32,6 @@ gene_ontology_result: ./test/resources/go_results.csv
token_score_bit_score_weight: 0.5
token_score_database_score_weight: 0.3
token_score_overlap_score_weight: 0.2
description_score_relative_description_frequency_weight: 0.6
output: ./test/ahrd_output.csv
path_log: ./test/sim_anneal_path_log.csv
remember_simulated_annealing_path: true

0 comments on commit e415359

Please sign in to comment.