Esempio n. 1
0
  @Test
  public void searchBioentityIdentifiers() {
    ImmutableSet<String> result =
        subject.searchBioentityIdentifiers(query, condition, species.getReferenceName());

    assertThat(result.size(), greaterThan(0));
  }
Esempio n. 2
0
  @Test
  public void getBioentityIdentifiersForSpecies() {
    Collection<String> result =
        subject.getBioentityIdentifiersForSpecies(species.getReferenceName());

    assertThat(result.size(), greaterThan(100));
  }
Esempio n. 3
0
  @Test
  public void fetchExperimentTypes3() {
    ImmutableSet<String> result =
        subject.fetchExperimentTypes(query, condition, species.getReferenceName());

    assertThat(result.size(), greaterThan(0));
  }
Esempio n. 4
0
 private Set<String> getGuysIdentifiers(SemanticQuery query) {
   ImmutableSet.Builder<String> b = ImmutableSet.builder();
   for (String bioentityIdentifier :
       analyticsSearchService.searchBioentityIdentifiers(
           query, SemanticQuery.create(), SPECIES_IN_GUYS_EXPERIMENT.getReferenceName())) {
     if (guysIdentifiersPerEnsemblId.containsKey(bioentityIdentifier)) {
       b.add(guysIdentifiersPerEnsemblId.get(bioentityIdentifier));
     }
   }
   return b.build();
 }