Skip to content

Commit

Permalink
Fixed bug where most of the annotations file was being ignored in Phe…
Browse files Browse the repository at this point in the history
…nixPrioritiser due to over-zealous attempt at cleaning up the code.
  • Loading branch information
Jules Jacobsen committed Oct 5, 2015
1 parent b3ae768 commit 057fd8c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ private void parseData(String hpoOboFile, String hpoAnnotationFile) {
* @param hpoAnnotationFile path to the file
*/
private void parseAnnotations(String hpoAnnotationFile) throws IOException {
geneId2annotations = new HashMap<>();

BufferedReader in = new BufferedReader(new FileReader(hpoAnnotationFile));
String line = null;
Expand Down Expand Up @@ -218,8 +219,6 @@ private void parseAnnotations(String hpoAnnotationFile) throws IOException {
}

List<Term> annotations;

geneId2annotations = new HashMap<>();

if (geneId2annotations.containsKey(entrez)) {
annotations = geneId2annotations.get(entrez);
Expand Down

0 comments on commit 057fd8c

Please sign in to comment.