How to subset a BAM by a list of QNAMEs?
use picard FilterSamReads http://broadinstitute.github.io/picard/command-line-overview.html#FilterSamReads


  READ_LIST_FILE (File) Read List File containing reads that will be included or excluded from the OUTPUT SAM or BAM file. Default value: null.