The instructions to install BamQuery can be found here: manual_installation or on our Github page: BamQuery_git.