This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Identifying CpG islands given a vcf variant file

Hi all,

I'm looking to find a way to identify CpG islands around a given set of variants listed in a vcf file. Any ideas?

Thanks!

Sagi

vcf cpg-islands

2 answers

  1. Download a BED file of CpG islands from UCSC.
  2. Use bedtools closest to find the nearest CpG island.

You could also use GenomicFeatures in R.

Is this relevant also for non-human data?

It's for any species with CpG islands available from UCSC. If there are no such annotation tracks for your organism, you'll need to generate them.

OK, so now I know that such a track does not exist for my organism. How do I continue from here?

Thanks Ryan!

Log in to answer this question.