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

How to use
getPreferredIdentifier
method
in
psidev.psi.mi.jami.model.Interactor

Best Java code snippets using psidev.psi.mi.jami.model.Interactor.getPreferredIdentifier (Showing top 7 results out of 315)

origin: psidev.psi.mi.jami/jami-mitab

public void writeUniqueIdentifier(P participant) throws IOException {
  if (participant == null){
    writer.write(MitabUtils.EMPTY_COLUMN);
  }
  else {
    Interactor interactor = participant.getInteractor();
    // write first identifier
    if (!interactor.getIdentifiers().isEmpty()){
      writeIdentifier(interactor.getPreferredIdentifier());
    }
    else{
      writer.write(MitabUtils.EMPTY_COLUMN);
    }
  }
}
origin: psidev.psi.mi.jami/jami-mitab

boolean isFirst = true;
Xref next = null;
Xref preferred = interactor.getPreferredIdentifier();
do {
  next = identifierIterator.next();
origin: psidev.psi.mi.jami/jami-mitab

while (interactorIterator.hasNext()){
  Interactor subInteractor = interactorIterator.next();
  Xref preferredId = subInteractor.getPreferredIdentifier();
  if (preferredId != null){
    getWriter().write(MitabUtils.FIELD_SEPARATOR);
while (interactorIterator.hasNext()){
  Interactor subInteractor = interactorIterator.next();
  Xref preferredId = subInteractor.getPreferredIdentifier();
  if (preferredId != null){
    getWriter().write(MitabUtils.FIELD_SEPARATOR);
while (interactorIterator.hasNext()){
  Interactor subInteractor = interactorIterator.next();
  Xref preferredId = subInteractor.getPreferredIdentifier();
  if (preferredId != null){
    if (!first){
origin: psidev.psi.mi.jami/jami-interactionviewer-json

Interactor interactor = object.getInteractor();
keyValues = MIJsonUtils.extractInteractionId(interactor.getPreferredIdentifier(), (Complex)interactor);
keyValues = MIJsonUtils.extractInteractorId(interactor.getPreferredIdentifier(), interactor);
origin: psidev.psi.mi.jami/jami-interactionviewer-json

public void write(Interactor object) throws IOException {
  String[] interactorIds = MIJsonUtils.extractInteractorId(object.getPreferredIdentifier(), object);
  String interactorKey = interactorIds[0]+"_"+interactorIds[1];
    if (object.getPreferredIdentifier() != null){
      MIJsonUtils.writeSeparator(writer);
      MIJsonUtils.writePropertyKey("identifier", writer);
      getIdentifierWriter().write(object.getPreferredIdentifier());
origin: psidev.psi.mi.jami/jami-interactionviewer-json

String[] extractedInteractorId =  MIJsonUtils.extractInteractorId(interactor.getPreferredIdentifier(), interactor);
String key = extractedInteractorId[0]+"_"+extractedInteractorId[1];
origin: psidev.psi.mi.jami/jami-interactionviewer-json

if (object.getPreferredIdentifier() != null){
  MIJsonUtils.writeSeparator(writer);
  MIJsonUtils.writePropertyKey("identifier", writer);
  getIdentifierWriter().write(object.getPreferredIdentifier());
psidev.psi.mi.jami.modelInteractorgetPreferredIdentifier

Javadoc

The identifier in the list of identifiers which is the preferred identifier. If no identifiers is preferred, it should return the first identifier of the list of identifiers, null if the list of identifiers is empty.

Popular methods of Interactor

  • getShortName
    The short name of the interactor. It cannot be null or empty. Ex: brca2
  • getAliases
    Collection of aliases for an interactor The Collection cannot be null and if the interactor does not
  • getAnnotations
    Collection of annotations for an interactor. The set cannot be null and if the interactor does not h
  • getIdentifiers
    Set of identifiers for this interactor. The identifiers can be from different databases, can be prim
  • getInteractorType
    The molecule type of this interactor. It is a controlled vocabulary term and cannot be null. Ex: pro
  • getOrganism
    The original source organism for this interactor. It can be null in case of chemical compounds/synth
  • getChecksums
    Set of checksums computed for this interactor. The Collection cannot be null so when an interactor d
  • getXrefs
    Collection of other xrefs that give more information about the interactor. Ex: GO references to give
  • getFullName
    The full name of the interactor. It can be null Ex: Breast cancer type 2 susceptibility protein
  • setFullName
    Sets the full name of the interactor
  • setOrganism
    Sets the source organism of this interactor
  • setInteractorType
    Sets the molecule type for this interactor If the given type is null, this method automatically sets
  • setOrganism,
  • setInteractorType,
  • setShortName

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JTextField (javax.swing)
  • Top plugins for WebStorm
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