Ejemplo n.º 1
0
    public static Entry createEntry(String[] fields) {
      if (fields.length < 9)
        throw new IllegalArgumentException(
            "Too few fields to build a sample sheet entry.  Expecing at least 9 but found "
                + fields.length
                + ".");

      Entry e = new Entry();
      e.setFlowcellId(fields[0]);
      e.setLane(Integer.parseInt(fields[1]));
      e.setSampleId(fields[2]);
      e.setSampleRef(fields[3]);
      e.setIndex(fields[4]);
      e.setDescription(fields[5]);
      e.setControl(fields[6]);
      e.setRecipe(fields[7]);
      e.setOperator(fields[8]);
      return e;
    }