Package org.moltools.lib.seq

Examples of org.moltools.lib.seq.SequenceStringElement


  }

  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;
  }
View Full Code Here


    StringBuffer viewString  = new StringBuffer(""); //$NON-NLS-1$
    int pos = targetPoly == 0 ? variantIndex : -1;
    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();
      }

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

    String viewString = ""; //$NON-NLS-1$
    int pos = targetPoly == 0 ? variantIndex : -1;
    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();

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

TOP

Related Classes of org.moltools.lib.seq.SequenceStringElement

Copyright © 2018 www.massapicom. 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.