Bio.IO.BAM.BAMFormatter.CreateBAMIndexFile C# (CSharp) Method

CreateBAMIndexFile() private static method

Creates BAMIndex object from the specified BAM file and writes to specified BAMIndex file.
private static CreateBAMIndexFile ( Stream compressedBAMStream, Bio.IO.BAM.BAMIndexStorage indexStorage ) : void
compressedBAMStream Stream
indexStorage Bio.IO.BAM.BAMIndexStorage
return void
        private static void CreateBAMIndexFile(Stream compressedBAMStream, BAMIndexStorage indexStorage)
        {
            var parser = new BAMParser();
            BAMIndex bamIndex = parser.GetIndexFromBAMStorage(compressedBAMStream);
            indexStorage.Write(bamIndex);
        }