Awesome
bamUtil
These files provide some programs for working on SAM/BAM files.
To Build
To use git to clone the required statgen library:
make cloneLib
Next, to build libStatGen & this program:
make
To install:
make install INSTALLDIR=pathToInstall