Example #1
0
  @Override
  public T readNext() {
    T geneProfile;

    do {
      if (!baselineExpressionsKryoReader.readLine()) {
        return null;
      }
      geneProfile =
          buildObjectFromValues(
              baselineExpressionsKryoReader.getGeneId(),
              baselineExpressionsKryoReader.getGeneName(),
              baselineExpressionsKryoReader.getExpressions());

    } while (geneProfile == null);

    return geneProfile;
  }
Example #2
0
  protected KryoInputStream(
      BaselineExpressionsKryoReader baselineExpressionsKryoReader,
      String experimentAccession,
      ExpressionsRowDeserializerBuilder expressionsRowDeserializerBuilder) {
    this.baselineExpressionsKryoReader = baselineExpressionsKryoReader;

    String[] firstLine = baselineExpressionsKryoReader.rewindAndReadAssays();
    String[] headersWithoutGeneIdColumn = removeGeneIDAndNameColumns(firstLine);
    expressionsRowRawDeserializer =
        expressionsRowDeserializerBuilder
            .forExperiment(experimentAccession)
            .withHeaders(headersWithoutGeneIdColumn)
            .build();
  }
Example #3
0
 @Override
 public void close() throws IOException {
   baselineExpressionsKryoReader.close();
 }