Skip to content

Commit

Permalink
Merge branch 'release-1.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobsonMT committed Jun 26, 2018
2 parents 0c1c7de + bc9e634 commit 9034633
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>ubc.pavlab</groupId>
<artifactId>rdp</artifactId>
<version>1.1.3</version>
<version>1.1.4</version>

<parent>
<groupId>org.springframework.boot</groupId>
Expand Down
17 changes: 12 additions & 5 deletions src/main/java/ubc/pavlab/rdp/util/Gene2GoParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,22 @@ private static void populateAnnotations( InputStream input, Collection<Taxon> ac
br.lines().map( line -> line.split( "\t" ) ).filter( values -> fastMap.containsKey( Integer.valueOf( values[0] ) ) ).forEach( values -> {

GeneOntologyTerm term = goService.getTerm( values[2] );

if ( term == null ) {
log.warn( "Problem finding data for term (" + values[2] + ")" );
return;
}

Gene gene = geneService.load( Integer.valueOf( values[1] ) );

try {
term.getDirectGenes().add( gene );
gene.getTerms().add( term );
} catch (NullPointerException nullE) {
log.warn( "Problem finding data for gene (" + values[1] + ") and term (" + values[2] + ")" );
if ( gene == null ) {
log.warn( "Problem finding data for gene (" + values[1] + ")" );
return;
}

term.getDirectGenes().add( gene );
gene.getTerms().add( term );

} );
} catch (IOException e) {
throw new ParseException( e.getMessage(), 0 );
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/ehcache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
</cache>

<cache name="ubc.pavlab.rdp.model.UserGene"
maxEntriesLocalHeap="200"
maxEntriesLocalHeap="500"
eternal="false"
overflowToDisk="false"
timeToLiveSeconds="600"
Expand Down

0 comments on commit 9034633

Please sign in to comment.