How can you convert a GATK interval_list file into a BED file
2
1
Entering edit mode
9.5 years ago

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 • 7.8k views
ADD COMMENT
3
Entering edit mode
9.5 years ago
Zaag ▴ 870

From file test.interval

sed 's/:\|-/\t/gi' test.interval > test.bed
ADD COMMENT
0
Entering edit mode

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?

ADD REPLY
0
Entering edit mode

you can try

sed 's/:\|-/\t/gi' test.interval | grep -v "^@" | cut -f 1-3 > test.bed

at the end of the day the only requirement is to satisfy what's here: https://m.ensembl.org/info/website/upload/bed.html so columns 1-3 is just the bare minimum.

ADD REPLY
0
Entering edit mode
9.5 years ago

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

ADD COMMENT
0
Entering edit mode

Do you mean GATK interval list or Picard interval list?

ADD REPLY

Login before adding your answer.

Traffic: 2110 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6