psidev.psi.mi.jami.utils.XrefUtils.collectAllXrefsHavingDatabaseAndQualifier()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(131)

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

XrefUtils.collectAllXrefsHavingDatabaseAndQualifier介绍

[英]Collect all cross references having a specific database and qualifier
[中]收集具有特定数据库和限定符的所有交叉引用

代码示例

代码示例来源:origin: psidev.psi.mi.jami/jami-core

protected void processRemovedXrefEvent(Xref removed) {
  // the removed identifier is pubmed
  if (imexId != null && imexId.equals(removed)){
    Collection<Xref> existingImex = XrefUtils.collectAllXrefsHavingDatabaseAndQualifier(getXrefs(), Xref.IMEX_MI, Xref.IMEX, Xref.IMEX_PRIMARY_MI, Xref.IMEX_PRIMARY);
    if (!existingImex.isEmpty()){
      imexId = existingImex.iterator().next();
    }
  }
}

代码示例来源:origin: psidev.psi.mi.jami/jami-core

protected void processRemovedXrefEvent(Xref removed) {
  // the removed identifier is pubmed
  if (imexId != null && imexId.equals(removed)){
    Collection<Xref> existingImex = XrefUtils.collectAllXrefsHavingDatabaseAndQualifier(getXrefs(), Xref.IMEX_MI, Xref.IMEX, Xref.IMEX_PRIMARY_MI, Xref.IMEX_PRIMARY);
    if (!existingImex.isEmpty()){
      imexId = existingImex.iterator().next();
    }
  }
}

代码示例来源:origin: psidev.psi.mi.jami/jami-core

protected void processRemovedXrefEvent(Xref removed) {
  // the removed identifier is pubmed
  if (imexId != null && imexId.equals(removed)){
    Collection<Xref> existingImex = XrefUtils.collectAllXrefsHavingDatabaseAndQualifier(getXrefs(), Xref.IMEX_MI, Xref.IMEX, Xref.IMEX_PRIMARY_MI, Xref.IMEX_PRIMARY);
    if (!existingImex.isEmpty()){
      imexId = existingImex.iterator().next();
    }
  }
}

代码示例来源:origin: psidev.psi.mi.jami/jami-mitab

public void writeInteractionIdentifiers(BinaryInteraction interaction) throws IOException {
  Collection<Xref> imexId = XrefUtils.collectAllXrefsHavingDatabaseAndQualifier(interaction.getXrefs(), Xref.IMEX_MI, Xref.IMEX, Xref.IMEX_PRIMARY_MI, Xref.IMEX_PRIMARY);

代码示例来源:origin: psidev.psi.mi.jami/jami-mitab

public void writeInteractionIdentifiers(ModelledBinaryInteraction interaction) throws IOException {
  Collection<Xref> imexId = XrefUtils.collectAllXrefsHavingDatabaseAndQualifier(interaction.getXrefs(), Xref.IMEX_MI, Xref.IMEX, Xref.IMEX_PRIMARY_MI, Xref.IMEX_PRIMARY);

代码示例来源:origin: psidev.psi.mi/psimi-schema-validator

Collection<psidev.psi.mi.jami.model.Xref> allPubmeds = XrefUtils.collectAllXrefsHavingDatabaseAndQualifier(cellType.getXrefs(), psidev.psi.mi.jami.model.Xref.PUBMED_MI, psidev.psi.mi.jami.model.Xref.PUBMED, psidev.psi.mi.jami.model.Xref.PRIMARY_MI, psidev.psi.mi.jami.model.Xref.PRIMARY);

相关文章