Selective capture of transcribed sequences in the functional gene analysis of microbial pathogens