gpt4 book ai didi

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

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

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

XrefUtils.createIdentityXref介绍

暂无

代码示例

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

public <X extends Xref> X createIdentityXref(AnnotatedObject<X,?> parent, String primaryId, CvDatabase cvDatabase) {
  return XrefUtils.createIdentityXref(parent, primaryId, getIdentityQualifier(), cvDatabase);
}

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

public <X extends Xref> X createIdentityXref(AnnotatedObject<X,?> parent, String primaryId, CvDatabase cvDatabase) {
  return XrefUtils.createIdentityXref(parent, primaryId, getIdentityQualifier(), cvDatabase);
}

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

public <X extends Xref> X createIdentityXref(AnnotatedObject<X,?> parent, String primaryId, CvDatabase cvDatabase) {
  return XrefUtils.createIdentityXref(parent, primaryId, getIdentityQualifier(), cvDatabase);
}

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

public static <X extends Xref> X createIdentityXref(AnnotatedObject<X, ?> parent, String primaryId, CvDatabase cvDatabase) {
  CvObjectBuilder builder = new CvObjectBuilder();
  return createIdentityXref(parent, primaryId, builder.createIdentityCvXrefQualifier(parent.getOwner()), cvDatabase);
}

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

public static <X extends Xref> X createIdentityXref(AnnotatedObject<X, ?> parent, String primaryId, CvDatabase cvDatabase) {
  CvObjectBuilder builder = new CvObjectBuilder();
  return createIdentityXref(parent, primaryId, builder.createIdentityCvXrefQualifier(parent.getOwner()), cvDatabase);
}

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

public static <X extends Xref> X createIdentityXrefEmblGenbankDdbj(AnnotatedObject<X, ?> parent, String emblGenbankDdbjId) {
  CvObjectBuilder builder = new CvObjectBuilder();
  CvDatabase cvDatabase = CvObjectUtils.createCvObject(parent.getOwner(),
      CvDatabase.class,
      CvDatabase.DDBG_MI_REF,
      CvDatabase.DDBG);
  return createIdentityXref(parent, emblGenbankDdbjId,
      builder.createIdentityCvXrefQualifier(parent.getOwner()),
      cvDatabase);
}

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

public static <X extends Xref> X createIdentityXrefUniprot(AnnotatedObject<X, ?> parent, String primaryId) {
  CvObjectBuilder builder = new CvObjectBuilder();
  CvDatabase cvDatabase = CvObjectUtils.createCvObject(parent.getOwner(), CvDatabase.class, CvDatabase.UNIPROT_MI_REF, CvDatabase.UNIPROT);
  return createIdentityXref(parent, primaryId, builder.createIdentityCvXrefQualifier(parent.getOwner()), cvDatabase);
}

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

public static <X extends Xref> X createIdentityXrefUniprot(AnnotatedObject<X, ?> parent, String primaryId) {
  CvObjectBuilder builder = new CvObjectBuilder();
  CvDatabase cvDatabase = CvObjectUtils.createCvObject(parent.getOwner(), CvDatabase.class, CvDatabase.UNIPROT_MI_REF, CvDatabase.UNIPROT);
  return createIdentityXref(parent, primaryId, builder.createIdentityCvXrefQualifier(parent.getOwner()), cvDatabase);
}

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

public static <X extends Xref> X createIdentityXrefUniprot(AnnotatedObject<X,?> parent, String primaryId) {
  CvObjectBuilder builder = new CvObjectBuilder();
  CvDatabase cvDatabase = CvObjectUtils.createCvObject(parent.getOwner(), CvDatabase.class, CvDatabase.UNIPROT_MI_REF, CvDatabase.UNIPROT);
  return createIdentityXref(parent, primaryId, builder.createIdentityCvXrefQualifier(parent.getOwner()), cvDatabase);
}

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

public static <X extends Xref> X createIdentityXrefIntact(AnnotatedObject<X, ?> parent, String intactId) {
  CvObjectBuilder builder = new CvObjectBuilder();
  CvDatabase cvDatabase = CvObjectUtils.createCvObject(parent.getOwner(), CvDatabase.class, CvDatabase.INTACT_MI_REF, CvDatabase.INTACT);
  return createIdentityXref(parent, intactId, builder.createIdentityCvXrefQualifier(parent.getOwner()), cvDatabase);
}

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

protected InteractorXref createImexXref(Interaction interaction, String imexId) {
  CvDatabase cvImex = CvObjectUtils.createCvObject(interaction.getOwner(), CvDatabase.class, CvDatabase.IMEX_MI_REF, CvDatabase.IMEX);
  cvImex.setFullName(CvDatabase.IMEX);
  CvXrefQualifier imexPrimary = CvObjectUtils.createCvObject(interaction.getOwner(), CvXrefQualifier.class, CvXrefQualifier.IMEX_PRIMARY_MI_REF, CvXrefQualifier.IMEX_PRIMARY);
  return XrefUtils.createIdentityXref(interaction, imexId, imexPrimary, cvImex);
}

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

public static <X extends Xref> X createIdentityXrefEmblGenbankDdbj(AnnotatedObject<X, ?> parent, String emblGenbankDdbjId) {
  CvObjectBuilder builder = new CvObjectBuilder();
  CvDatabase cvDatabase = CvObjectUtils.createCvObject(parent.getOwner(),
      CvDatabase.class,
      CvDatabase.DDBG_MI_REF,
      CvDatabase.DDBG);
  return createIdentityXref(parent, emblGenbankDdbjId,
      builder.createIdentityCvXrefQualifier(parent.getOwner()),
      cvDatabase);
}

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

public static <X extends Xref> X createIdentityXrefPsiMi(AnnotatedObject<X,?> parent, String primaryId) {
  CvObjectBuilder builder = new CvObjectBuilder();
  return createIdentityXref(parent, primaryId, builder.createIdentityCvXrefQualifier(parent.getOwner()), builder.createPsiMiCvDatabase(parent.getOwner()));
}

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

public static <X extends Xref> X createIdentityXrefPsiMi(AnnotatedObject<X, ?> parent, String primaryId) {
  CvObjectBuilder builder = new CvObjectBuilder();
  return createIdentityXref(parent, primaryId, builder.createIdentityCvXrefQualifier(parent.getOwner()), builder.createPsiMiCvDatabase(parent.getOwner()));
}

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

public static <X extends Xref> X createIdentityXrefIntact(AnnotatedObject<X, ?> parent, String intactId) {
  CvObjectBuilder builder = new CvObjectBuilder();
  CvDatabase cvDatabase = CvObjectUtils.createCvObject(parent.getOwner(), CvDatabase.class, CvDatabase.INTACT_MI_REF, CvDatabase.INTACT);
  return createIdentityXref(parent, intactId, builder.createIdentityCvXrefQualifier(parent.getOwner()), cvDatabase);
}

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

public static <X extends Xref> X createIdentityXrefChebi(AnnotatedObject<X, ?> parent, String chebiId) {
  CvObjectBuilder builder = new CvObjectBuilder();
  CvDatabase cvDatabase = CvObjectUtils.createCvObject(parent.getOwner(), CvDatabase.class, CvDatabase.CHEBI_MI_REF, CvDatabase.CHEBI);
  return createIdentityXref(parent, chebiId, builder.createIdentityCvXrefQualifier(parent.getOwner()), cvDatabase);
}

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

public static <X extends Xref> X createIdentityXrefChebi(AnnotatedObject<X, ?> parent, String chebiId) {
  CvObjectBuilder builder = new CvObjectBuilder();
  CvDatabase cvDatabase = CvObjectUtils.createCvObject(parent.getOwner(), CvDatabase.class, CvDatabase.CHEBI_MI_REF, CvDatabase.CHEBI);
  return createIdentityXref(parent, chebiId, builder.createIdentityCvXrefQualifier(parent.getOwner()), cvDatabase);
}

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

public static <X extends Xref> X createIdentityXrefPsiMi(AnnotatedObject<X, ?> parent, String primaryId) {
  CvObjectBuilder builder = new CvObjectBuilder();
  return createIdentityXref(parent, primaryId, builder.createIdentityCvXrefQualifier(parent.getOwner()), builder.createPsiMiCvDatabase(parent.getOwner()));
}

代码示例来源:origin: uk.ac.ebi.intact.dbupdate/intact-cv-update

public static CvObjectXref createIdentityXref(CvDagObject term, String database, String identifier) {
  DaoFactory factory = IntactContext.getCurrentInstance().getDaoFactory();
  CvObjectXref cvXref;
  CvXrefQualifier identity = factory.getCvObjectDao(CvXrefQualifier.class).getByPsiMiRef(CvXrefQualifier.IDENTITY_MI_REF);
  CvDatabase db = factory.getCvObjectDao(CvDatabase.class).getByPsiMiRef(database);
  if (identity == null){
    identity = CvObjectUtils.createCvObject(IntactContext.getCurrentInstance().getInstitution(), CvXrefQualifier.class, CvXrefQualifier.IDENTITY_MI_REF, CvXrefQualifier.IDENTITY);
    IntactContext.getCurrentInstance().getCorePersister().saveOrUpdate(identity);
  }
  if (db == null){
    db = CvObjectUtils.createCvObject(IntactContext.getCurrentInstance().getInstitution(), CvDatabase.class, database, database);
    IntactContext.getCurrentInstance().getCorePersister().saveOrUpdate(db);
  }
  // create identity xref
  cvXref = XrefUtils.createIdentityXref(term, identifier, identity, db);
  term.addXref(cvXref);
  return cvXref;
}

代码示例来源:origin: uk.ac.ebi.intact.dbupdate/intact-cv-update

public static CvObjectXref createSecondaryXref(CvDagObject term, String database, String identifier) {
  DaoFactory factory = IntactContext.getCurrentInstance().getDaoFactory();
  CvObjectXref cvXref;
  CvXrefQualifier secondary = factory.getCvObjectDao(CvXrefQualifier.class).getByPsiMiRef(CvXrefQualifier.SECONDARY_AC_MI_REF);
  CvDatabase db = factory.getCvObjectDao(CvDatabase.class).getByPsiMiRef(database);
  if (secondary == null){
    secondary = CvObjectUtils.createCvObject(IntactContext.getCurrentInstance().getInstitution(), CvXrefQualifier.class, CvXrefQualifier.SECONDARY_AC_MI_REF, CvXrefQualifier.SECONDARY_AC);
    IntactContext.getCurrentInstance().getCorePersister().saveOrUpdate(secondary);
  }
  if (db == null){
    db = CvObjectUtils.createCvObject(IntactContext.getCurrentInstance().getInstitution(), CvDatabase.class, database, database);
    IntactContext.getCurrentInstance().getCorePersister().saveOrUpdate(db);
  }
  // create identity xref
  cvXref = XrefUtils.createIdentityXref(term, identifier, secondary, db);
  term.addXref(cvXref);
  return cvXref;
}

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