Tabnine Logo
Range.getResultingSequence
Code IndexAdd Tabnine to your IDE (free)

How to use
getResultingSequence
method
in
psidev.psi.mi.jami.model.Range

Best Java code snippets using psidev.psi.mi.jami.model.Range.getResultingSequence (Showing top 5 results out of 315)

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

  /**
   * Use DefaultRangeComparator to know if two ranges are equals.
   * @param range1
   * @param range2
   * @return true if the two ranges are equal
   */
  public static boolean areEquals(Range range1, Range range2){

    if (range1 == range2){
      return true;
    }
    else if (range1 == null || range2 == null){
      return false;
    }
    else {
      if (!DefaultRangeComparator.areEquals(range1, range2)){
        return false;
      }

      ResultingSequence resultingSequence1 = range1.getResultingSequence();
      ResultingSequence resultingSequence2 = range2.getResultingSequence();

      return ResultingSequenceComparator.areEquals(resultingSequence1, resultingSequence2);
    }
  }
}
origin: psidev.psi.mi.jami/jami-core

ResultingSequence resultingSequence1 = range1.getResultingSequence();
ResultingSequence resultingSequence2 = range2.getResultingSequence();
origin: psidev.psi.mi.jami/jami-core

/**
 * All properties are copied from source to target excepted the participant
 * @param source
 * @param target
 */
public static void copyAndOverrideRangeProperties(Range source, Range target){
  if (source != null && target != null){
    target.setPositions(source.getStart(), source.getEnd());
    target.setLink(source.isLink());
    target.setResultingSequence(source.getResultingSequence());
  }
}
origin: psidev.psi.mi.jami/jami-interactionviewer-json

if (object.getResultingSequence() != null && object.getResultingSequence().getNewSequence() != null){
  MIJsonUtils.writeSeparator(writer);
  MIJsonUtils.writeProperty("resultingSequence", JSONValue.escape(object.getResultingSequence().getNewSequence()), writer);
origin: psidev.psi.mi.jami/jami-core

  /**
   *
   * @param range
   * @return the hashcode consistent with the equals method for this comparator
   */
  public static int hashCode(Range range){
    if (unambiguousRangeAndResultingSequenceComparator == null){
      unambiguousRangeAndResultingSequenceComparator = new UnambiguousRangeAndResultingSequenceComparator();
    }

    if (range == null){
      return 0;
    }

    int hashcode = 31;
    Position start = range.getStart();
    hashcode = 31*hashcode + UnambiguousPositionComparator.hashCode(start);
    Position end = range.getEnd();
    hashcode = 31*hashcode + UnambiguousPositionComparator.hashCode(end);
    hashcode = 31 * hashcode + (range.isLink() ? 0 : 1);

    ResultingSequence resultingSequence = range.getResultingSequence();
    hashcode = 31 * hashcode + ResultingSequenceComparator.hashCode(resultingSequence);

    return hashcode;
  }
}
psidev.psi.mi.jami.modelRangegetResultingSequence

Javadoc

The resultingSequence in case of mutation or variant. It can be null if not relevant for this range.

Popular methods of Range

  • getParticipant
    The participating molecule that this range refers to. It can refer to any entity (participant, parti
  • getEnd
    The end position of the feature range in the interactor sequence It cannot be null
  • getStart
    The start position of the feature range in the interactor sequence It cannot be null
  • isLink
    Link boolean to know if two amino acids/nucleic acids are linked in the feature range (ex: disulfure
  • setLink
    Sets the link boolean for this Range
  • setParticipant
    Sets the participating molecule that the range refers to
  • setPositions
    Set the positions of the feature range in the interactor sequence
  • setResultingSequence
    Sets the resultingSequence of this range object

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Notification (javax.management)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top 12 Jupyter Notebook extensions
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