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
3be66ae1
Commit
3be66ae1
authored
13 years ago
by
Andreas Kusalananda Kähäri
Browse files
Options
Downloads
Patches
Plain Diff
Adding some documentation about new comand line arguments, -s
(--species) and -t (--type). Not yet implemented.
parent
ae960009
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/production_database/scripts/populate_analysis_description.pl
+41
-42
41 additions, 42 deletions
...duction_database/scripts/populate_analysis_description.pl
with
41 additions
and
42 deletions
misc-scripts/production_database/scripts/populate_analysis_description.pl
+
41
−
42
View file @
3be66ae1
...
...
@@ -26,21 +26,20 @@ my $dumppath;
my
$dbname_file
;
# Do command line parsing.
if
(
!
GetOptions
(
'
mhost|mh=s
'
=>
\
$mhost
,
'
mport|mP=i
'
=>
\
$mport
,
'
muser|mu=s
'
=>
\
$muser
,
'
mpass|mp=s
'
=>
\
$mpass
,
'
mdatabase|md=s
'
=>
\
$mdbname
,
'
host|h=s
'
=>
\
$host
,
'
port|P=i
'
=>
\
$port
,
'
user|u=s
'
=>
\
$user
,
'
pass|p=s
'
=>
\
$pass
,
'
database|d=s
'
=>
\
$dbname
,
'
pattern=s
'
=>
\
$dbpattern
,
'
verbose|v!
'
=>
\
$verbose
,
'
core=i
'
=>
\
$core
,
'
dumppath|dp=s
'
=>
\
$dumppath
,
'
dbname_file|dbf=s
'
=>
\
$dbname_file
)
if
(
!
GetOptions
(
'
mhost|mh=s
'
=>
\
$mhost
,
'
mport|mP=i
'
=>
\
$mport
,
'
muser|mu=s
'
=>
\
$muser
,
'
mpass|mp=s
'
=>
\
$mpass
,
'
mdatabase|md=s
'
=>
\
$mdbname
,
'
host|h=s
'
=>
\
$host
,
'
port|P=i
'
=>
\
$port
,
'
user|u=s
'
=>
\
$user
,
'
pass|p=s
'
=>
\
$pass
,
'
database|d=s
'
=>
\
$dbname
,
'
pattern=s
'
=>
\
$dbpattern
,
'
verbose|v!
'
=>
\
$verbose
,
'
core=i
'
=>
\
$core
,
'
dumppath|dp=s
'
=>
\
$dumppath
)
||
!
(
defined
(
$host
)
&&
defined
(
$user
)
...
...
@@ -60,59 +59,59 @@ Usage:
$0 -h host [-P port] \\
$indent -u user [-p password]
$indent -d database | --pattern pattern \\
$indent -dp dumppath
$indent [-
dbf dbname override file]
$indent -dp dumppath
\\
$indent [-
s species -t type] \\
$indent [-mh host] [-mP port] \\
$indent [-mu user] [-mp password] [-md database] \\
$indent [-v]
-h / --host User database server host
-P / --port User database server port (optional, default is 3306)
-h / --host User database server host
.
-P / --port User database server port (optional, default is 3306)
.
-u / --user User username (must have write-access)
-p / --pass User password
-u / --user User username (must have write-access)
.
-p / --pass User password
.
-d / --database User database name or SQL pattern
-d / --database User database name or SQL pattern
,
e.g. --database="homo_sapiens_rnaseq_62_37g"
or --database="%core_62%"
or --database="%core_62%"
.
-dp / --dumppath Dump path.
Dump out
table into the specified directory path.
Back-up
table into the specified directory path.
--pattern User database by Perl regular expression
e.g. --pattern="^homo.*(rnaseq|vega)_62"
--pattern User database by Perl regular expression
m
e.g. --pattern="^homo.*(rnaseq|vega)_62"
.
(-d/--database and --pattern are mutually exclusive)
--core=NN Preset pattern for Core-like databases in relase NN
--core=NN Preset pattern for Core-like databases in relase NN
.
Specifying --core=62 is equivalent to using
--pattern="(cdna|core|otherfeatures|rnaseq|vega)_62"
--pattern="(cdna|core|otherfeatures|rnaseq|vega)_62"
.
-
dbf
/ --
dbname_file Override database names stored in the production
database
with database names in the specified
file. The file should have the following
tab/space delimited data on each line:
-
s
/ --
species If the name of the database specified by -d (or
--
database
) is not in the standard format, this
flag is used to specify what species it is (e.g.,
'homo_sapiens', 'gallus_gallus' etc.).
- database name stored in 'full_db_name' column
'db_list' table in the production database.
- new database name to use
.
-t / --type If the name of the database specified by -d (or
--database) is not in the standard format, this
flag may be used to specify what type it is (e.g.,
'core', 'vega' etc.)
.
-mh / --mhost Production database server host
(optional, default is 'ens-staging1')
(optional, default is 'ens-staging1')
.
-mP / --mport Production database server port
(optional, default is 3306)
(optional, default is 3306)
.
-mu / --muser Production database username (no write-access required)
(optional, default is 'ensro')
(optional, default is 'ensro')
.
-mp / --mpass Production database password
(optional, default is undefined)
(optional, default is undefined)
.
-md / --mdatabase Production database name
(optional, default is 'ensembl_production')
(optional, default is 'ensembl_production')
.
-v / --verbose Be verbose, display every SQL statement as they
are executed (on standard error)
are executed (on standard error)
.
USAGE_END
...
...
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