Package net.sf.samtools

Examples of net.sf.samtools.SAMFileReader.query()


        SAMFileReader reader = new SAMFileReader(file, index);
        source.reader = reader;
        if (query == null)
          source.it = reader.iterator();
        else
          source.it = reader.query(query.sequence, query.start,
              query.end, true);
      } else {
        index = new File(file.getAbsolutePath() + ".crai");
        if (index.exists()) {
          SAMFileReader reader = new SAMFileReader(file);
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);
    SAMFieldSelector s = new SAMFieldSelector(params.fields);
View Full Code Here

    scFactory.losslessQS = true;
    scFactory.preserveReadNames = true;
    SequenceBaseProvider provider = new ByteArraySequenceBaseProvider(refBytes);

    SAMFileReader reader = new SAMFileReader(bamFile);
    SAMRecordIterator iterator = reader.query(seqName, 0, 0, false);
    List<CramRecord> records = new ArrayList<CramRecord>();

    PairedTemplateAssembler a = new PairedTemplateAssembler();
    int counter = 0;
    int bases = 0;
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.