Package org.moltools.lib.seq

Examples of org.moltools.lib.seq.SequenceStringElement.seqString()


  public static String sequenceOf(List<SequenceElement> elements) {
    String sequenceString = ""; //$NON-NLS-1$
    for (Iterator<SequenceElement> i = elements.iterator(); i.hasNext(); ) {
      SequenceStringElement e = (SequenceStringElement) i.next();
      sequenceString += e.seqString();
    }
    return sequenceString;
  }

  /**Parses a sequence string and returns an ArrayList of nucleotides and polymorphisms
View Full Code Here


    int index = 0;
    List<SequenceElement> el = getElements();
    for (int i = 0;i<el.size();i++) {
      SequenceStringElement se = (SequenceStringElement) el.get(i);
      if (se instanceof InDel) {
        viewString.append(inDelBeginSymbol + se.seqString() + inDelEndSymbol);
        index += se.length();
      }
      else {
        viewString.append(se.seqString());
        index += se.length();
View Full Code Here

      if (se instanceof InDel) {
        viewString.append(inDelBeginSymbol + se.seqString() + inDelEndSymbol);
        index += se.length();
      }
      else {
        viewString.append(se.seqString());
        index += se.length();
      }

      if (index == pos) {
        viewString.append(positionSymbol);
View Full Code Here

    int index = 0;
    List<SequenceElement> el = getElements();
    for (int i = 0;i<el.size();i++) {
      SequenceStringElement se = (SequenceStringElement) el.get(i);
      if (se instanceof InDel)
        viewString += inDelBeginSymbol + se.seqString() + inDelEndSymbol;
      else
        viewString += se.seqString();

      index += se.length();
View Full Code Here

    for (int i = 0;i<el.size();i++) {
      SequenceStringElement se = (SequenceStringElement) el.get(i);
      if (se instanceof InDel)
        viewString += inDelBeginSymbol + se.seqString() + inDelEndSymbol;
      else
        viewString += se.seqString();

      index += se.length();

      if (index == pos) {
        viewString += positionSymbol;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.