当前位置: 首页>>代码示例>>Java>>正文


Java SBO类代码示例

本文整理汇总了Java中org.sbml.jsbml.SBO的典型用法代码示例。如果您正苦于以下问题:Java SBO类的具体用法?Java SBO怎么用?Java SBO使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SBO类属于org.sbml.jsbml包,在下文中一共展示了SBO类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SBOTermToCDModifier

import org.sbml.jsbml.SBO; //导入依赖的package包/类
/**
 * SBO term to CD modifier.
 *
 * @param sboterm the sboTerm
 * @return the string
 */
public static String SBOTermToCDModifier(int sboTerm) {
  if (SBO.isChildOf(sboTerm, intSBOTermForINHIBITION)) {
    // = intSBOTermForTRANSLATIONAL_INHIBITION = intSBOTermForTRANSCRIPTIONAL_INHIBITION = intSBOTermForUNKNOWN_INHIBITION
    return "INHIBITION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTRANSCRIPTIONAL_ACTIVATION)) {
    //  = intSBOTermForTRANSLATIONAL_ACTIVATION
    return "TRANSCRIPTIONAL_ACTIVATION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTrigger)) {
    return "TRIGGER";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForPHYSICAL_STIMULATION)) {
    return "PHYSICAL_STIMULATION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForHETERODIMER_ASSOCIATION)) {
    return "HETERODIMER_ASSOCIATION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForMODULATION)) {
    return "MODULATION";
  } else {
    if (SBO.isChildOf(sboTerm, intSBOTermForCATALYSIS)) {
      // = intSBOTermForUNKNOWN_CATALYSIS
    }
    return "CATALYSIS";
  }
}
 
开发者ID:funasoul,项目名称:celldesigner-parser,代码行数:29,代码来源:SBMLUtil.java

示例2: SBOTermToCDSpecies

import org.sbml.jsbml.SBO; //导入依赖的package包/类
/**
 * SBO term to CD species.
 *
 * @param sboTerm the sbo term
 * @return the string
 */
public static String SBOTermToCDSpecies(int sboTerm) {
  if (SBO.isChildOf(sboTerm, intSBOTermForGENERIC)) {
    return "GENERIC";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForPROTEIN)) {
    return "PROTEIN";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForION_CHANNEL)) {
    return "ION_CHANNEL";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTRUNCATED)) {
    return "TRUNCATED";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForRECEPTOR)) {
    return "RECEPTOR";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForANTISENSE_RNA)) {
    return "ANTISENSE_RNA";
  }  else if (SBO.isChildOf(sboTerm, intSBOTermForDEGRADED)) {
    return "DEGRADED";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForDRUG)) {
    return "DRUG";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForGENE)) {
    return "GENE";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForION)) {
    return "ION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForPHENOTYPE)) {
    return "PHENOTYPE";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForRNA)) {
    return "RNA";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForSIMPLE_MOLECULE)) {
    return "SIMPLE_MOLECULE";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForCOMPLEX)) {
    return "COMPLEX";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForUNKNOWN)) {
    return "UNKNOWN";
  } else {   
    return "PROTEIN";
  }
}
 
开发者ID:funasoul,项目名称:celldesigner-parser,代码行数:42,代码来源:SBMLUtil.java

示例3: SBOTermToCDReaction

import org.sbml.jsbml.SBO; //导入依赖的package包/类
/**
 * SBO term to CD reaction.
 *
 * @param sboTerm the SBO term
 * @return String
 * TODO
 */
public static String SBOTermToCDReaction(int sboTerm) {
  if (SBO.isChildOf(sboTerm, intSBOTermForKNOWN_TRANSITION_OMITTED)) {
    return "KNOWN_TRANSITION_OMITTED";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForINHIBITION)) {
    // = intSBOTermForTRANSLATIONAL_INHIBITION = intSBOTermForTRANSCRIPTIONAL_INHIBITION = intSBOTermForUNKNOWN_INHIBITION
    return "INHIBITION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTRANSCRIPTION)) {
    return "TRANSCRIPTION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTRANSLATION)) {
    return "TRANSLATION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTRANSPORT)) {
    return "TRANSPORT";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForHETERODIMER_ASSOCIATION)) {
    return "HETERODIMER_ASSOCIATION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForDISSOCIATION)) {
    return "DISSOCIATION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTRUNCATION)) {
    return "TRUNCATION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForUNKNOWN_TRANSITION)) {
    return "UNKNOWN_TRANSITION";
  } else {
    if (SBO.isChildOf(sboTerm, intSBOTermForSTATE_TRANSITION)) {
    }
    return "STATE_TRANSITION";
  }
}
 
开发者ID:funasoul,项目名称:celldesigner-parser,代码行数:34,代码来源:SBMLUtil.java

示例4: createSpeciesObjectFromSBOTerm

import org.sbml.jsbml.SBO; //导入依赖的package包/类
/**
 * Creates the species object from SBO term.
 *
 * @param sg
 *        the sg
 * @param sboterm
 *        the sboterm
 * @return org.sbml._2001.ns.celldesigner.Species
 *         TODO
 */
// public org.sbml._2001.ns.celldesigner.Species getSpeciesById(String
// reference) {
// List<Species> list = model.getListOfSpecies().getSpecies();
//
// return ;
// }
public void createSpeciesObjectFromSBOTerm(SpeciesGlyph sg, int sboTerm) {
  
  if (sboTerm == SBMLUtil.intSBOTermForCOMPLEX || //since protein is child of protein we can't use isChildOf in order to create protein
      SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForDEGRADED) ||
      SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForDRUG) ||
      SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForSIMPLE_MOLECULE) ||
      SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForUNKNOWN) ||
      SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForION) ||
      SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForPHENOTYPE)) {
    // nothing to do
  } else if (SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForANTISENSE_RNA)) {
    createAntisenseRNA((org.sbml.jsbml.Species) sg.getSpeciesInstance());
  } else if (SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForGENE)) {
    createGene((org.sbml.jsbml.Species) sg.getSpeciesInstance());
  } else if (SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForRNA)) {
    createRNA((org.sbml.jsbml.Species) sg.getSpeciesInstance());
  } else /*if (SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForPROTEIN) ||
      SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForGENERIC) ||
      SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForRECEPTOR) ||
      SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForION_CHANNEL) ||
      SBO.isChildOf(sboTerm, SBMLUtil.intSBOTermForTRUNCATED))*/ {
    createProtein((org.sbml.jsbml.Species) sg.getSpeciesInstance());
  }
}
 
开发者ID:funasoul,项目名称:celldesigner-parser,代码行数:41,代码来源:ModelWrapper.java

示例5: SBOTermToString

import org.sbml.jsbml.SBO; //导入依赖的package包/类
/**
 * SBO term to string.
 *
 * @param sboTerm the sbo term
 * @return String
 * TODO
 */
public static String SBOTermToString(int sboTerm) {
  if (SBO.isChildOf(sboTerm, intSBOTermForANTISENSE_RNA)) {
    return "ANTISENSE_RNA";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForCOMPLEX)) {
    return "COMPLEX";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForDEGRADED)) {
    return "DEGRADED";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForDRUG)) {
    return "DRUG";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForGENE)) {
    return "GENE";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForGENERIC)) {
    return "GENERIC";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForION)) {
    return "ION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForPHENOTYPE)) {
    return "PHENOTYPE";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForPROTEIN)) {
    return "PROTEIN";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForRECEPTOR)) {
    return "RECEPTOR";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForRNA)) {
    return "RNA";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForION_CHANNEL)) {
    return "ION_CHANNEL";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForSIMPLE_MOLECULE)) {
    return "SIMPLE_MOLECULE";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTRUNCATED)) {
    return "TRUNCATED";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForUNKNOWN)) {
    return "UNKNOWN";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForKNOWN_TRANSITION_OMITTED)) {
    return "KNOWN_TRANSITION_OMITTED";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForSTATE_TRANSITION)) {
    return "STATE_TRANSITION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTRANSCRIPTION)) {
    return "TRANSCRIPTION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTRANSLATION)) {
    return "TRANSLATION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTRANSPORT)) {
    return "TRANSPORT";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForHETERODIMER_ASSOCIATION)) {
    return "HETERODIMER_ASSOCIATION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForDISSOCIATION)) {
    return "DISSOCIATION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTRUNCATION)) {
    return "TRUNCATION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForUNKNOWN_TRANSITION)) {
    return "UNKNOWN_TRANSITION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForModifier)) {
    // = intSBOTermForMODULATION
    return "Modifier";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForCATALYSIS)) {
    // = intSBOTermForUNKNOWN_CATALYSIS
    return "CATALYSIS";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForINHIBITION)) {
    // = intSBOTermForTRANSLATIONAL_INHIBITION = intSBOTermForTRANSCRIPTIONAL_INHIBITION = intSBOTermForUNKNOWN_INHIBITION
    return "INHIBITION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForPHYSICAL_STIMULATION)) {
    return "PHYSICAL_STIMULATION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTRANSCRIPTIONAL_ACTIVATION)) {
    //  = intSBOTermForTRANSLATIONAL_ACTIVATION
    return "TRANSCRIPTIONAL_ACTIVATION";
  } else if (SBO.isChildOf(sboTerm, intSBOTermForTRIGGER)) {
    return "TRIGGER";
  } else {
    return "";
  }
}
 
开发者ID:funasoul,项目名称:celldesigner-parser,代码行数:77,代码来源:SBMLUtil.java


注:本文中的org.sbml.jsbml.SBO类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。