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
ebaff21a
Commit
ebaff21a
authored
13 years ago
by
Ian Longden
Browse files
Options
Downloads
Patches
Plain Diff
use api_version to get the name of the vega and core databases to be used
parent
dff6968d
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/alt_alleles/alt_alleles.pl
+25
-5
25 additions, 5 deletions
misc-scripts/alt_alleles/alt_alleles.pl
with
25 additions
and
5 deletions
misc-scripts/alt_alleles/alt_alleles.pl
+
25
−
5
View file @
ebaff21a
...
...
@@ -2,6 +2,15 @@ use strict;
use
Bio::EnsEMBL::DBSQL::
DBAdaptor
;
use
Getopt::
Long
qw(:config pass_through)
;
# (make sure api version is correct
# Usage:
# perl alt_alleles.pl -cpass XXXX > & human_release_63_alt_alleles
#
#
# long way
# perl alt_alleles.pl -vhost ens-staging1 -vport 3306 -vdbname homo_sapiens_vega_63_37 -cdbname homo_sapiens_core_63_37 -chost ens-staging1 -cpass XXXX > & human_release_63_alt_alleles
#
my
(
$vhost
,
$vpass
,
$vport
,
$vdbname
,
$vuser
,
$chost
,
$cpass
,
$cport
,
$cdbname
,
$cuser
);
GetOptions
(
...
...
@@ -18,10 +27,21 @@ GetOptions(
#
# Connect to the vgea databse to get the alt allele data.
#
my
$vega_dba
=
Bio::EnsEMBL::DBSQL::
DBAdaptor
->
new
(
-
host
=>
$vhost
||
'
ensdb-1-11
',
my
$api_version
=
Bio::EnsEMBL::
ApiVersion
->
software_version
();
if
(
!
defined
(
$vdbname
)){
$vdbname
=
"
homo_sapiens_vega_
"
.
$api_version
.
"
_37
";
}
if
(
!
defined
(
$cdbname
)){
$cdbname
=
"
homo_sapiens_core_
"
.
$api_version
.
"
_37
";
}
my
$vega_dba
=
Bio::EnsEMBL::DBSQL::
DBAdaptor
->
new
(
-
host
=>
$vhost
||
'
ens-staging1
',
-
user
=>
$vuser
||
'
ensro
',
-
port
=>
$vport
||
5317
,
-
dbname
=>
$vdbname
||
"
vega_
homo_sapiens_
20100903_v61_GRCh
37
");
-
port
=>
$vport
||
3306
,
-
dbname
=>
$vdbname
||
"
homo_sapiens_
vega_63_
37
");
...
...
@@ -95,11 +115,11 @@ push @{$alt_to_stable{9999}}, "INVALID1";
# Connect to the core database to store the data in.
#
my
$core_dba
=
Bio::EnsEMBL::DBSQL::
DBAdaptor
->
new
(
-
host
=>
$chost
||
'
ens-
research
',
my
$core_dba
=
Bio::EnsEMBL::DBSQL::
DBAdaptor
->
new
(
-
host
=>
$chost
||
'
ens-
staging1
',
-
user
=>
$cuser
||
'
ensadmin
',
-
pass
=>
$cpass
,
-
species
=>
"
test
",
-
dbname
=>
$cdbname
||
"
ianl_
homo_sapiens_core_6
2
_37
g
");
-
dbname
=>
$cdbname
||
"
homo_sapiens_core_6
3
_37
");
...
...
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