Package net.sf.cram.encoding.read_features

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


      cigarElementLength = cigarElement.getLength();
      CigarOperator operator = cigarElement.getOperator();

      switch (operator) {
      case D:
        features.add(new Deletion(zeroBasedPositionInRead + 1,
            cigarElementLength));
        break;
      case N:
        features.add(new RefSkip(zeroBasedPositionInRead + 1,
            cigarElementLength));
View Full Code Here


        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;
      case InsertBase.operator:
        InsertBase ib = (InsertBase) v;
        bases[posInRead++ - 1] = ib.getBase();
        break;
View Full Code Here

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

        case SoftClip.operator:
          SoftClip fv = (SoftClip) f;
          softClipCodec.writeData(fv.getSequence());
          break;
        case Deletion.operator:
          Deletion dv = (Deletion) f;
          dlc.writeData(dv.getLength());
          break;
        case RefSkip.operator:
          RefSkip rsv = (RefSkip) f;
          refSkipCodec.writeData(rsv.getLength());
          break;
View Full Code Here

            sv.setPosition(newPos);
            sv.setBaseChange(new BaseChange(random.nextInt(4)));
            record.getReadFeatures().add(sv);
            break;
          case Deletion.operator:
            Deletion dv = new Deletion();
            dv.setPosition(newPos);
            dv.setLength(random.nextInt(10));
            record.getReadFeatures().add(dv);
            break;
          case Insertion.operator:
            Insertion iv = new Insertion();
            iv.setPosition(newPos);
View Full Code Here

TOP

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

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.