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
37dc379f
Commit
37dc379f
authored
20 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Now uploads xref description field.
parent
57c4220f
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/BaseParser.pm
+4
-3
4 additions, 3 deletions
misc-scripts/xref_mapping/BaseParser.pm
with
4 additions
and
3 deletions
misc-scripts/xref_mapping/BaseParser.pm
+
4
−
3
View file @
37dc379f
...
...
@@ -119,8 +119,8 @@ sub get_source_id_for_filename {
my (
$self
,
$file
) =
@_
;
my
$sql
=
"
SELECT
source_id
FROM
source
WHERE
url
LIKE
'
%/" . $file . "
'"
;
print
$sql
.
"
\
n
"
;
my
$sth
=
$
dbi
->prepare(
$sql
);
#
print
$sql
.
"
\
n
"
;
my
$sth
= dbi
()
->prepare(
$sql
);
$sth
->execute();
my
@row
=
$sth
->fetchrow_array();
my
$source_id
;
...
...
@@ -151,7 +151,7 @@ sub upload_xrefs {
$del_sth->execute();
# upload new ones
my $xref_sth = $dbi->prepare("INSERT INTO xref (accession,label,source_id,species_id) VALUES(?,?,?,?)");
my $xref_sth = $dbi->prepare("INSERT INTO xref (accession,label,
description,
source_id,species_id) VALUES(?,?,?,?
,?
)");
my $pri_sth = $dbi->prepare("INSERT INTO primary_xref VALUES(?,?,?,?,?)");
my $syn_sth = $dbi->prepare("INSERT INTO synonym VALUES(?,?,?)");
my $dep_sth = $dbi->prepare("INSERT INTO dependent_xref VALUES(?,?,?,?)");
...
...
@@ -161,6 +161,7 @@ sub upload_xrefs {
# Create entry in xref table and note ID
$xref_sth->execute($xref->{ACCESSION},
$xref->{LABEL},
$xref->{DESCRIPTION},
$xref->{SOURCE_ID},
$xref->{SPECIES_ID}) || die $dbi->errstr;
...
...
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