Ramiro Barrantes Reynolds
08/29/2024, 8:54 PMThomas Danhorn
08/29/2024, 10:13 PM--intervals, everything from the BQSR on will be restricted to those intervals. Which file you use for that depends on the kit that was used for the WES. (If you had WGS, you would use by the default GATK file that only excludes centromers, telomers, etc.) Most of these kits come from Agilent (at least the ones I've worked with; if you have something else, you'll have to figure it out). You'll have to find out the exact kit (e.g. order number or similar), because especially for human they have a bewildering array of options and version with very similar names. If you do this often, you can create an account on their website and log in to view all of their prefabricated designs and download the reference data corresponding to one that matches your kit. If in doubt or you don't want an account, you can e-mail them with whatever kit information you have, and they will send you a download link. You get a ZIP file with typically BEDs for the intended targets, everything that is sufficiently homologous to the targets to be likely to be enriched, a padded version of that, etc. I typically use the padded version for the pipeline to be inclusive (since everything outside that will be discarded). If you want/need, you can later use a "narrower" file for filtering. For human these sets come in hg38 and sometimes hg19 as well, so these work well with iGenomes reference files.
The only problem is that these BEDs have header lines intended for the UCSC genome browser, as well as extra columns with annotation information, both of which will trip up sarek. But you can easily clean them up with cut -f 1-3 "$origbed" | grep -ve '^browser ' -e '^track ' > "$cleanbed".Thomas Danhorn
08/29/2024, 10:18 PMRamiro Barrantes Reynolds
08/29/2024, 10:19 PMGeorge Seed
08/30/2024, 8:28 AM