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
bce25914
Commit
bce25914
authored
16 years ago
by
Daniel Rios
Browse files
Options
Downloads
Patches
Plain Diff
added option to specify release number
parent
b650956a
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/translation_attribs_wrapper.pl
+7
-3
7 additions, 3 deletions
misc-scripts/translation_attribs_wrapper.pl
with
7 additions
and
3 deletions
misc-scripts/translation_attribs_wrapper.pl
+
7
−
3
View file @
bce25914
...
...
@@ -17,6 +17,7 @@ Required arguments:
--pass=pass password for database
--release=release release number
Optional arguments:
...
...
@@ -46,7 +47,7 @@ submit jobs to the farm grouping the core databases in patterns
Calculate translation_attributes for all databases in ens-staging
$ ./translation_attribs_wrapper.pl --user ensadmin --pass password
$ ./translation_attribs_wrapper.pl --user ensadmin --pass password
--release 51
=head1 LICENCE
...
...
@@ -75,6 +76,7 @@ use Bio::EnsEMBL::Utils::Exception qw(throw);
my
$binpath
=
'
/software/pubseq/bin/emboss
';
my
$tmpdir
=
'
/tmp
';
my
$host
=
'
ens-staging
';
my
$release
=
undef
;
my
$user
=
undef
;
my
$pass
=
undef
;
my
$port
=
3306
;
...
...
@@ -88,6 +90,7 @@ GetOptions('binpath=s' => \$binpath,
'
user=s
'
=>
\
$user
,
'
pass=s
'
=>
\
$pass
,
'
port=s
'
=>
\
$port
,
'
release=i
'
=>
\
$release
,
'
pepstats_only
'
=>
\
$pepstats_only
,
'
met_and_stop_only
'
=>
\
$met_and_stop_only
,
'
help
'
=>
\
$help
...
...
@@ -96,6 +99,7 @@ GetOptions('binpath=s' => \$binpath,
pod2usage
(
1
)
if
(
$help
);
throw
("
--user argument required
")
if
(
!
defined
(
$user
));
throw
("
--pass argument required
")
if
(
!
defined
(
$pass
));
throw
("
--release argument required
")
if
(
!
defined
(
$release
));
my
$queue
=
'
long
';
my
$memory
=
"
'select[mem>4000] rusage[mem=4000]' -M4000000
";
...
...
@@ -119,11 +123,11 @@ if (defined $met_and_stop_only){
$options
.=
"
--met_and_stop_only
"
}
my
@ranges
=
('
^[a-c]
','
^[d-g]
','
^[h-m]
','
^[n-r]
','
^[s-z]
');
my
$core_db
=
'
.*core_
49
_.*
'
;
my
$core_db
=
"
.*core_
$release
\
_.*
"
;
my
$call
;
foreach
my
$pattern
(
@ranges
){
$call
=
"
bsub -o /lustre/scratch1/ensembl/dr2/tmp_smallfiles/output_translation_
$pattern
.txt -q
$queue
-R
$memory
./translation_attribs.pl -user
$user
-pass
$pass
$options
";
$call
.=
"
--pattern
$pattern$core_db
";
$call
.=
"
--pattern
'
"
.
$pattern
.
$core_db
.
"
'
";
system
(
$call
);
#print $call,"\n";
...
...
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