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

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

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

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

/**
 * Convenience method to get the interactors - delegates the logic to the interactions
 *
 * @return Interactors
 */
public Collection<Interactor> getInteractors() {
  if (interactors != null) {
    return interactors.keySet();
  }
  else if (!interactorsList.isEmpty()){
    return interactorsList;
  }
  interactors = new IdentityMap();
  for (Interaction interaction : getInteractions()) {
    for (Component comp : IntactCore.ensureInitializedParticipants(interaction)) {
      interactors.put(comp.getInteractor(), null);
    }
  }
  return interactors.keySet();
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Convenience method to get the interactors - delegates the logic to the interactions
 *
 * @return Interactors
 */
public Collection<Interactor> getInteractors() {
  if (interactors != null) {
    return interactors.keySet();
  }
  else if (!interactorsList.isEmpty()){
    return interactorsList;
  }
  interactors = new IdentityMap();
  for (Interaction interaction : getInteractions()) {
    for (Component comp : IntactCore.ensureInitializedParticipants(interaction)) {
      interactors.put(comp.getInteractor(), null);
    }
  }
  return interactors.keySet();
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

protected void failIfInconsistentConversion(Interaction intact, psidev.psi.mi.xml.model.Interaction psi, int numberOfAuthorConfAttributes) {
  Collection<Experiment> experiments;
  Collection<Component> participants;
  Collection<Confidence> confidences;
  if (isCheckInitializedCollections()){
    experiments = IntactCore.ensureInitializedExperiments(intact);
    participants = IntactCore.ensureInitializedParticipants(intact);
    confidences = IntactCore.ensureInitializedConfidences(intact);
  }
  else {
    experiments = intact.getExperiments();
    participants = intact.getComponents();
    confidences = intact.getConfidences();
  }
  failIfInconsistentCollectionSize("experiment", experiments, psi.getExperiments());
  failIfInconsistentCollectionSize("participant", participants, psi.getParticipants());
  Collection<Confidence> confs = confidences;
  if (confs.size() > 0 && psi.getConfidences().size() + numberOfAuthorConfAttributes > 0 && confs.size() != (psi.getConfidences().size() + numberOfAuthorConfAttributes)) {
    throw new InconsistentConversionException("Confidence", confs.size(), psi.getConfidences().size() + numberOfAuthorConfAttributes);
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

protected void failIfInconsistentPsiConversion(Interaction intact, psidev.psi.mi.xml.model.Interaction psi) {
  Collection<Experiment> experiments;
  Collection<Component> participants;
  Collection<Confidence> confidences;
  if (isCheckInitializedCollections()){
    experiments = IntactCore.ensureInitializedExperiments(intact);
    participants = IntactCore.ensureInitializedParticipants(intact);
    confidences = IntactCore.ensureInitializedConfidences(intact);
  }
  else {
    experiments = intact.getExperiments();
    participants = intact.getComponents();
    confidences = intact.getConfidences();
  }
  failIfInconsistentCollectionSize("experiment", experiments, psi.getExperiments());
  failIfInconsistentCollectionSize("participant", participants, psi.getParticipants());
  Collection<Confidence> confs = confidences;
  if (confs.size() > 0 && psi.getConfidences().size() > 0 && (confs.size()) != psi.getConfidences().size()) {
    throw new InconsistentConversionException("Confidence", confs.size(), psi.getConfidences().size());
  }
}
origin: uk.ac.ebi.intact.core/intact-core

Collection<Component> initializedComponents1 = IntactCore.ensureInitializedParticipants(this);
Collection<Component> initializedComponents2 = IntactCore.ensureInitializedParticipants(interaction);
origin: uk.ac.ebi.intact.core/intact-core-readonly

Collection<Component> initializedComponents1 = IntactCore.ensureInitializedParticipants(this);
Collection<Component> initializedComponents2 = IntactCore.ensureInitializedParticipants(interaction);
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

components = IntactCore.ensureInitializedParticipants(intactObject);
confidences = IntactCore.ensureInitializedConfidences(intactObject);
parameters = IntactCore.ensureInitializedInteractionParameters(intactObject);
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

protected void failIfInconsistentConversion(Interaction intact, psidev.psi.mi.xml.model.Interaction psi) {
  Collection<Experiment> experiments;
  Collection<Component> participants;
  Collection<Confidence> confidences;
  if (isCheckInitializedCollections()){
    experiments = IntactCore.ensureInitializedExperiments(intact);
    participants = IntactCore.ensureInitializedParticipants(intact);
    confidences = IntactCore.ensureInitializedConfidences(intact);
  }
  else {
    experiments = intact.getExperiments();
    participants = intact.getComponents();
    confidences = intact.getConfidences();
  }
  failIfInconsistentCollectionSize("experiment", experiments, psi.getExperiments());
  failIfInconsistentCollectionSize("participant", participants, psi.getParticipants());
  failIfInconsistentCollectionSize( "confidence", confidences, psi.getConfidences());
}
origin: uk.ac.ebi.intact.core/intact-core

Collection<Component> components = IntactCore.ensureInitializedParticipants(interaction);
origin: uk.ac.ebi.intact.core/intact-core-readonly

Collection<Component> components = IntactCore.ensureInitializedParticipants(interaction);
uk.ac.ebi.intact.core.persisterIntactCoreensureInitializedParticipants

Javadoc

Retrieves the components from an interaction, initializing them if necessary. Do not set the initialized collection of components because components cannot be orphan

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
  • ensureInitializedRanges
    Retrieves the ranges from a feature, initializing them if necessary.
  • ensureInitializedParticipantIdentificationMethods,
  • ensureInitializedRanges,
  • ensureInitializedXrefs,
  • ensureInitializedInteractions,
  • ensureInitializedLifecycleEvents,
  • ensureInitializedPreferences,
  • ensureInitializedRoles,
  • initialize,
  • initializeAnnotatedObject

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Option (scala)
  • From CI to AI: The AI layer in your organization
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