Package uk.ac.bbsrc.tgac.miso.core.util

Examples of uk.ac.bbsrc.tgac.miso.core.util.UnicodeReader


    try {
      if (statusXml != null && !"".equals(statusXml)) {
        String runDirRegex = "([A-z0-9\\-]+)_([0-9]{8})_(.*)";
        Pattern runRegex = Pattern.compile(runDirRegex);
        Document statusDoc = SubmissionUtils.emptyDocument();
        SubmissionUtils.transform(new UnicodeReader(statusXml), statusDoc);

        String runName;
        if (statusDoc.getDocumentElement().getTagName().equals("error")) {
          runName = (statusDoc.getElementsByTagName("RunName").item(0).getTextContent());
        }
View Full Code Here


  }

  public void parseStatusXml(String statusXml) {
    try {
      Document statusDoc = SubmissionUtils.emptyDocument();
      SubmissionUtils.transform(new UnicodeReader(statusXml), statusDoc);
      String runDirRegex = "([A-Za-z0-9]+)_([0-9]{8})_(.*)";
      Pattern runRegex = Pattern.compile(runDirRegex);

      if (statusDoc.getDocumentElement().getTagName().equals("error")) {
        String runName = statusDoc.getElementsByTagName("RunName").item(0).getTextContent();
View Full Code Here

  public IlluminaRun(String statusXml, User user) {
    try {
      Document statusDoc = SubmissionUtils.emptyDocument();
      if (statusXml != null && !"".equals(statusXml)) {
        SubmissionUtils.transform(new UnicodeReader(statusXml), statusDoc);

        String runName = (statusDoc.getElementsByTagName("RunName").item(0).getTextContent());
        setPairedEnd(false);

        if (!statusDoc.getDocumentElement().getTagName().equals("error")) {
View Full Code Here

  }

  public void parseStatusXml(String statusXml) {
    try {
      Document statusDoc = SubmissionUtils.emptyDocument();
      SubmissionUtils.transform(new UnicodeReader(statusXml), statusDoc);

      if (statusDoc.getDocumentElement().getTagName().equals("error")) {
        String runName = statusDoc.getElementsByTagName("RunName").item(0).getTextContent();
        String runDirRegex = "(\\d{6})_([A-z0-9]+)_(\\d+)_[A-z0-9_]*";
        Matcher m = Pattern.compile(runDirRegex).matcher(runName);
View Full Code Here

              if (r.getSequencerReference() != null) {
                if (run.has("runparams")) {
                  try {
                    Document paramsDoc = SubmissionUtils.emptyDocument();
                    SubmissionUtils.transform(new UnicodeReader(run.getString("runparams")), paramsDoc);

                    Element runInfo = (Element)paramsDoc.getElementsByTagName("run").item(0);
                    String runDesc = runInfo.getElementsByTagName("shortName").item(0).getTextContent();
                    r.setDescription(runDesc);
View Full Code Here

            else {
              status.setHealth(HealthType.Running);
            }

            Document statusDoc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
            SubmissionUtils.transform(new UnicodeReader(j.getString("xml")), statusDoc);
            String runStarted = statusDoc.getElementsByTagName("RunStarted").item(0).getTextContent();
            status.setStartDate(new SimpleDateFormat("EEEE, MMMMM dd, yyyy h:mm aaa").parse(runStarted));
            status.setInstrumentName(statusDoc.getElementsByTagName("InstrumentName").item(0).getTextContent());
            status.setRunName(statusDoc.getElementsByTagName("RunName").item(0).getTextContent());
            s.add(status);
View Full Code Here

            else {
              status.setHealth(HealthType.Running);
            }

            Document statusDoc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
            SubmissionUtils.transform(new UnicodeReader(j.getString("xml")), statusDoc);
            String runStarted = statusDoc.getElementsByTagName("RunStarted").item(0).getTextContent();
            status.setStartDate(new SimpleDateFormat("EEEE, MMMMM dd, yyyy h:mm aaa").parse(runStarted));
            status.setInstrumentName(statusDoc.getElementsByTagName("InstrumentName").item(0).getTextContent());
            status.setRunName(runName);
            return status;
View Full Code Here

            else {
              status.setHealth(HealthType.Running);
            }

            Document statusDoc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
            SubmissionUtils.transform(new UnicodeReader(j.getString("xml")), statusDoc);
            String runStarted = statusDoc.getElementsByTagName("date").item(0).getTextContent();
            status.setStartDate(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").parse(runStarted));
            status.setInstrumentName(statusDoc.getElementsByTagName("serialNumber").item(0).getTextContent());
            Node n = statusDoc.getElementsByTagName("run").item(0);
            for (int i = 0; i < n.getChildNodes().getLength(); i++) {
View Full Code Here

            }
            else {
              status.setHealth(HealthType.Running);
            }
            Document statusDoc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
            SubmissionUtils.transform(new UnicodeReader(j.getString("xml")), statusDoc);
            String runStarted = statusDoc.getElementsByTagName("date").item(0).getTextContent();
            status.setStartDate(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").parse(runStarted));
            status.setInstrumentName(statusDoc.getElementsByTagName("serialNumber").item(0).getTextContent());
            Node n = statusDoc.getElementsByTagName("run").item(0);
            for (int i = 0; i < n.getChildNodes().getLength(); i++) {
View Full Code Here

            RunArray ra = solidService.getSolidPort().getRun(runName, machineName);
            if (ra != null && !ra.getItem().isEmpty()) {
              try {
                String statusXml = ra.getItem().get(0).getXml();
                Document statusDoc = SubmissionUtils.emptyDocument();
                SubmissionUtils.transform(new UnicodeReader(statusXml), statusDoc);

                run.put("runName", runName);
                run.put("fullPath", rootFile.getAbsolutePath());
                run.put("status", statusXml);
View Full Code Here

TOP

Related Classes of uk.ac.bbsrc.tgac.miso.core.util.UnicodeReader

Copyright © 2018 www.massapicom. 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.