Package net.sf.cram.stats

Examples of net.sf.cram.stats.CramStats


  public Container writeRecords(CramHeader cramHeader, Collection<CramRecord> records, SequenceBaseProvider provider)
      throws IOException, CramCompressionException {
    List<Block> blocks = new ArrayList<Block>();

    CramStats stats = new CramStats(cramHeader, null);
    for (CramRecord record : records)
      stats.addRecord(record);

    CramRecordBlock crBlock = new CramRecordBlock();
    stats.adjustBlock(crBlock);
    crBlock.setSequenceName("20");
    crBlock.setRecordCount(records.size());

    ByteArrayOutputStream bhBAOS = new ByteArrayOutputStream();
    CramRecordBlockWriter w = new CramRecordBlockWriter(bhBAOS);
View Full Code Here

TOP

Related Classes of net.sf.cram.stats.CramStats

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.