Skip to content

Commit

Permalink
Merge branch 'postreleasefix/94' into release/94
Browse files Browse the repository at this point in the history
  • Loading branch information
at7 committed Sep 17, 2018
2 parents 86e8dcf + 55ef497 commit 066b102
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/Bio/EnsEMBL/Variation/VariationFeature.pm
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,10 @@ sub get_all_MotifFeatureVariations {
}

if(!exists($self->{motif_feature_variations})) {
if($self->dbID) {
# We couldn't store motif_feature_variation for human in release/94
# compute them on the fly instead
my $species = lc $self->adaptor->db->species;
if($self->dbID && ($species !~ /homo_sapiens|human/)) {
if (my $db = $self->adaptor->db) {
my $mfva = $db->get_MotifFeatureVariationAdaptor;
my $mfvs = $mfva->fetch_all_by_VariationFeatures([$self]);
Expand Down
1 change: 1 addition & 0 deletions modules/t/motifFeatureVariationAdaptor.t
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ my $vf = Bio::EnsEMBL::Variation::VariationFeature->new(
-_source_id => 1,
-is_somatic => 0,
-variation => $v,
-adaptor => $vfa,
);
$vfa->store($vf);

Expand Down
1 change: 1 addition & 0 deletions modules/t/variationFeatureAdaptor.t
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ my $vf18 = Bio::EnsEMBL::Variation::VariationFeature->new(
-is_somatic => 0,
-class_attrib_id => 2,
-class_SO_term => 'SNV',
-adaptor => $vfa,
);

$vfa->store($vf18);
Expand Down

0 comments on commit 066b102

Please sign in to comment.