This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How can you convert a GATK interval_list file into a BED file

I'm trying to convert an interval list into a BED file, any ideas on how to do it?

Thanks,
Mark

bed interval-list gatk

2 answers

From file test.interval

sed 's/:\|-/\t/gi' test.interval > test.bed

Hello, I am having the same issues as the individual who originally posted. I tried using the command you provided and then inputting into the UCSC liftover tool, but I received an error that the BED format was incorrect. Do you have any other suggestions on how to convert a GATK .interval_list into BED format?

It appears that Picard has a tool to do the opposite of what I'd like to do.

http://broadinstitute.github.io/picard/command-line-overview.html#BedToIntervalList

Do you mean GATK interval list or Picard interval list?

Log in to answer this question.