congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IntactCore.ensureInitializedConfidences
Code IndexAdd Tabnine to your IDE (free)

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

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

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<Confidence> initializedConfidence1 = IntactCore.ensureInitializedConfidences(this);
Collection<Confidence> initializedConfidence2 = IntactCore.ensureInitializedConfidences(interaction);
origin: uk.ac.ebi.intact.core/intact-core-readonly

Collection<Confidence> initializedConfidence1 = IntactCore.ensureInitializedConfidences(this);
Collection<Confidence> initializedConfidence2 = IntactCore.ensureInitializedConfidences(interaction);
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

experiments = IntactCore.ensureInitializedExperiments(intactObject);
components = IntactCore.ensureInitializedParticipants(intactObject);
confidences = IntactCore.ensureInitializedConfidences(intactObject);
parameters = IntactCore.ensureInitializedInteractionParameters(intactObject);
annotations = IntactCore.ensureInitializedAnnotations(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<Confidence> confidences = IntactCore.ensureInitializedConfidences(interaction);
origin: uk.ac.ebi.intact.core/intact-core-readonly

Collection<Confidence> confidences = IntactCore.ensureInitializedConfidences(interaction);
uk.ac.ebi.intact.core.persisterIntactCoreensureInitializedConfidences

Javadoc

Retrieves the confidences from an interaction, initializing them if necessary. Do not set the initialized collection of confidences because confidences 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
  • 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
  • ensureInitializedRanges
    Retrieves the ranges from a feature, initializing them if necessary.
  • ensureInitializedParticipants,
  • ensureInitializedRanges,
  • ensureInitializedXrefs,
  • ensureInitializedInteractions,
  • ensureInitializedLifecycleEvents,
  • ensureInitializedPreferences,
  • ensureInitializedRoles,
  • initialize,
  • initializeAnnotatedObject

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Menu (java.awt)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Sublime Text plugins
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