gpt4 book ai didi

uk.ac.ebi.intact.model.util.XrefUtils.createIdentityXrefPsiMi()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 22:53:05 27 4
gpt4 key购买 nike

本文整理了Java中uk.ac.ebi.intact.model.util.XrefUtils.createIdentityXrefPsiMi()方法的一些代码示例,展示了XrefUtils.createIdentityXrefPsiMi()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XrefUtils.createIdentityXrefPsiMi()方法的具体详情如下:
包路径:uk.ac.ebi.intact.model.util.XrefUtils
类名称:XrefUtils
方法名:createIdentityXrefPsiMi

XrefUtils.createIdentityXrefPsiMi介绍

暂无

代码示例

代码示例来源:origin: uk.ac.ebi.intact.dataexchange/intact-cvutils

protected CvObjectXref createIdentityXref( CvObject parent, String id ) {
  CvObjectXref idXref = null;
  if (id != null) {
    if (id.startsWith("MI")) {
      idXref = XrefUtils.createIdentityXrefPsiMi(parent, id);
      idXref.prepareParentMi();
    } else if (id.startsWith("IA")) {
      idXref = XrefUtils.createIdentityXref(parent, id, nonMiCvDatabase);
    } else if (id.startsWith("MOD")) {
      idXref = XrefUtils.createIdentityXref(parent, id, psimod);
    } else {
      if (log.isWarnEnabled()) log.warn("Uknown prefix for id: "+id+". Will store as a cross reference to database: "+nonMiCvDatabase.getShortLabel());
      idXref = XrefUtils.createIdentityXref(parent, id, nonMiCvDatabase);
    }
  }
  return idXref;
}

代码示例来源:origin: uk.ac.ebi.intact/intact-core

public static <T extends CvObject> T createCvObject(Institution institution, Class<T> cvClass, String primaryId, String shortLabel) {
    T cv = ClassUtils.newInstance(cvClass);
    cv.setOwner(institution);
    cv.setShortLabel(shortLabel);

    CvObjectXref idXref = XrefUtils.createIdentityXrefPsiMi(cv, primaryId);
    cv.addXref(idXref);

    return cv;
  }
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

public static <T extends CvObject> T createCvObject(Institution institution, Class<T> cvClass, String miIdentifier, String shortLabel) {
  T cv = ClassUtils.newInstance(cvClass);
  cv.setOwner(institution);
  cv.setShortLabel(shortLabel);
  cv.setIdentifier(miIdentifier);
  if (miIdentifier != null) {
    CvObjectXref idXref = XrefUtils.createIdentityXrefPsiMi(cv, miIdentifier);
    cv.addXref(idXref);
    idXref.prepareParentMi();
  }
  return cv;
}

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

public static <T extends CvObject> T createCvObject(Institution institution, Class<T> cvClass, String miIdentifier, String shortLabel) {
  T cv = ClassUtils.newInstance(cvClass);
  cv.setOwner(institution);
  cv.setShortLabel(shortLabel);
  cv.setIdentifier(miIdentifier);
  if (miIdentifier != null) {
    CvObjectXref idXref = XrefUtils.createIdentityXrefPsiMi(cv, miIdentifier);
    cv.addXref(idXref);
    idXref.prepareParentMi();
  }
  return cv;
}

代码示例来源:origin: uk.ac.ebi.intact/intact-core

InstitutionXref xref = XrefUtils.createIdentityXrefPsiMi(institution, Institution.INTACT_REF);
institution.addXref(xref);
InstitutionXref xref = XrefUtils.createIdentityXrefPsiMi(institution, Institution.MINT_REF);
institution.addXref(xref);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com