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
d00e1c2b
Commit
d00e1c2b
authored
18 years ago
by
Ian Sealy
Browse files
Options
Downloads
Patches
Plain Diff
Tidying up Will's changes.
parent
dcac849c
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/xref_mapping/XrefMapper/BasicMapper.pm
+9
-9
9 additions, 9 deletions
misc-scripts/xref_mapping/XrefMapper/BasicMapper.pm
with
9 additions
and
9 deletions
misc-scripts/xref_mapping/XrefMapper/BasicMapper.pm
+
9
−
9
View file @
d00e1c2b
...
...
@@ -2457,7 +2457,7 @@ GENE
my
$file
=
$ensembl
->
dir
()
.
"
/
"
.
$table
.
"
_display_xref.sql
";
print
"
Setting
$table
display_xrefs from
$file
\n
";
my
$mysql_command
=
get_mysql_command
(
$core_db
);
my
$mysql_command
=
$self
->
get_mysql_command
(
$core_db
);
system
(
"
$mysql_command
<
$file
"
)
==
0
or
print
(
"
ERROR: parsing
$file
in mysql
\n
"
);
# my $str = "mysql -u " .$core_db->username() ." -p'" . $core_db->password() .
...
...
@@ -2470,7 +2470,7 @@ GENE
# gene descriptions
my
$file
=
$ensembl
->
dir
()
.
"
/gene_description.sql
";
print
"
Setting gene descriptions from
$file
\n
";
my
$mysql_command
=
get_mysql_command
(
$core_db
);
my
$mysql_command
=
$self
->
get_mysql_command
(
$core_db
);
system
(
"
$mysql_command
<
$file
"
)
==
0
or
print
(
"
ERROR: parsing
$file
in mysql
\n
"
);
...
...
@@ -2487,7 +2487,7 @@ GENE
print
FILE
"
INSERT INTO meta (meta_key,meta_value) VALUES ('xref.timestamp', NOW())
\n
";
close
(
FILE
);
my
$mysql_command
=
get_mysql_command
(
$core_db
);
my
$mysql_command
=
$self
->
get_mysql_command
(
$core_db
);
system
(
"
$mysql_command
<
$file
"
)
==
0
or
print
(
"
ERROR: parsing
$file
in mysql
\n
"
);
# my $str = "mysql -u " .$core_db->username() ." -p'" . $core_db->password() .
...
...
@@ -2521,7 +2521,7 @@ GENE
print
FILE
"
AND x.external_db_id = e.external_db_id AND e.status=
\
'KNOWNXREF
\
';
\n
";
close
(
FILE
);
my
$mysql_command
=
get_mysql_command
(
$core_db
);
my
$mysql_command
=
$self
->
get_mysql_command
(
$core_db
);
system
(
"
$mysql_command
<
$file
"
)
==
0
or
print
(
"
ERROR: parsing
$file
in mysql
\n
"
);
# my $str = "mysql -u " .$core_db->username() ." -p'" . $core_db->password() .
...
...
@@ -3209,8 +3209,8 @@ EOS
my
$core_db
=
$self
->
core
->
dbc
;
my
$mysql_command
=
get_mysql_command
(
$core_db
);
system
(
"
$mysql_command
<
$file
"
)
==
0
my
$mysql_command
=
$self
->
get_mysql_command
(
$core_db
);
system
(
"
$mysql_command
<
$
triage_
file
"
)
==
0
or
print
(
"
ERROR: parsing
$file
in mysql
\n
"
);
# my $str = "mysql -u " .$core_db->username() ." -p'" . $core_db->password() .
...
...
@@ -3270,8 +3270,8 @@ sub get_mysql_command{
my
$self
=
shift
;
my
$dbc
=
shift
;
UNIVERSAL::
isa
(
$dbc
,
'
Bio::EnsEMBL::DBSQL::DB
'
)
||
die
(
"
Need a Bio::EnsEMBL::DBSQL::DB not a
"
.
ref
(
$dbc
)
);
UNIVERSAL::
isa
(
$dbc
,
'
Bio::EnsEMBL::DBSQL::DB
Connection
'
)
||
die
(
"
Need a Bio::EnsEMBL::DBSQL::DB
Connection
not a
"
.
ref
(
$dbc
)
);
my
$host
=
$dbc
->
host
;
my
$port
=
$dbc
->
port
;
...
...
@@ -3283,7 +3283,7 @@ sub get_mysql_command{
(
$host
?
(
'
-h
',
$host
)
:
()
),
(
$port
?
(
'
-P
',
$port
)
:
()
),
(
$user
?
(
'
-u
',
$user
)
:
()
),
(
$pass
?
(
'
-p
'
,
"
'
"
.
$pass
.
"
'
"
)
:
()
),
(
$pass
?
(
"
-p'
"
.
$pass
.
"
'
"
)
:
()
),
$dbname
);
return
$str
;
}
...
...
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