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

How to use
create
method
in
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi1.Confidence2xmlPSI1

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi1.Confidence2xmlPSI1.create (Showing top 3 results out of 315)

origin: uk.ac.ebi.intact.app/data-conversion

/**
 * Convert an annotatedObject annotations in to confidence value in PSI.
 *
 * @param session
 * @param parent          the Element to which we will attach the generated confidence.
 * @param annotatedObject the object from which we get the annotations.
 *
 * @return the generated confidence or null if none could be generated.
 */
public Element create( UserSessionDownload session, Element parent, AnnotatedObject annotatedObject ) {
  Element element = null;
  if ( annotatedObject instanceof Interaction ) {
    element = create( session, parent, annotatedObject, CvTopic.AUTHOR_CONFIDENCE );
  } else if ( annotatedObject instanceof Experiment ) {
    element = create( session, parent, annotatedObject, CvTopic.CONFIDENCE_MAPPING );
  } else {
    // error, type not supported.
    throw new UnsupportedOperationException( "a confidence can only be generated for an interaction or an experiemnt." );
  }
  return element;
}
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Convert an annotatedObject annotations in to confidence value in PSI.
 *
 * @param session
 * @param parent          the Element to which we will attach the generated confidence.
 * @param annotatedObject the object from which we get the annotations.
 *
 * @return the generated confidence or null if none could be generated.
 */
public Element create( UserSessionDownload session, Element parent, AnnotatedObject annotatedObject ) {
  Element element = null;
  if ( annotatedObject instanceof Interaction ) {
    element = create( session, parent, annotatedObject, CvTopic.AUTHOR_CONFIDENCE );
  } else if ( annotatedObject instanceof Experiment ) {
    element = create( session, parent, annotatedObject, CvTopic.CONFIDENCE_MAPPING );
  } else {
    // error, type not supported.
    throw new UnsupportedOperationException( "a confidence can only be generated for an interaction or an experiemnt." );
  }
  return element;
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Convert an annotatedObject annotations in to confidence value in PSI.
 *
 * @param session
 * @param parent          the Element to which we will attach the generated confidence.
 * @param annotatedObject the object from which we get the annotations.
 *
 * @return the generated confidence or null if none could be generated.
 */
public Element create( UserSessionDownload session, Element parent, AnnotatedObject annotatedObject ) {
  Element element = null;
  if ( annotatedObject instanceof Interaction ) {
    element = create( session, parent, annotatedObject, CvTopic.AUTHOR_CONFIDENCE );
  } else if ( annotatedObject instanceof Experiment ) {
    element = create( session, parent, annotatedObject, CvTopic.CONFIDENCE_MAPPING );
  } else {
    // error, type not supported.
    throw new UnsupportedOperationException( "a confidence can only be generated for an interaction or an experiemnt." );
  }
  return element;
}
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi1Confidence2xmlPSI1create

Javadoc

Convert an annotatedObject annotations in to confidence value in PSI.

Popular methods of Confidence2xmlPSI1

  • getInstance

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • getSystemService (Context)
  • getContentResolver (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Option (scala)
  • Top Vim 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