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

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

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

    assertThat(result.size(), greaterThan(0));
  }
示例#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();
 }