Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
c522f7d3
Commit
c522f7d3
authored
Aug 14, 2013
by
Leo Gordon
Browse files
make sure diagrams are generated from non-Hive registry entries as long as they are Hive-hybrids
parent
15e96af9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
scripts/generate_graph.pl
scripts/generate_graph.pl
+8
-1
No files found.
scripts/generate_graph.pl
View file @
c522f7d3
...
...
@@ -38,6 +38,7 @@ sub _options {
# connection parameters
'
reg_conf|regfile=s
'
=>
\
$self
->
{'
reg_conf
'},
'
reg_alias|regname=s
'
=>
\
$self
->
{'
reg_alias
'},
'
reg_type=s
'
=>
\
$self
->
{'
reg_type
'},
'
url=s
'
=>
\
$self
->
{
url
},
'
f|format=s
'
=>
\
$self
->
{
format
},
...
...
@@ -61,8 +62,14 @@ sub _process_options {
#Check for DB
if
(
$self
->
{'
reg_conf
'}
and
$self
->
{'
reg_alias
'})
{
$self
->
{'
reg_type
'}
||=
'
hive
';
Bio::EnsEMBL::
Registry
->
load_all
(
$self
->
{'
reg_conf
'});
$self
->
{
dba
}
=
Bio::EnsEMBL::
Registry
->
get_DBAdaptor
(
$self
->
{'
reg_alias
'},
'
hive
');
$self
->
{
dba
}
=
Bio::EnsEMBL::
Registry
->
get_DBAdaptor
(
$self
->
{'
reg_alias
'},
$self
->
{'
reg_type
'});
if
(
$self
->
{'
reg_type
'}
ne
'
hive
')
{
# have to ensure we are getting a Hive DBAdaptor:
my
$dbc
=
$self
->
{
dba
}
->
dbc
();
$self
->
{
dba
}
=
Bio::EnsEMBL::Hive::DBSQL::
DBAdaptor
->
new
(
-
dbconn
=>
$dbc
);
}
}
elsif
(
$self
->
{
url
})
{
$self
->
{
dba
}
=
Bio::EnsEMBL::Hive::DBSQL::
DBAdaptor
->
new
(
-
url
=>
$self
->
{
url
});
}
else
{
...
...
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