Hi Anja,
and Thanks, from nothing till here, I am able to perform most of the task.
I am trying to runn this test script available at:
http://www.ensembl.org/info/docs/Doxygen/variation-api/classBio_1_1EnsEMBL_1_1Variation_1_1DBSQL_1_1RegulatoryFeatureVariationAdaptor.html
use strict;
use warnings;
use Bio::EnsEMBL::Registry;
my $reg = 'Bio::EnsEMBL::Registry';
$reg->load_registry_from_db(-host => 'ensembldb.ensembl.org',-user => 'anonymous');
my $rfa = $reg->get_adaptor('human', 'funcgen', 'RegulatoryFeature');
my $va = $reg->get_adaptor('human', 'variation', 'Variation');
my $vfa = $reg->get_adaptor('human', 'variation', 'VariationFeature');
my $rfva = $reg->get_adaptor('human','variation','RegulatoryFeatureVariation');
# fetch RegulatoryFeature by dbID
my $rf_stable_id = 'ENSR00000316845';
my $rf = $rfa->fetch_by_stable_id($rf_stable_id);
# fetch all RegulatoryFeatureVariations falling in the MotifFeature
my $rfvs = $rfva->fetch_all_by_RegulatoryFeatures([$rf]);
# fetch by VariationFeatures
my $variation_name = 'rs191666497';
my $v = $va->fetch_by_name($variation_name);
my $vfs = $vfa->fetch_all_by_Variation($v);
# fetch all RegulatoryFeatureVariations for the list of VariationFeatures
for my $vf (@$vfs) {
print $vf->variation_name, "\n";
}
$rfvs = $rfva->fetch_all_by_VariationFeatures($vfs);
for my $rfv (@$rfvs) {
print $rfv->regulatory_feature_stable_id, "\n";
}
But I go the following error:
Can't call method "stable_id" on an undefined value at /home/regmwkh/src/ensembl-variation/modules/Bio/EnsEMBL/Variation/DBSQL/VariationFeatureOverlapAdaptor.pm line 126.
Do I need to download some thing?
Best,
Waqas.
I've let my colleagues in charge of the Ensembl variation API know about your question and they will get back to you.