Skip to content

Commit 9034633

Browse files
committed
Merge branch 'release-1.1.4'
2 parents 0c1c7de + bc9e634 commit 9034633

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>ubc.pavlab</groupId>
77
<artifactId>rdp</artifactId>
8-
<version>1.1.3</version>
8+
<version>1.1.4</version>
99

1010
<parent>
1111
<groupId>org.springframework.boot</groupId>

src/main/java/ubc/pavlab/rdp/util/Gene2GoParser.java

+12-5
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,22 @@ private static void populateAnnotations( InputStream input, Collection<Taxon> ac
9595
br.lines().map( line -> line.split( "\t" ) ).filter( values -> fastMap.containsKey( Integer.valueOf( values[0] ) ) ).forEach( values -> {
9696

9797
GeneOntologyTerm term = goService.getTerm( values[2] );
98+
99+
if ( term == null ) {
100+
log.warn( "Problem finding data for term (" + values[2] + ")" );
101+
return;
102+
}
103+
98104
Gene gene = geneService.load( Integer.valueOf( values[1] ) );
99105

100-
try {
101-
term.getDirectGenes().add( gene );
102-
gene.getTerms().add( term );
103-
} catch (NullPointerException nullE) {
104-
log.warn( "Problem finding data for gene (" + values[1] + ") and term (" + values[2] + ")" );
106+
if ( gene == null ) {
107+
log.warn( "Problem finding data for gene (" + values[1] + ")" );
108+
return;
105109
}
106110

111+
term.getDirectGenes().add( gene );
112+
gene.getTerms().add( term );
113+
107114
} );
108115
} catch (IOException e) {
109116
throw new ParseException( e.getMessage(), 0 );

src/main/resources/ehcache.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
</cache>
7474

7575
<cache name="ubc.pavlab.rdp.model.UserGene"
76-
maxEntriesLocalHeap="200"
76+
maxEntriesLocalHeap="500"
7777
eternal="false"
7878
overflowToDisk="false"
7979
timeToLiveSeconds="600"

0 commit comments

Comments
 (0)