示例#1
0
  @Inject
  public GuysDataForGeneController(
      AnalyticsSearchService analyticsSearchService,
      SpeciesFactory speciesFactory,
      SingleCellFileHub singleCellFileHub)
      throws URISyntaxException, IOException {
    this.analyticsSearchService = analyticsSearchService;
    this.SPECIES_IN_GUYS_EXPERIMENT = speciesFactory.create("mus musculus");
    ImmutableMap.Builder<String, String> b = new ImmutableMap.Builder<>();

    for (String[] bits : singleCellFileHub.getGuysIdentifiers().get().readAll()) {
      if (bits.length == 2) {
        b.put(bits[1], bits[0]);
      } else {
        throw new IllegalStateException("Bad line in file: " + Arrays.deepToString(bits));
      }
    }
    guysIdentifiersPerEnsemblId = b.build();
  }
示例#2
0
 @Before
 public void setUp() {
   species = speciesFactory.create("oryza sativa");
 }