This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Calculating coverage on a list of individual genes in WES data?

I have whole exome sequencing VCF and CRAM files from a few human samples and would like to calculate the sequence coverage on a list of individual genes. Is there a good way to go about doing this?

sequencing next-gen whole exome sequencing

Thanks! I installed Alfred, but am unsure how to make a list of genes in .bed format. Also, does this program work for .cram files?

Please use ADD COMMENT/ADD REPLY when responding to existing posts to keep threads logically organized.

This comment belongs under @trausch's answer.

I recently added cram support. If you clone the github repository there is an example Rscript that downloads ccds genes from UCSC and stores all exons in a BED file.

1 answer

If you want a fragment count table for these genes you can use Alfred:

alfred count_dna -o cov.tsv.gz -i genes.bed <input.bam>

For estimating the on-target rate and the avg. coverage per target region:

alfred qc -b genes.bed -o qc.tsv.gz -r <genome.fa> <input.bam>

Static binaries are available here or via Bioconda.

Log in to answer this question.