This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to obtain and compare genomic coordinates from RepeatMasker output?

Hello folks!

I want to mask a genome with a particular repeat library using RepeatMasker.

Then I want to cross the coordinates of the repeats with those of gene annotations to find overlaps between them and study associations and stuff.

I'm only starting to consider feasible ways to do that so any input would be great.

Thanks!

repeats repeatmasker genome browser gbrowse

2 answers

Sounds like a job for BedTools. You should be able to make a GFF from the RepeatMasker output and use bedtools intersect to find overlaps.

Thank you very much! I reading BEDTools' documentation and it really seems to be the right tool for this task.

The answer by Jon is a good one to get overlaps, and I can tell you how to make the GFF. In the 'util' directory of the RepeatMasker distribution there is a script called 'rmOutToGFF3.pl' that will do the conversion. The usage is pretty simple since it writes to stdout:

perl rmOutToGFF3.pl my_repeatmasker.out > my_repeatmasker.gff

Thank you very much! This will help a lot.

Log in to answer this question.