Entering edit mode
4.1 years ago
valopes
▴
30
Hi everybody,
I have a bam file, from a mapping done with minimap2, and I need to extract the read IDs based on the genome features (gff3). Let's say: read A was mapped on the features (genes) 1 and 2 (if multiple mapped); read B was mapped on the feature (gene) 3
Actually, I am trying to figure out the best way to extract more info from Liftoff analysis, where outputs do not clearly show the correlation between features.
Does anyone have any ideas?
Thank you in advance!
Looks like you are looking for secondary alignments. You could look at the
SA
tags in the alignments.It is not secondary alignments.
I want to know which read (read ID) mapped in a determined gene. So, it would be something like
It may be best to do this the other way. Get a BED file with gene co-ordinate intervals from a GTF file. Find out which reads are aligned to those intervals using
samtools view region
.Thank you! I will try it and let you know how it goes...