Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl-hive
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
7
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-hive
Commits
ca7cf4ed
Commit
ca7cf4ed
authored
14 years ago
by
Leo Gordon
Browse files
Options
Downloads
Patches
Plain Diff
allow for negative matches
parent
399f15fe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/Hive/PipeConfig/TableDumperZipper_conf.pm
+6
-3
6 additions, 3 deletions
...les/Bio/EnsEMBL/Hive/PipeConfig/TableDumperZipper_conf.pm
with
6 additions
and
3 deletions
modules/Bio/EnsEMBL/Hive/PipeConfig/TableDumperZipper_conf.pm
+
6
−
3
View file @
ca7cf4ed
...
...
@@ -58,7 +58,7 @@ sub default_options {
'
pipeline_name
'
=>
'
zip_tables
',
# name used by the beekeeper to prefix job names on the farm
'
pipeline_db
'
=>
{
# connection parameters
-
host
=>
'
compara
3
',
-
host
=>
'
compara
2
',
-
port
=>
3306
,
-
user
=>
'
ensadmin
',
-
pass
=>
$self
->
o
('
password
'),
# a rule where a previously undefined parameter is used (which makes either of them obligatory)
...
...
@@ -66,7 +66,7 @@ sub default_options {
},
'
source_db
'
=>
{
-
host
=>
'
compara
3
',
-
host
=>
'
compara
2
',
-
port
=>
3306
,
-
user
=>
'
ensadmin
',
-
pass
=>
$self
->
o
('
password
'),
...
...
@@ -75,6 +75,7 @@ sub default_options {
'
with_schema
'
=>
1
,
# include table creation statement before inserting the data
'
only_tables
'
=>
'
%
',
# use 'protein_tree%' or 'analysis%' to only dump those tables
'
invert_selection
'
=>
0
,
# use 'NOT LIKE' instead of 'LIKE'
'
target_dir
'
=>
$ENV
{'
HOME
'}
.
'
/
'
.
$self
->
o
('
source_dbname
'),
# where we want the compressed files to appear
'
dumping_capacity
'
=>
10
,
# how many tables can be dumped in parallel
};
...
...
@@ -115,7 +116,9 @@ sub pipeline_analyses {
-
module
=>
'
Bio::EnsEMBL::Hive::RunnableDB::JobFactory
',
-
parameters
=>
{
'
db_conn
'
=>
$self
->
o
('
source_db
'),
'
inputquery
'
=>
'
SHOW TABLES LIKE "
'
.
$self
->
o
('
only_tables
')
.
'
"
',
# 'inputquery' => 'SHOW TABLES LIKE "'.$self->o('only_tables').'"', # to support negative patterns in MySQL 5.1 we need a trick
'
inputquery
'
=>
'
SELECT table_name FROM information_schema.tables WHERE table_schema = "
'
.
$self
->
o
('
source_dbname
')
.
'
" AND table_name
'
.
(
$self
->
o
('
invert_selection
')?'
NOT LIKE
':'
LIKE
')
.
'
"
'
.
$self
->
o
('
only_tables
')
.
'
"
',
},
-
input_ids
=>
[
{
'
input_id
'
=>
{
'
table_name
'
=>
'
#_range_start#
'
},
},
...
...
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