Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
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
Commits
5096aae3
Commit
5096aae3
authored
13 years ago
by
Uma Maheswari
Browse files
Options
Downloads
Patches
Plain Diff
modified to add generic production database details
parent
83ed2b5f
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
misc-scripts/density_feature/repeat_coverage_calc.pl
+14
-4
14 additions, 4 deletions
misc-scripts/density_feature/repeat_coverage_calc.pl
with
14 additions
and
4 deletions
misc-scripts/density_feature/repeat_coverage_calc.pl
+
14
−
4
View file @
5096aae3
...
...
@@ -24,12 +24,20 @@ use strict;
use
Getopt::
Long
;
my
(
$host
,
$user
,
$pass
,
$port
,
$dbname
);
# Master database location:
my
(
$mhost
,
$mport
)
=
(
'
mysql-eg-pan-1.ebi.ac.uk
',
'
4276
'
);
my
(
$muser
,
$mpass
)
=
(
'
ensro
',
undef
);
my
$mdbname
=
'
ensembl_production
';
GetOptions
(
"
host|h=s
",
\
$host
,
"
user|u=s
",
\
$user
,
"
pass|p=s
",
\
$pass
,
"
port=i
",
\
$port
,
"
dbname|d=s
",
\
$dbname
,
"
mhost=s
",
\
$mhost
,
"
mport=i
",
\
$mport
,
"
muser=s
",
\
$muser
,
"
help
"
,
\
&usage
);
...
...
@@ -82,10 +90,6 @@ my $analysis = $aa->fetch_by_logic_name('percentagerepeat');
if
(
!
defined
(
$analysis
)
)
{
# Master database location:
my
(
$mhost
,
$mport
)
=
(
'
ens-staging1
',
'
3306
'
);
my
(
$muser
,
$mpass
)
=
(
'
ensro
',
undef
);
my
$mdbname
=
'
ensembl_production
';
my
$prod_dsn
=
sprintf
(
'
DBI:mysql:host=%s;port=%d;database=%s
',
$mhost
,
$mport
,
$mdbname
);
...
...
@@ -355,6 +359,12 @@ Usage:
-
p
|
pass
Password
for
user
-
mhost
ensembl_production
database
host
to
connect
to
-
mport
ensembl_production
database
port
to
connect
to
-
muser
ensembl_production
database
username
-
d
|
dbname
Database
name
-
help
This
message
...
...
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