Package net.sf.cram

Examples of net.sf.cram.AlignmentSliceQuery


    SAMFileReader r1 = new SAMFileReader(params.file1);
    SAMFileReader r2 = new SAMFileReader(params.file2);

    SAMRecordIterator it1, it2;
    if (params.location != null) {
      AlignmentSliceQuery query = new AlignmentSliceQuery(params.location);
      if (SAMRecord.NO_ALIGNMENT_REFERENCE_NAME.equals(query.sequence)) {
        it1 = r1.queryUnmapped();
        it2 = r2.queryUnmapped();
      } else {
        it1 = r1.queryContained(query.sequence, query.start, query.end);
View Full Code Here


    SAMRecordIterator it = null;
    if (params.location == null)
      it = reader.iterator();
    else {
      AlignmentSliceQuery query = new AlignmentSliceQuery(params.location);
      it = reader.query(query.sequence, query.start, query.end, false);
    }

    it = new BoundSAMRecordIterator(it, params.skipRecords,
        params.skipRecords + params.maxRecords);
View Full Code Here

TOP

Related Classes of net.sf.cram.AlignmentSliceQuery

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.