Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl-rest
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl-rest
Commits
b06b9c6d
Verified
Commit
b06b9c6d
authored
6 months ago
by
Stefano Giorgetti
Browse files
Options
Downloads
Patches
Plain Diff
Revert regulatory summary and filter EMARs
parent
56bd8594
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/EnsEMBL/REST/Model/Overlap.pm
+4
-9
4 additions, 9 deletions
lib/EnsEMBL/REST/Model/Overlap.pm
t/overlap.t
+4
-4
4 additions, 4 deletions
t/overlap.t
with
8 additions
and
13 deletions
lib/EnsEMBL/REST/Model/Overlap.pm
+
4
−
9
View file @
b06b9c6d
...
...
@@ -160,15 +160,7 @@ sub to_hash {
my
(
$self
,
$features
,
$feature_type
)
=
@_
;
my
@hashed
;
foreach
my
$feature
(
@
{
$features
})
{
my
$hash
;
if
(
lc
(
$feature_type
)
eq
'
regulatory
')
{
$hash
=
$feature
->
summary_as_hash_2
();
}
else
{
$hash
=
$feature
->
summary_as_hash
();
}
my
$hash
=
$feature
->
summary_as_hash
();
foreach
my
$key
(
@KNOWN_NUMERICS
)
{
my
$v
=
$hash
->
{
$key
};
$hash
->
{
$key
}
=
(
$v
*
1
)
if
defined
$v
;
...
...
@@ -189,6 +181,9 @@ sub to_hash {
$hash
->
{
description
}
=
$feature
->
{
$feature_type
}
->
{
hdescription
}
if
defined
(
$feature
->
{
$feature_type
}
->
{
hdescription
});
}
}
if
(
lc
(
$feature_type
)
eq
'
regulatory
')
{
next
if
(
$hash
->
{
description
}
eq
'
Epigenetically modified accessible region
');
}
push
(
@hashed
,
$hash
);
}
return
\
@hashed
;
...
...
This diff is collapsed.
Click to expand it.
t/overlap.t
+
4
−
4
View file @
b06b9c6d
...
...
@@ -304,13 +304,13 @@ my $base = '/overlap/region/homo_sapiens';
my
$region
=
'
1:76429380..76430144
';
cmp_deeply
(
json_GET
("
$base
/
$region
?feature=regulatory
",
'
Get regulatory_feature
'),
[{
id
=>
'
ENSR00000105157
',
extende
d_end
=>
76430144
,
extende
d_start
=>
76429380
,
description
=>
'
o
pen
_
chromatin
_
region
',
boun
d_end
=>
76430144
,
boun
d_start
=>
76429380
,
description
=>
'
O
pen
chromatin
region
',
end
=>
76430144
,
feature_type
=>
'
regulatory
',
seq_region_name
=>
1
,
source
=>
'
Ensembl
',
source
=>
'
Regulatory_Build
',
start
=>
76429380
,
strand
=>
0
}],
'
Getting regulatory_feature as JSON
');
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment