This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Get GC content for a list of intervals in a bed file

I have a list of intervals in bed file format eg

chr      chromStart       chromEnd
chr1     13223            13999
chr2     1111             22222

etc.

I would like to ascertain the GC density within the whole interval (or just before, just after etc- basically wherever I specify). Is there a way to do this easily from a bed file ( I don't have raw sequences) for all the intervals at the same time?

sequencing

1 answer

You can do this easily enough in R. Here's a script that demonstrates how to do that for genes in a GTF file. A BED file would be even simpler.

Log in to answer this question.