Skip to content
This repository was archived by the owner on Aug 3, 2019. It is now read-only.

Commit f42559b

Browse files
Luis Francisco Hernández SánchezLuis Francisco Hernández Sánchez
authored andcommitted
Search result shows topLevelPathways as their own topLevelPathways. Updated iReactions.
1 parent d0e76ce commit f42559b

File tree

7 files changed

+174
-69
lines changed

7 files changed

+174
-69
lines changed

src/no/uib/pap/methods/analysis/ora/AnalysisTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
import com.google.common.collect.ImmutableMap;
44
import com.google.common.collect.ImmutableSetMultimap;
55
import no.uib.pap.methods.search.Search;
6-
import no.uib.pap.model.MessageStatus;
7-
import no.uib.pap.model.Pathway;
8-
import no.uib.pap.model.Proteoform;
9-
import no.uib.pap.model.ProteoformFormat;
6+
import no.uib.pap.model.*;
107
import org.apache.commons.lang3.tuple.MutablePair;
118
import org.apache.commons.lang3.tuple.Pair;
129
import org.junit.jupiter.api.AfterEach;
@@ -30,7 +27,7 @@ class AnalysisTest {
3027
static HashSet<String> hitProteins = null;
3128
static HashSet<String> hitPathways = null;
3229

33-
private static ImmutableMap<String, String> iReactions; // Reaction stId to Reaction displayName
30+
private static ImmutableMap<String, Reaction> iReactions; // Reaction stId to Reaction displayName
3431
private static ImmutableMap<String, Pathway> iPathways; // Pathway stId to Pathway instance
3532
private static ImmutableMap<String, String> iProteins; // Protein accession (UniProt) to name
3633
private static ImmutableSetMultimap<String, String> imapGenesToProteins = null;
@@ -48,7 +45,7 @@ class AnalysisTest {
4845

4946
@BeforeAll
5047
static void loadStaticMapping() {
51-
iReactions = (ImmutableMap<String, String>) getSerializedObject("iReactions.gz");
48+
iReactions = (ImmutableMap<String, Reaction>) getSerializedObject("iReactions.gz");
5249
iPathways = (ImmutableMap<String, Pathway>) getSerializedObject("iPathways.gz");
5350
iProteins = (ImmutableMap<String, String>) getSerializedObject("iProteins.gz");
5451
imapGenesToProteins = (ImmutableSetMultimap<String, String>) getSerializedObject("imapGenesToProteins.gz");

src/no/uib/pap/methods/search/Search.java

Lines changed: 168 additions & 59 deletions
Large diffs are not rendered by default.

src/no/uib/pap/methods/search/SearchTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class SearchTest {
3131
static HashSet<String> hitProteins = null;
3232
static HashSet<String> hitPathways = null;
3333

34-
private static ImmutableMap<String, String> iReactions; // Reaction stId to Reaction displayName
34+
private static ImmutableMap<String, Reaction> iReactions; // Reaction stId to Reaction displayName
3535
private static ImmutableMap<String, Pathway> iPathways; // Pathway stId to Pathway instance
3636
private static ImmutableMap<String, String> iProteins; // Protein accession (UniProt) to name
3737
private static ImmutableSetMultimap<String, String> imapGenesToProteins = null;
@@ -49,7 +49,7 @@ class SearchTest {
4949

5050
@BeforeAll
5151
static void loadStaticMapping() {
52-
iReactions = (ImmutableMap<String, String>) getSerializedObject("iReactions.gz");
52+
iReactions = (ImmutableMap<String, Reaction>) getSerializedObject("iReactions.gz");
5353
iPathways = (ImmutableMap<String, Pathway>) getSerializedObject("iPathways.gz");
5454
iProteins = (ImmutableMap<String, String>) getSerializedObject("iProteins.gz");
5555
imapGenesToProteins = (ImmutableSetMultimap<String, String>) getSerializedObject("imapGenesToProteins.gz");
@@ -61,9 +61,8 @@ static void loadStaticMapping() {
6161
imapProteoformsToReactions = (ImmutableSetMultimap<Proteoform, String>) getSerializedObject("imapProteoformsToReactions.gz");
6262
// imapRsIdsToProteins = (ImmutableSetMultimap<String,String>) getSerializedObject("imapRsIdsToProteins.gz");
6363
// imapChrBpToProteins = (ImmutableSetMultimap<String,String>) getSerializedObject("imapChrBpToProteins.gz");
64-
imapReactionsToParticipants = (ImmutableSetMultimap<String, String>) getSerializedObject("imapReactionsToParticipants.gz");
6564
imapProteinsToComplexes = (ImmutableSetMultimap<String, String>) getSerializedObject("imapProteinsToComplexes.gz");
66-
imapComplexesToParticipants = (ImmutableSetMultimap<String, String>) getSerializedObject("imapComplexesToParticipants.gz");
65+
imapComplexesToParticipants = (ImmutableSetMultimap<String, String>) getSerializedObject("imapComplexesToComponents.gz");
6766
}
6867

6968
@BeforeEach

testResources/iReactions.gz

282 KB
Binary file not shown.
File renamed without changes.
-193 KB
Binary file not shown.
72.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)