Examples of AnalyzedMatrix


Examples of org.cipres.treebase.domain.study.AnalyzedMatrix

    Map<Long, Boolean> selectedTreeBlocks = new HashMap<Long,Boolean>();
    Map<Long, Boolean> incompleteTreeBlocks = new HashMap<Long,Boolean>();

    for (AnalyzedData data : selectedData) {
      if (data instanceof AnalyzedMatrix) {
        AnalyzedMatrix analyzedMatrix = (AnalyzedMatrix) data;
        selectedMatrices.put(analyzedMatrix.getMatrix().getId(), analyzedMatrix
          .isInputData());
      } else if (data instanceof AnalyzedTree) {
        AnalyzedTree analyzedTree = (AnalyzedTree) data;
        selectedTrees.put(analyzedTree.getTree().getId(), analyzedTree.isInputData());
        TreeBlock treeBlock = analyzedTree.getTree().getTreeBlock();
View Full Code Here

Examples of org.cipres.treebase.domain.study.AnalyzedMatrix

        Matrix matrix = mMatrixService.findByID(editFieldCommand.getMatrix().getId());
        matrix.setTitle(editFieldCommand.getMatrix().getTitle());
        mMatrixService.update(matrix);
        if (!editFieldCommand.getChecked()) continue; // skip current iteration if not
        // checked
        AnalyzedMatrix analyzedMatrix = new AnalyzedMatrix();
        analyzedMatrix.setInput(input);
        analyzedMatrix.setMatrix(matrix);
        analysisStep.addAnalyzedData(analyzedMatrix);
        mAnalysisStepService.update(analysisStep);
      }// end for
    } else if (dataType.equals(Constants.TREE_KEY)) {
      List<EditFieldCommand> treeList = data.getTreeList();
View Full Code Here

Examples of org.cipres.treebase.domain.study.AnalyzedMatrix

      { // handle INPUT_MATRIX and OUTPUT_TREE in each ANALYSIS section
        TreeBlock theTreeBlock = null;
        for (ValueSection ioSection : an.getIOSections()) {
          AnalyzedData theData;
          if (ioSection.label.equals("INPUT_MATRIX")) {
            AnalyzedMatrix theMatrix = new AnalyzedMatrix();
            theMatrix.setInput(true);
            String matrixID = ioSection.getsval("matrix_id");
           
            Matrix matrixData = matrices.get(matrixID);
                 
            if (matrixData == null) {
              warn("Matrix " + matrixID + "is used in analysis " + an.getString("analysis_id") + " but is not listed in any MATRIX section for its study");
              return new ValueNone();
            }

            matrixData.setStudy(theStudy);
            ContextManager.getTaxonLabelService().updateStudyForAllLabels(matrixData, theStudy);
            matrixData.setTB1MatrixID(matrixID);
            ContextManager.getMatrixService().save(matrixData);
            theSubmission.addMatrixIfNecessary(matrixData);
            ContextManager.getSubmissionService().save(theSubmission);
            theMatrix.setMatrix(matrixData);
            theData = theMatrix;
          } else if (ioSection.label.equals("OUTPUT_TREE")) {
         
            if (theTreeBlock == null) {
              theTreeBlock = new TreeBlock();
View Full Code Here

Examples of org.cipres.treebase.domain.study.AnalyzedMatrix

          BeanUtils.copyProperties(analyzedDataCommand, analyzedData);
          String inputOutput = (analyzedData.isInputData()) ? ("Input") : ("Output");
          analyzedDataCommand.setInputOutputType(inputOutput);

          if (analyzedData instanceof AnalyzedMatrix) {
            AnalyzedMatrix analyzedMatrix = (AnalyzedMatrix) analyzedData;
            analyzedDataCommand.setDataType(Constants.MATRIX_KEY);
            analyzedDataCommand.setDisplayName(analyzedMatrix.getMatrix().getTitle());
            analyzedDataCommand.setId(analyzedMatrix.getId());
            analyzedDataCommand.setDataId(analyzedMatrix.getMatrix().getId());
          } else if (analyzedData instanceof AnalyzedTree) {
            AnalyzedTree analyzedTree = (AnalyzedTree) analyzedData;
            analyzedDataCommand.setDataType(Constants.TREE_KEY);
            analyzedDataCommand.setDisplayName(analyzedTree.getTree().getLabel());
            analyzedDataCommand.setId(analyzedTree.getId());
View Full Code Here

Examples of org.cipres.treebase.domain.study.AnalyzedMatrix

      analyzedDataCommand = new AnalyzedDataCommand();
      String inputOutput = (data.isInputData()) ? ("Input") : ("Output");
      analyzedDataCommand.setInputOutputType(inputOutput);

      if (data instanceof AnalyzedMatrix) {
        AnalyzedMatrix analyzedMatrix = (AnalyzedMatrix) data;
        analyzedDataCommand.setDataType(Constants.MATRIX_KEY);
        analyzedDataCommand.setDisplayName(analyzedMatrix.getMatrix().getTitle());
        analyzedDataCommand.setId(analyzedMatrix.getId());
        analyzedDataCommand.setDataId(analyzedMatrix.getMatrix().getId());
      } else if (data instanceof AnalyzedTree) {
        AnalyzedTree analyzedTree = (AnalyzedTree) data;
        analyzedDataCommand.setDataType(Constants.TREE_KEY);
        analyzedDataCommand.setDisplayName(analyzedTree.getTree().getLabel());
        analyzedDataCommand.setId(analyzedTree.getId());
View Full Code Here

Examples of org.cipres.treebase.domain.study.AnalyzedMatrix

          AnalyzedDataCommand analyzedDataCommand = new AnalyzedDataCommand();
          BeanUtils.copyProperties(analyzedDataCommand, analyzedData);
          String inputOutput = (analyzedData.isInputData()) ? ("Input") : ("Output");
          analyzedDataCommand.setInputOutputType(inputOutput);
          if (analyzedData instanceof AnalyzedMatrix) {
            AnalyzedMatrix analyzedMatrix = (AnalyzedMatrix) analyzedData;
            analyzedDataCommand.setDataType(Constants.MATRIX_KEY);
            analyzedDataCommand.setDisplayName(analyzedMatrix.getMatrix().getTitle());
            analyzedDataCommand.setId(analyzedMatrix.getId());
            analyzedDataCommand.setDataId(analyzedMatrix.getMatrix().getId());
          } else if (analyzedData instanceof AnalyzedTree) {
            AnalyzedTree analyzedTree = (AnalyzedTree) analyzedData;
            analyzedDataCommand.setDataType(Constants.TREE_KEY);
            analyzedDataCommand.setDisplayName(analyzedTree.getTree().getLabel());
            analyzedDataCommand.setId(analyzedTree.getId());
View Full Code Here

Examples of org.cipres.treebase.domain.study.AnalyzedMatrix

          AnalyzedDataCommand analyzedDataCommand = new AnalyzedDataCommand();
          BeanUtils.copyProperties(analyzedDataCommand, analyzedData);
          String inputOutput = (analyzedData.isInputData()) ? ("Input") : ("Output");
          analyzedDataCommand.setInputOutputType(inputOutput);
          if (analyzedData instanceof AnalyzedMatrix) {
            AnalyzedMatrix analyzedMatrix = (AnalyzedMatrix) analyzedData;
            analyzedDataCommand.setDataType(Constants.MATRIX_KEY);
            analyzedDataCommand.setDisplayName(analyzedMatrix.getMatrix().getTitle());
            analyzedDataCommand.setId(analyzedMatrix.getId());
            analyzedDataCommand.setDataId(analyzedMatrix.getMatrix().getId());
          } else if (analyzedData instanceof AnalyzedTree) {
            AnalyzedTree analyzedTree = (AnalyzedTree) analyzedData;
            analyzedDataCommand.setDataType(Constants.TREE_KEY);
            analyzedDataCommand.setDisplayName(analyzedTree.getTree().getLabel());
            analyzedDataCommand.setId(analyzedTree.getId());
View Full Code Here

Examples of org.cipres.treebase.domain.study.AnalyzedMatrix

          AnalyzedDataCommand analyzedDataCommand = new AnalyzedDataCommand();
          BeanUtils.copyProperties(analyzedDataCommand, analyzedData);
          String inputOutput = (analyzedData.isInputData()) ? ("Input") : ("Output");
          analyzedDataCommand.setInputOutputType(inputOutput);
          if (analyzedData instanceof AnalyzedMatrix) {
            AnalyzedMatrix analyzedMatrix = (AnalyzedMatrix) analyzedData;
            analyzedDataCommand.setDataType(Constants.MATRIX_KEY);
            analyzedDataCommand.setDisplayName(analyzedMatrix.getMatrix().getTitle());
            analyzedDataCommand.setId(analyzedMatrix.getId());
            analyzedDataCommand.setDataId(analyzedMatrix.getMatrix().getId());
          } else if (analyzedData instanceof AnalyzedTree) {
            AnalyzedTree analyzedTree = (AnalyzedTree) analyzedData;
            analyzedDataCommand.setDataType(Constants.TREE_KEY);
            analyzedDataCommand.setDisplayName(analyzedTree.getTree().getLabel());
            analyzedDataCommand.setId(analyzedTree.getId());
View Full Code Here

Examples of org.cipres.treebase.domain.study.AnalyzedMatrix

      String[] ids = idString.split(" +");     
      if ( dataType.equals("Matrices") ) {
        for ( int i = 0; i < ids.length; i++ ) {
          if ( ! TreebaseUtil.isEmpty(ids[i]) ) {
            Matrix matrix = getMatrixService().findByID(Long.parseLong(ids[i]));
            AnalyzedMatrix analyzedMatrix = new AnalyzedMatrix();
            analyzedMatrix.setInput(input);
            analyzedMatrix.setMatrix(matrix);
            analysisStep.addAnalyzedData(analyzedMatrix);
            getAnalysisStepService().update(analysisStep);         
          }
        }     
      }
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.