private SAMFileHeader samFileHeader;
private CramIndex index;
public CraiIndexer(InputStream is, File output)
throws FileNotFoundException, IOException {
this.is = new CountingInputStream(is);
CramHeader cramHeader = ReadWrite.readCramHeader(this.is);
samFileHeader = cramHeader.samFileHeader;
index = new CramIndex(new GZIPOutputStream(new BufferedOutputStream(
new FileOutputStream(output))));