Tabnine Logo
IntactCore.ensureInitializedXrefs
Code IndexAdd Tabnine to your IDE (free)

How to use
ensureInitializedXrefs
method
in
uk.ac.ebi.intact.core.persister.IntactCore

Best Java code snippets using uk.ac.ebi.intact.core.persister.IntactCore.ensureInitializedXrefs (Showing top 12 results out of 315)

origin: uk.ac.ebi.intact.core/intact-core

public static boolean containSameXrefs(AnnotatedObject ao1, AnnotatedObject ao2) {
  return areCollectionEqual(IntactCore.ensureInitializedXrefs(ao1), IntactCore.ensureInitializedXrefs(ao2));
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

public static boolean containSameXrefs(AnnotatedObject ao1, AnnotatedObject ao2) {
  return areCollectionEqual(IntactCore.ensureInitializedXrefs(ao1), IntactCore.ensureInitializedXrefs(ao2));
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Retrieve the xrefs from an annotated object that comply with the filter.
 *
 * @param ao         The annotated object
 * @param xrefFilter The xref filter
 * @return The collection of filtered xrefs
 * @since 1.9.0
 */
public static <X extends Xref> List<X> searchXrefs(AnnotatedObject<X, ?> ao, XrefCvFilter xrefFilter) {
  List<X> xrefList = new ArrayList<X>();
  CollectionUtils.select(IntactCore.ensureInitializedXrefs(ao), new IntactObjectFilterPredicate(xrefFilter), xrefList);
  return xrefList;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Retrieve the xrefs from an annotated object that comply with the filter.
 *
 * @param ao         The annotated object
 * @param xrefFilter The xref filter
 * @return The collection of filtered xrefs
 * @since 1.9.0
 */
public static <X extends Xref> List<X> searchXrefs(AnnotatedObject<X, ?> ao, XrefCvFilter xrefFilter) {
  List<X> xrefList = new ArrayList<X>();
  CollectionUtils.select(IntactCore.ensureInitializedXrefs(ao), new IntactObjectFilterPredicate(xrefFilter), xrefList);
  return xrefList;
}
origin: uk.ac.ebi.intact.core/intact-core

public static boolean containSameAliases(AnnotatedObject ao1, AnnotatedObject ao2) {
  return areCollectionEqual(IntactCore.ensureInitializedAliases(ao1), IntactCore.ensureInitializedXrefs(ao2));
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

public static boolean containSameAliases(AnnotatedObject ao1, AnnotatedObject ao2) {
  return areCollectionEqual(IntactCore.ensureInitializedAliases(ao1), IntactCore.ensureInitializedXrefs(ao2));
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

  protected Collection<Xref> searchXrefs(AnnotatedObject intactObject, String databaseMiRef, String qualifierMiRef, boolean checkInitializedXrefs){
    Collection<Xref> xrefs;
    if (checkInitializedXrefs){
      xrefs = new ArrayList<Xref>(IntactCore.ensureInitializedXrefs(intactObject));
    }
    else {
      xrefs = intactObject.getXrefs();
    }

    if (xrefs.isEmpty()){
       return Collections.EMPTY_LIST;
    }

    Collection<Xref> results = new ArrayList<Xref>(xrefs.size());

    for (Xref xref : xrefs){
      if (xref.getCvDatabase() != null && xref.getCvDatabase().getIdentifier() != null){
         if (xref.getCvDatabase().getIdentifier().equals(databaseMiRef)){
           if (xref.getCvXrefQualifier() != null && xref.getCvXrefQualifier().getIdentifier() != null){
             if (xref.getCvXrefQualifier().getIdentifier().equals(qualifierMiRef)){
                results.add(xref);
             }
           }
         }
      }
    }

    return results;
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

protected Xref getImexXref(Interaction interaction) {
  Collection<? extends Xref> refs;
  if (isCheckInitializedCollections()){
    refs = IntactCore.ensureInitializedXrefs(interaction);
  }
  else {
    refs = interaction.getXrefs();
  }
  for (Xref xref : refs) {
    if (CvDatabase.IMEX_MI_REF.equals(xref.getCvDatabase().getIdentifier())
        && xref.getCvXrefQualifier() != null
        && CvXrefQualifier.IMEX_PRIMARY_MI_REF.equals(xref.getCvXrefQualifier().getIdentifier())) {
      return xref;
    }
  }
  return null;
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

  for ( uk.ac.ebi.intact.model.Xref xref : IntactCore.ensureInitializedXrefs(annotatedObject)) {
    if (annotatedObject.getAc().equals(xref.getPrimaryId())) {
      containsAcXref = true;
Collection<DbReference> dbRefs = toDbReferences( annotatedObject, IntactCore.ensureInitializedXrefs(annotatedObject));
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

xrefs = IntactCore.ensureInitializedXrefs(annotatedObject);
origin: uk.ac.ebi.intact.core/intact-core-readonly

Collection<? extends Xref> refs = IntactCore.ensureInitializedXrefs(ao);
origin: uk.ac.ebi.intact.core/intact-core

Collection<? extends Xref> refs = IntactCore.ensureInitializedXrefs(ao);
uk.ac.ebi.intact.core.persisterIntactCoreensureInitializedXrefs

Javadoc

Retrieves the xrefs from an AnnotatedObject, initializing them if necessary.

Popular methods of IntactCore

  • ensureInitializedAliases
    Retrieves the aliases from an AnnotatedObject, initializing them if necessary.
  • ensureInitializedAnnotations
    Retrieves the annotations from an AnnotatedObject, initializing them if necessary.
  • ensureInitializedComponentConfidences
    Retrieves the confidences from a participant, initializing them if necessary. Do not set the initial
  • ensureInitializedComponentParameters
    Retrieves the parameters from a participant, initializing them if necessary. Do not set the initiali
  • ensureInitializedConfidences
    Retrieves the confidences from an interaction, initializing them if necessary. Do not set the initia
  • ensureInitializedExperimentalPreparations
    Retrieves the experimental preparations from a participant, initializing them if necessary. Do not s
  • ensureInitializedExperimentalRoles
    Retrieves the experimental roles from a participant, initializing them if necessary. Do not set the
  • ensureInitializedExperiments
    Retrieves the experiment from a publication, initializing them if necessary.
  • ensureInitializedFeatures
    Retrieves the features from a participant, initializing them if necessary. Do not set the initialize
  • ensureInitializedInteractionParameters
    Retrieves the parameters from an interaction, initializing them if necessary. Do not set the initial
  • ensureInitializedParticipantIdentificationMethods
    Retrieves the participant detection methods from a participant, initializing them if necessary. Do n
  • ensureInitializedParticipants
    Retrieves the components from an interaction, initializing them if necessary. Do not set the initial
  • ensureInitializedParticipantIdentificationMethods,
  • ensureInitializedParticipants,
  • ensureInitializedRanges,
  • ensureInitializedInteractions,
  • ensureInitializedLifecycleEvents,
  • ensureInitializedPreferences,
  • ensureInitializedRoles,
  • initialize,
  • initializeAnnotatedObject

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now