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

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

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

XrefUtils.createXrefWithQualifier介绍

暂无

代码示例

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

public static Xref createSecondaryXref(String databaseName, String id){
  return createXrefWithQualifier(databaseName, null, id, Xref.SECONDARY, Xref.SECONDARY_MI);
}

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

public static Xref createSecondaryXref(String databaseName, String databaseMi, String id){
  return createXrefWithQualifier(databaseName, databaseMi, id, Xref.SECONDARY, Xref.SECONDARY_MI);
}

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

public static Xref createIdentityXref(String databaseName, String databaseMi, String id){
  return createXrefWithQualifier(databaseName, databaseMi, id, Xref.IDENTITY, Xref.IDENTITY_MI);
}

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

public static Xref createPrimaryXref(String databaseName, String id){
  return createXrefWithQualifier(databaseName, null, id, Xref.PRIMARY, Xref.PRIMARY_MI);
}

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

public static Xref createIdentityXref(String databaseName, String id){
  return createXrefWithQualifier(databaseName, null, id, Xref.IDENTITY, Xref.IDENTITY_MI);
}

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

public static Xref createPrimaryXref(String databaseName, String databaseMi, String id){
  return createXrefWithQualifier(databaseName, databaseMi, id, Xref.PRIMARY, Xref.PRIMARY_MI);
}

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

pubmedPrimary = xref;
    Xref primaryPubmedRef = XrefUtils.createXrefWithQualifier(Xref.PUBMED, Xref.PUBMED_MI, accession, Xref.PRIMARY, Xref.PRIMARY_MI);
    ontologyTerm.getXrefs().add(primaryPubmedRef);
    Xref pubmedRef = XrefUtils.createXrefWithQualifier(Xref.PUBMED, Xref.PUBMED_MI, accession, METHOD_REFERENCE, METHOD_REFERENCE_MI_REF);
    ontologyTerm.getXrefs().add(pubmedRef);
  Xref pubmedRef = XrefUtils.createXrefWithQualifier(Xref.PUBMED, Xref.PUBMED_MI, accession, Xref.SEE_ALSO, Xref.SEE_ALSO_MI);
  Xref goRef = XrefUtils.createXrefWithQualifier(GO, GO_MI_REF, database + ":" + accession, Xref.SEE_ALSO, Xref.SEE_ALSO_MI);
  Xref resXref = XrefUtils.createXrefWithQualifier(RESID, RESID_MI_REF, accession, Xref.SEE_ALSO, Xref.SEE_ALSO_MI);
  ontologyTerm.getXrefs().add(resXref);
} else if ( SO.equalsIgnoreCase(database) ) {
  Xref soRef = XrefUtils.createXrefWithQualifier(SO, SO_MI_REF, database + ":" + accession, Xref.SEE_ALSO, Xref.SEE_ALSO_MI);
    Xref primaryPubmedRef = XrefUtils.createXrefWithQualifier(Xref.PUBMED, Xref.PUBMED_MI, accession, Xref.PRIMARY, Xref.PRIMARY_MI);
    ontologyTerm.getXrefs().add(primaryPubmedRef);
    Xref pubmedRef = XrefUtils.createXrefWithQualifier(Xref.PUBMED, Xref.PUBMED_MI, accession, METHOD_REFERENCE, METHOD_REFERENCE_MI_REF);
    ontologyTerm.getXrefs().add(pubmedRef);
  Xref resXref = XrefUtils.createXrefWithQualifier(RESID, RESID_MI_REF, accession, Xref.SEE_ALSO, Xref.SEE_ALSO_MI);
  ontologyTerm.getXrefs().add(resXref);
}else if ( Xref.CHEBI.equalsIgnoreCase(database) ) {
  Xref chebiRef = XrefUtils.createXrefWithQualifier(Xref.CHEBI, Xref.CHEBI_MI, accession, Xref.SEE_ALSO, Xref.SEE_ALSO_MI);

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

pubmedPrimary = xref;
    Xref primaryPubmedRef = XrefUtils.createXrefWithQualifier(Xref.PUBMED, Xref.PUBMED_MI, accession, Xref.PRIMARY, Xref.PRIMARY_MI);
    ontologyTerm.getXrefs().add(primaryPubmedRef);
    Xref pubmedRef = XrefUtils.createXrefWithQualifier(Xref.PUBMED, Xref.PUBMED_MI, accession, METHOD_REFERENCE, METHOD_REFERENCE_MI_REF);
    ontologyTerm.getXrefs().add(pubmedRef);
  Xref pubmedRef = XrefUtils.createXrefWithQualifier(Xref.PUBMED, Xref.PUBMED_MI, accession, Xref.SEE_ALSO, Xref.SEE_ALSO_MI);
  Xref goRef = XrefUtils.createXrefWithQualifier(GO, GO_MI_REF, database + ":" + accession, Xref.SEE_ALSO, Xref.SEE_ALSO_MI);
  Xref resXref = XrefUtils.createXrefWithQualifier(RESID, RESID_MI_REF, accession, Xref.SEE_ALSO, Xref.SEE_ALSO_MI);
  ontologyTerm.getXrefs().add(resXref);
} else if ( SO.equalsIgnoreCase(database) ) {
  Xref soRef = XrefUtils.createXrefWithQualifier(SO, SO_MI_REF, database + ":" + accession, Xref.SEE_ALSO, Xref.SEE_ALSO_MI);
    Xref primaryPubmedRef = XrefUtils.createXrefWithQualifier(Xref.PUBMED, Xref.PUBMED_MI, accession, Xref.PRIMARY, Xref.PRIMARY_MI);
    ontologyTerm.getXrefs().add(primaryPubmedRef);
    Xref pubmedRef = XrefUtils.createXrefWithQualifier(Xref.PUBMED, Xref.PUBMED_MI, accession, METHOD_REFERENCE, METHOD_REFERENCE_MI_REF);
    ontologyTerm.getXrefs().add(pubmedRef);
  Xref resXref = XrefUtils.createXrefWithQualifier(RESID, RESID_MI_REF, accession, Xref.SEE_ALSO, Xref.SEE_ALSO_MI);
  ontologyTerm.getXrefs().add(resXref);
}else if ( Xref.CHEBI.equalsIgnoreCase(database) ) {
  Xref chebiRef = XrefUtils.createXrefWithQualifier(Xref.CHEBI, Xref.CHEBI_MI, accession, Xref.SEE_ALSO, Xref.SEE_ALSO_MI);

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

private void copyIdentifiersFromDelegate() {
  List<Identifier> imexIdentifiers = this.delegate.getIdentifier();
  for (Identifier identifier : imexIdentifiers){
    if (identifier.getNs() == null || identifier.getAc() == null){
      // nothing to do
    }
    else if (identifier.getNs().equals("pmid")){
      super.getIdentifiers().add(XrefUtils.createPubmedIdentity(identifier.getAc()));
    }
    else if (identifier.getNs().equals("imex") && !identifier.getAc().equals("N/A")){
      super.getXrefs().add(XrefUtils.createXrefWithQualifier(Xref.IMEX, Xref.IMEX_MI, identifier.getAc(), Xref.IMEX_PRIMARY, Xref.IMEX_PRIMARY_MI));
    }
    else if (identifier.getNs().equals("doi")){
      super.getIdentifiers().add(XrefUtils.createDoiIdentity(identifier.getAc()));
    }
    else if (identifier.getNs().equals("jint")){
      super.getIdentifiers().add(XrefUtils.createIdentityXref("jint", identifier.getAc()));
    }
  }
  if (super.getImexId() == null && this.delegate.getImexAccession() != null && !this.delegate.getImexAccession().equals("N/A")){
    super.getXrefs().add(XrefUtils.createXrefWithQualifier(Xref.IMEX, Xref.IMEX_MI, this.delegate.getImexAccession(), Xref.IMEX_PRIMARY, Xref.IMEX_PRIMARY_MI));
  }
}

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

p.getXrefs().add(XrefUtils.createXrefWithQualifier(Xref.UNIPROTKB , Xref.UNIPROTKB_MI,
    entry.getPrimaryUniProtAccession().getValue() , Xref.ISOFORM_PARENT, Xref.ISOFORM_PARENT_MI));

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

p.getXrefs().add(XrefUtils.createXrefWithQualifier(Xref.UNIPROTKB , Xref.UNIPROTKB_MI,
    entry.getPrimaryUniProtAccession().getValue() , Xref.CHAIN_PARENT, Xref.CHAIN_PARENT_MI));

相关文章