Package net.sf.cram.encoding.read_features

Examples of net.sf.cram.encoding.read_features.SoftClip


      byte[] scores) {
    byte[] insertedBases = Arrays.copyOfRange(bases,
        zeroBasedPositionInRead, zeroBasedPositionInRead
            + cigarElementLength);

    SoftClip v = new SoftClip(zeroBasedPositionInRead + 1, insertedBases);
    features.add(v);
  }
View Full Code Here


        Insertion iv = (Insertion) v;
        for (int i = 0; i < iv.getSequence().length; i++)
          bases[posInRead++ - 1] = iv.getSequence()[i];
        break;
      case SoftClip.operator:
        SoftClip sc = (SoftClip) v;
        for (int i = 0; i < sc.getSequence().length; i++)
          bases[posInRead++ - 1] = sc.getSequence()[i];
        break;
      case Deletion.operator:
        Deletion dv = (Deletion) v;
        posInSeq += dv.getLength();
        break;
View Full Code Here

          case Insertion.operator:
            Insertion iv = new Insertion(pos, inc.readData());
            rf.add(iv);
            break;
          case SoftClip.operator:
            SoftClip fv = new SoftClip(pos,
                softClipCodec.readData());
            rf.add(fv);
            break;
          case Deletion.operator:
            Deletion dv = new Deletion(pos, dlc.readData());
View Full Code Here

        case Insertion.operator:
          Insertion iv = (Insertion) f;
          inc.writeData(iv.getSequence());
          break;
        case SoftClip.operator:
          SoftClip fv = (SoftClip) f;
          softClipCodec.writeData(fv.getSequence());
          break;
        case Deletion.operator:
          Deletion dv = (Deletion) f;
          dlc.writeData(dv.getLength());
          break;
View Full Code Here

TOP

Related Classes of net.sf.cram.encoding.read_features.SoftClip

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.