You don't know which reads come from exonic regions until you map them. As far as I know your only option would be to first map them all and then, if needed, extract the "exome" regions.
Hi I would like to download some WGS from dbgap with prefetch.2.9.1. But I get the below message: 2018-08-27T23:17:32 prefetch.2.9.1 warn: Maximum file size download …
Why not map as usual and find out which reads map to the exome?
Actually, because my pipeline is not optimized for WGS and it takes a lot of time to run the WGS so I want just subsample and map it to WES?
You don't know which reads come from exonic regions until you map them. As far as I know your only option would be to first map them all and then, if needed, extract the "exome" regions.