How to convert SAM/BAM file to GTF/GFF file?

How to convert SAM/BAM file to GTF/GFF file?

1

Hello,
Curious to know if there’s a way to convert SAM/BAM file generated using minimap2 to GTF/GFF file. The purpose is to use it as transcript alignment evidence for EVM.
Kindly suggest!

Regards,
B


GTF


SAM


BAM


GFF


minimap2

• 32 views

You can convert to BED format with

bedtools bamtobed

then either use the resulting BED file or transform that to GFF. But with the caveat that it is none of the attributes would be filled in, so it would be quite the minimal and simplistic GFF

a better solution would be to use a tool like miniprot

github.com/lh3/miniprot

to generate actual GFF files based on proteins aligned to genome


Login
before adding your answer.

Read more here: Source link