BamTools are a C++ API & command-line toolkit for working with BAM data. Tool Web Link: https://github.com/pezmaster31/bamtools/wiki