Examples of PlatformType


Examples of uk.ac.bbsrc.tgac.miso.core.data.type.PlatformType

          barcode = new String(Base64.decodeBase64(barcode));
        }
      }

      if (json.has("platform") && !"".equals(json.getString("platform"))) {
        PlatformType pt = PlatformType.get(json.getString("platform"));
        if (pt != null) {
          p = requestManager.getPoolByBarcode(barcode, pt);
        }
        else {
          p = requestManager.getPoolByBarcode(barcode);
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.type.PlatformType

    try {
      if (json.has("platformId") && !"".equals(json.getString("platformId"))) {
        Long platformId = json.getLong("platformId");
        Platform platform = requestManager.getPlatformById(platformId);
        if (platform != null) {
          PlatformType pt = platform.getPlatformType();
          List<Pool<? extends Poolable>> pools = new ArrayList<Pool<? extends Poolable>>(requestManager.listAllPoolsByPlatform(pt));
          //Collections.sort(pools, Collections.<Pool<? extends Poolable>>reverseOrder());
          Collections.sort(pools);
          for (Pool p : pools) {
            a.append("<div bind='"+p.getId()+"' onMouseOver='this.className=\"dashboardhighlight\"' onMouseOut='this.className=\"dashboard\"' class='dashboard' style='position:relative' ");
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.type.PlatformType

    return JSONUtils.JSONObjectResponse("html", b.toString());
  }

  public JSONObject changePlatformType(HttpSession session, JSONObject json) {
    String newContainerType = json.getString("platformtype");
    PlatformType pt = PlatformType.get(newContainerType);
    String cId = json.getString("container_cId");
    try {
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());

      Map<String, Object> responseMap = new HashMap<String, Object>();
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.type.PlatformType

  }

  private String getContainerOptions(SequencerReference sr) throws IOException {
    StringBuilder b = new StringBuilder();
    b.append("<span id='containerspan'>Containers: ");
    PlatformType pt = sr.getPlatform().getPlatformType();
    for (int i = 0; i < sr.getPlatform().getNumContainers(); i++) {
      b.append("<input id='container" + (i + 1) + "' name='containerselect' onchange='Container.ui.changeContainer(" + sr.getPlatform().getNumContainers() + ", \"" + pt.getKey() + "\", " + sr.getId() + ");' type='radio' value='" + (i + 1) + "'/>" + (i + 1));
    }
    b.append("</span><br/>");
    b.append("<div id='containerdiv' class='note ui-corner-all'> </div>");
    return b.toString();
  }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.type.PlatformType

  }

  public JSONObject changeContainer(HttpSession session, JSONObject json) {
    if (json.has("platform")) {
      String platform = json.getString("platform");
      PlatformType pt = PlatformType.get(platform);
      if (pt != null) {
        if (pt.equals(PlatformType.ILLUMINA)) {
          return changeIlluminaContainer(session, json);
        }
        else if (pt.equals(PlatformType.LS454)) {
          return changeLS454Container(session, json);
        }
        else if (pt.equals(PlatformType.SOLID)) {
          return changeSolidContainer(session, json);
        }
        /*
        else if (pt.equals(PlatformType.IONTORRENT)) {
          return null;
        }
        */
        else if (pt.equals(PlatformType.PACBIO)) {
          return changePacBioContainer(session, json);
        }
        else {
          return JSONUtils.SimpleJSONError("Unsupported platform type: " + platform);
        }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.type.PlatformType

  }

  public JSONObject changeChamber(HttpSession session, JSONObject json) {
    if (json.has("platform")) {
      String platform = json.getString("platform");
      PlatformType pt = PlatformType.get(platform);
      if (pt != null) {
        if (pt.equals(PlatformType.LS454)) {
          return changeLS454Chamber(session, json);
        }
        else if (pt.equals(PlatformType.SOLID)) {
          return changeSolidChamber(session, json);
        }
        else if (pt.equals(PlatformType.PACBIO)) {
          return changePacBioChamber(session, json);
        }
        else {
          return JSONUtils.SimpleJSONError("Unrecognised platform type: " + platform);
        }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.type.PlatformType

    return requestManager.listAllPlatforms();
  }

  public Collection<? extends Pool> populateAvailablePools(Experiment experiment) throws IOException {
    if (experiment.getPlatform() != null) {
      PlatformType platformType = experiment.getPlatform().getPlatformType();
      ArrayList<Pool> pools = new ArrayList<Pool>();
      for (Pool p : requestManager.listAllPoolsByPlatform(platformType)) {
        if (experiment.getPool() == null || !experiment.getPool().equals(p)) {
          pools.add(p);
        }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.type.PlatformType

      }

      Pool<? extends Poolable> p = null;
      try {
        p = dataObjectFactory.getPool();
        PlatformType pt = PlatformType.get(rs.getString("platformType"));
        p.setPlatformType(pt);

        if (pt != null) {
          Collection<? extends Poolable> poolables = listPoolableElementsByPoolId(id);
          p.setPoolableElements(poolables);
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.