Annotate mapping entries of a BAM file based on overlaps with BED files using BEDtools

tagBam -i run.bam -files RefSeq.bed -names -tag GA > run.tagged.bam

A SAM-tag called GA (GA:Z:XXX) will be added to all entries overlapping with an annotated gene, naming the genes ID.

Last updated on May 06, 2013

ecSeq is a bioinformatics solution provider with solid expertise in the analysis of high-throughput sequencing data. We organize public workshops and conduct on-site trainings on NGS data analysis.

Would you like to receive updates about our NGS trainings and solutions? Then sign-up for our newsletter