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

How to use
Protein2xmlPSI1
in
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi1

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

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

element.setAttribute( "id", getProteinId( protein ) );
createNames( session, element, protein );
createProteinXrefs( session, element, protein );
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

  /**
   * Gives the right version of the Psi XML generator according to the user's session
   *
   * @param session the user session that will indicate which version of the Psi generator is required
   *
   * @return
   */
  public static Protein2xmlI getInstance( UserSessionDownload session ) {

    if ( session.getPsiVersion().equals( PsiVersion.VERSION_1 ) ) {

      return Protein2xmlPSI1.getInstance();

    } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_2 ) ) {

      return Protein2xmlPSI2.getInstance();

    } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_25 ) ) {

      throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() +
                       ". Please use Interactor2xmlPSI25 instead." );

    } else {

      throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() );
    }
  }
}
origin: uk.ac.ebi.intact.app/data-conversion

element.setAttribute( "ref", getProteinId( protein ) );
origin: uk.ac.ebi.intact.app/data-conversion

  /**
   * Gives the right version of the Psi XML generator according to the user's session
   *
   * @param session the user session that will indicate which version of the Psi generator is required
   *
   * @return
   */
  public static Protein2xmlI getInstance( UserSessionDownload session ) {

    if ( session.getPsiVersion().equals( PsiVersion.VERSION_1 ) ) {

      return Protein2xmlPSI1.getInstance();

    } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_2 ) ) {

      return Protein2xmlPSI2.getInstance();

    } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_25 ) ) {

      throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() +
                       ". Please use Interactor2xmlPSI25 instead." );

    } else {

      throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() );
    }
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

element.setAttribute( "ref", getProteinId( protein ) );
origin: uk.ac.ebi.intact.util/data-conversion

element.setAttribute( "id", getProteinId( protein ) );
createNames( session, element, protein );
createProteinXrefs( session, element, protein );
origin: uk.ac.ebi.intact.util/data-conversion

  /**
   * Gives the right version of the Psi XML generator according to the user's session
   *
   * @param session the user session that will indicate which version of the Psi generator is required
   *
   * @return
   */
  public static Protein2xmlI getInstance( UserSessionDownload session ) {

    if ( session.getPsiVersion().equals( PsiVersion.VERSION_1 ) ) {

      return Protein2xmlPSI1.getInstance();

    } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_2 ) ) {

      return Protein2xmlPSI2.getInstance();

    } else if ( session.getPsiVersion().equals( PsiVersion.VERSION_25 ) ) {

      throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() +
                       ". Please use Interactor2xmlPSI25 instead." );

    } else {

      throw new IllegalStateException( "We do not support PSI version " + session.getPsiVersion() );
    }
  }
}
origin: uk.ac.ebi.intact.util/data-conversion

element.setAttribute( "ref", getProteinId( protein ) );
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

element.setAttribute( "id", getProteinId( protein ) );
createNames( session, element, protein );
createProteinXrefs( session, element, protein );
uk.ac.ebi.intact.application.dataConversion.psiDownload.xmlGenerator.psi1Protein2xmlPSI1

Javadoc

Process the common behaviour of an IntAct Protein when exporting PSI version 1.

Most used methods

  • createNames
  • createProteinXrefs
    Generate the xref tag of the given protein. That content is attached to the given parent Element.
  • getInstance
  • getProteinId
    get the value what will be used as ID of the protein.

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm 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