Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
df5ee001
Commit
df5ee001
authored
Oct 28, 2013
by
Leo Gordon
Browse files
using a db-free unique ids for edges' midpoints
parent
2f308e8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
modules/Bio/EnsEMBL/Hive/Utils/Graph.pm
modules/Bio/EnsEMBL/Hive/Utils/Graph.pm
+6
-1
No files found.
modules/Bio/EnsEMBL/Hive/Utils/Graph.pm
View file @
df5ee001
...
...
@@ -129,6 +129,7 @@ sub _analysis_node_name {
return
'
analysis_
'
.
$analysis
->
logic_name
;
}
sub
_table_node_name
{
my
(
$self
,
$df_rule
)
=
@_
;
...
...
@@ -140,7 +141,11 @@ sub _table_node_name {
sub
_midpoint_name
{
my
(
$df_rule
)
=
@_
;
return
'
dfr_
'
.
$df_rule
->
dbID
.
'
_mp
';
if
(
scalar
(
$df_rule
)
=~
/\((\w+)\)/
)
{
# a unique id of a df_rule assuming dbIDs are not available
return
'
dfr_
'
.
$
1
.
'
_mp
';
}
else
{
die
"
Wrong argument to _midpoint_name
";
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment