Examples of SequencerInterrogator


Examples of uk.ac.bbsrc.tgac.miso.core.service.integration.strategy.interrogator.SequencerInterrogator

    if (sr != null) {
      if (!sr.getPlatform().getPlatformType().equals(PlatformType.LS454)) {
        throw new IOException("Trying to interrogate a " + sr.getPlatform().getPlatformType().getKey() + " sequencer reference with a 454 strategy");
      }
      try {
        SequencerInterrogator context = SequencerInterrogatorFactory.getSequencerInterrogator(sr);

        model.put("stats", context.listAllStatus());
        model.put("referenceName", sr.getName());
        model.put("referenceId", sr.getId());
      }
      catch (InterrogationException e) {
        model.put("error", MisoWebUtils.generateErrorDivMessage("Cannot retrieve status information for the given sequencer reference: " + sr.getName(), e.getMessage()));
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.service.integration.strategy.interrogator.SequencerInterrogator

    if (sr != null) {
      if (!sr.getPlatform().getPlatformType().equals(PlatformType.LS454)) {
        throw new IOException("Trying to interrogate a " + sr.getPlatform().getPlatformType().getKey() + " sequencer reference with a 454 strategy");
      }
      try {
        SequencerInterrogator context = SequencerInterrogatorFactory.getSequencerInterrogator(sr);
        Status status = context.getRunStatus(runName);
        if (status != null) {
          model.put("referenceName", sr.getName());
          model.put("referenceId", sr.getId());
          model.put("runId", requestManager.getRunByAlias(runName).getId());
          model.put("runName", runName);
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.service.integration.strategy.interrogator.SequencerInterrogator

   * @return SequencerInterrogator
   * @throws InterrogationException when an unsupported PlatformType is specified
   */
  public static SequencerInterrogator getSequencerInterrogator(SequencerReference sr) throws InterrogationException {
    if (sr.getPlatform().getPlatformType().equals(PlatformType.ILLUMINA)) {
      return new SequencerInterrogator(new IlluminaSequencerInterrogationStrategy(), sr);
    }
    else if (sr.getPlatform().getPlatformType().equals(PlatformType.LS454)) {
      return new SequencerInterrogator(new LS454SequencerInterrogationStrategy(), sr);
    }
    else if (sr.getPlatform().getPlatformType().equals(PlatformType.SOLID)) {
      return new SequencerInterrogator(new SolidSequencerInterrogationStrategy(), sr);
    }
    else if (sr.getPlatform().getPlatformType().equals(PlatformType.IONTORRENT)) {
      //return new SequencerInterrogator(new SolidSequencerInterrogationStrategy(), sr);
      throw new InterrogationException("Unsupported PlatformType");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.