##to find if a SNP is overlapping with the transcript of the regulatory region, also the SNP should be within 5kb on both side of the transcript, then check whether they overlapping
# if ($g and ref($g) and $tr->isa('Bio::EnsEMBL::Genes')) {
# foreach my $rf (@{$g->fetch_all_regulatory_features()}) {
# my $rf_start = $rf->seq_region_start;
# my $rf_end = $rf->seq_region_end;
# if ($var->end >= $rf_start and $var->start <= $rf_end) {