Exemple #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;
  }
Exemple #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();
  }
Exemple #3
0
 @Override
 public void close() throws IOException {
   baselineExpressionsKryoReader.close();
 }