Examples of BAMFileWriter


Examples of net.sf.samtools.BAMFileWriter

      }
    } else if (params.outputFile == null) {
      OutputStream os = new BufferedOutputStream(System.out);
      if (params.outputBAM) {
        BAMFileWriter ret = new BAMFileWriter(os, null);
        ret.setSortOrder(cramHeader.samFileHeader.getSortOrder(), true);
        ret.setHeader(cramHeader.samFileHeader);
        writer = ret;
      } else {
        writer = Utils.createSAMTextWriter(samFileWriterFactory, os,
            cramHeader.samFileHeader, params.printSAMHeader);
      }
View Full Code Here

Examples of net.sf.samtools.BAMFileWriter

            params.outFile);
    else if (!params.samFormat) {
      // hack to write BAM format to stdout:
      File file = File.createTempFile("bam", null);
      file.deleteOnExit();
      BAMFileWriter bamWriter = new BAMFileWriter(System.out, file);
      header.setSortOrder(SortOrder.coordinate);
      bamWriter.setHeader(header);
      writer = bamWriter;
    }

    else {
      writer = Utils.createSAMTextWriter(null, System.out, header,
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.