diff --git a/lib/EnsEMBL/REST/Model/Overlap.pm b/lib/EnsEMBL/REST/Model/Overlap.pm index 0dc588395de663ba99a975ba44c85deee22df50b..77200ef44e379acaae1b61a23f6d9302873facb7 100644 --- a/lib/EnsEMBL/REST/Model/Overlap.pm +++ b/lib/EnsEMBL/REST/Model/Overlap.pm @@ -160,7 +160,15 @@ sub to_hash { my ($self, $features, $feature_type) = @_; my @hashed; foreach my $feature (@{$features}) { - my $hash = $feature->summary_as_hash(); + + my $hash; + + if (lc($feature_type) eq 'regulatory') { + $hash = $feature->summary_as_hash_2(); + } else { + $hash = $feature->summary_as_hash(); + } + foreach my $key (@KNOWN_NUMERICS) { my $v = $hash->{$key}; $hash->{$key} = ($v*1) if defined $v;