Hi,
I'm looking for a method/tool for annotating a bam file.
After running the mapping with STAR, I have filtered my bam file for specific reads, I am interested in. I would now like to assign a gene (nearest gene) or any other genomic structure, if possible to each of the reads.
Best case scenario, I would like to get as an output a table of the reads and the annotation as a table.
Is there something like that out there?
thanks
You can complement @ATPoint's solution by pulling reads out with
samtools view region
.