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
ad16dfde
Commit
ad16dfde
authored
May 14, 2013
by
Leo Gordon
Browse files
allow the user to choose a particular hive_root_dir (esp. if there are many)
parent
8da99ea8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
modules/Bio/EnsEMBL/Hive/PipeConfig/HiveGeneric_conf.pm
modules/Bio/EnsEMBL/Hive/PipeConfig/HiveGeneric_conf.pm
+11
-10
No files found.
modules/Bio/EnsEMBL/Hive/PipeConfig/HiveGeneric_conf.pm
View file @
ad16dfde
...
...
@@ -11,7 +11,7 @@ Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf
init_pipeline.pl Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf -password <mypass>
# Example 2: specifying the mandatory options as well as overriding some defaults:
init_pipeline.pl Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf -
ensembl_cvs
_root_dir ~/ensembl_main -pipeline_db -host <myhost> -pipeline_db -dbname <mydbname> -password <mypass>
init_pipeline.pl Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf -
hive
_root_dir ~/ensembl_main
/ensembl-hive-new
-pipeline_db -host <myhost> -pipeline_db -dbname <mydbname> -password <mypass>
=head1 DESCRIPTION
...
...
@@ -73,8 +73,9 @@ use base ('Bio::EnsEMBL::Hive::DependentOptions');
sub
default_options
{
my
(
$self
)
=
@_
;
return
{
'
ensembl_cvs_root_dir
'
=>
$self
->
o
('
ENV
',
'
ENSEMBL_CVS_ROOT_DIR
'),
# it will make sense to set this variable if you are going to use ehive frequently
'
password
'
=>
$self
->
o
('
ENV
',
'
ENSADMIN_PSW
'),
# people will have to make an effort NOT to insert it into config files like .bashrc etc
'
ensembl_cvs_root_dir
'
=>
$self
->
o
('
ENV
',
'
ENSEMBL_CVS_ROOT_DIR
'),
# it will make sense to set this variable if you are going to use ehive frequently
'
hive_root_dir
'
=>
$self
->
o
('
ensembl_cvs_root_dir
')
.
'
/ensembl-hive
',
# but you may want to have Hive elsewhere, which is perfectly legitimate
'
password
'
=>
$self
->
o
('
ENV
',
'
ENSADMIN_PSW
'),
# people will have to make an effort NOT to insert it into config files like .bashrc etc
'
host
'
=>
'
localhost
',
'
pipeline_name
'
=>
'
hive_generic
',
...
...
@@ -105,18 +106,18 @@ sub pipeline_create_commands {
return
(
$self
->
o
(
$db_conn
,
'
-driver
')
eq
'
sqlite
')
?
[
# standard eHive tables, triggers and procedures:
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
ensembl_cvs
_root_dir
')
.
'
/
ensembl-hive/
sql/tables.sqlite
',
$self
->
o
('
hive_use_triggers
')
?
(
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
ensembl_cvs
_root_dir
')
.
'
/
ensembl-hive/
sql/triggers.sqlite
'
)
:
(),
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
ensembl_cvs
_root_dir
')
.
'
/
ensembl-hive/
sql/procedures.sqlite
',
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
hive
_root_dir
')
.
'
/sql/tables.sqlite
',
$self
->
o
('
hive_use_triggers
')
?
(
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
hive
_root_dir
')
.
'
/sql/triggers.sqlite
'
)
:
(),
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
hive
_root_dir
')
.
'
/sql/procedures.sqlite
',
]
:
[
'
mysql
'
.
$self
->
dbconn_2_mysql
(
$db_conn
,
0
)
.
"
-e 'CREATE DATABASE `
"
.
$self
->
o
('
pipeline_db
',
'
-dbname
')
.
"
`'
",
# standard eHive tables, triggers, foreign_keys and procedures:
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
ensembl_cvs
_root_dir
')
.
'
/
ensembl-hive/
sql/tables.sql
',
$self
->
o
('
hive_use_triggers
')
?
(
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
ensembl_cvs
_root_dir
')
.
'
/
ensembl-hive/
sql/triggers.mysql
'
)
:
(),
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
ensembl_cvs
_root_dir
')
.
'
/
ensembl-hive/
sql/foreign_keys.mysql
',
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
ensembl_cvs
_root_dir
')
.
'
/
ensembl-hive/
sql/procedures.mysql
',
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
hive
_root_dir
')
.
'
/sql/tables.sql
',
$self
->
o
('
hive_use_triggers
')
?
(
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
hive
_root_dir
')
.
'
/sql/triggers.mysql
'
)
:
(),
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
hive
_root_dir
')
.
'
/sql/foreign_keys.mysql
',
$self
->
db_connect_command
(
$db_conn
)
.
'
<
'
.
$self
->
o
('
hive
_root_dir
')
.
'
/sql/procedures.mysql
',
];
}
...
...
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