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
469e7c0f
Commit
469e7c0f
authored
18 years ago
by
Andreas Kusalananda Kähäri
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of warnings.
parent
34d95b4f
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
+11
-14
11 additions, 14 deletions
misc-scripts/xref_mapping/XrefMapper/BasicMapper.pm
with
11 additions
and
14 deletions
misc-scripts/xref_mapping/XrefMapper/BasicMapper.pm
+
11
−
14
View file @
469e7c0f
...
@@ -1396,7 +1396,7 @@ PSQL
...
@@ -1396,7 +1396,7 @@ PSQL
print STDERR
"
no
extra
bit
for
$acc
(
$xref_id
)
\
n
"
;
print STDERR
"
no
extra
bit
for
$acc
(
$xref_id
)
\
n
"
;
print XREF_P
"
\
n
"
;
print XREF_P
"
\
n
"
;
}
}
$xrefs_written{$xref_id};
$xrefs_written
{
$xref_id
}
= 1
;
$priority_seenit
{
$key
} =
"
SEEN_IT
"
;
$priority_seenit
{
$key
} =
"
SEEN_IT
"
;
}
}
$sth
->finish;
$sth
->finish;
...
@@ -2939,7 +2939,7 @@ GADES
...
@@ -2939,7 +2939,7 @@ GADES
$sth
->
execute
();
$sth
->
execute
();
my
$sth = $core_db->prepare(<<TRAN);
$sth
=
$core_db
->
prepare
(
<<
TRAN
);
UPDATE
transcript
t
UPDATE
transcript
t
SET
t
.
display_xref_id
=
NULL
SET
t
.
display_xref_id
=
NULL
TRAN
TRAN
...
@@ -2947,7 +2947,7 @@ TRAN
...
@@ -2947,7 +2947,7 @@ TRAN
$sth
->
execute
();
$sth
->
execute
();
# gene descriptions
# gene descriptions
my
$sth = $core_db->prepare(<<GENE);
$sth
=
$core_db
->
prepare
(
<<
GENE
);
UPDATE
gene
g
UPDATE
gene
g
SET
g
.
description
=
NULL
SET
g
.
description
=
NULL
GENE
GENE
...
@@ -2979,7 +2979,7 @@ GENE
...
@@ -2979,7 +2979,7 @@ GENE
print
FILE
"
INSERT INTO meta (meta_key,meta_value) VALUES ('xref.timestamp', NOW())
\n
";
print
FILE
"
INSERT INTO meta (meta_key,meta_value) VALUES ('xref.timestamp', NOW())
\n
";
close
(
FILE
);
close
(
FILE
);
my
$mysql_command = $self->get_mysql_command($core_db);
$mysql_command
=
$self
->
get_mysql_command
(
$core_db
);
system
(
"
$mysql_command
<
$file
"
)
==
0
system
(
"
$mysql_command
<
$file
"
)
==
0
or
print
(
"
ERROR: parsing
$file
in mysql
\n
"
);
or
print
(
"
ERROR: parsing
$file
in mysql
\n
"
);
...
@@ -3007,7 +3007,7 @@ GENE
...
@@ -3007,7 +3007,7 @@ GENE
print
FILE
"
AND x.external_db_id = e.external_db_id AND e.status=
\
'KNOWNXREF
\
';
\n
";
print
FILE
"
AND x.external_db_id = e.external_db_id AND e.status=
\
'KNOWNXREF
\
';
\n
";
close
(
FILE
);
close
(
FILE
);
my
$mysql_command = $self->get_mysql_command($core_db);
$mysql_command
=
$self
->
get_mysql_command
(
$core_db
);
system
(
"
$mysql_command
<
$file
"
)
==
0
system
(
"
$mysql_command
<
$file
"
)
==
0
or
print
(
"
ERROR: parsing
$file
in mysql
\n
"
);
or
print
(
"
ERROR: parsing
$file
in mysql
\n
"
);
}
}
...
@@ -3759,7 +3759,7 @@ EOS
...
@@ -3759,7 +3759,7 @@ EOS
print
STDERR
"
PROBLEM: key =
$key
\n\t
xref =
$xref_id
\n\t
offset is
$xref_id_offset
\n
";
print
STDERR
"
PROBLEM: key =
$key
\n\t
xref =
$xref_id
\n\t
offset is
$xref_id_offset
\n
";
}
}
print
XREF2
"
\t
INFERRED_PAIR
\t
Generated via its Pair
"
.
$priority_seenit
{
$key
}
.
"
\n
";
print
XREF2
"
\t
INFERRED_PAIR
\t
Generated via its Pair
"
.
$priority_seenit
{
$key
}
.
"
\n
";
$xrefs_written{$xref_id};
$xrefs_written
{
$xref_id
}
=
1
;
}
}
$sth
->
finish
;
$sth
->
finish
;
...
@@ -3826,7 +3826,7 @@ EOS
...
@@ -3826,7 +3826,7 @@ EOS
print
XREF2
(
$xref_id
+
$xref_id_offset
)
.
"
\t
"
.
$source_to_external_db
{
$source_id
}
.
print
XREF2
(
$xref_id
+
$xref_id_offset
)
.
"
\t
"
.
$source_to_external_db
{
$source_id
}
.
"
\t
$acc
\t
$label
\t
$ver
\t
$desc
";
"
\t
$acc
\t
$label
\t
$ver
\t
$desc
";
print
XREF2
"
\t
DEPENDENT
\t
Generated via
"
.
$master_acc
{
$good2missed
{
$goodxref
}
-
$xref_id_offset
}
.
"
\n
";
print
XREF2
"
\t
DEPENDENT
\t
Generated via
"
.
$master_acc
{
$good2missed
{
$goodxref
}
-
$xref_id_offset
}
.
"
\n
";
$xrefs_written{$xref_id};
$xrefs_written
{
$xref_id
}
=
1
;
}
}
$max_object_xref_id
++
;
$max_object_xref_id
++
;
...
@@ -3860,7 +3860,7 @@ EOS
...
@@ -3860,7 +3860,7 @@ EOS
print
XREF2
(
$xref_id
+
$xref_id_offset
)
.
"
\t
"
.
$source_to_external_db
{
$source_id
}
.
print
XREF2
(
$xref_id
+
$xref_id_offset
)
.
"
\t
"
.
$source_to_external_db
{
$source_id
}
.
"
\t
$acc
\t
$label
\t
$ver
\t
$desc
";
"
\t
$acc
\t
$label
\t
$ver
\t
$desc
";
print
XREF2
"
\t
DEPENDENT
\t
Generated via
"
.
$master_acc
{
$good2missed
{
$goodxref
}
-
$xref_id_offset
}
.
"
\n
";
print
XREF2
"
\t
DEPENDENT
\t
Generated via
"
.
$master_acc
{
$good2missed
{
$goodxref
}
-
$xref_id_offset
}
.
"
\n
";
$xrefs_written{$xref_id};
$xrefs_written
{
$xref_id
}
=
1
;
}
}
$max_object_xref_id
++
;
$max_object_xref_id
++
;
...
@@ -3911,7 +3911,7 @@ EOS
...
@@ -3911,7 +3911,7 @@ EOS
print
XREF2
(
$xref_id
+
$xref_id_offset
)
.
"
\t
"
.
$source_to_external_db
{
$source_id
}
.
print
XREF2
(
$xref_id
+
$xref_id_offset
)
.
"
\t
"
.
$source_to_external_db
{
$source_id
}
.
"
\t
$acc
\t
$label
\t
$ver
\t
$desc
";
"
\t
$acc
\t
$label
\t
$ver
\t
$desc
";
print
XREF2
"
\t
DEPENDENT
\t
Generated via
"
.
$master_acc
{
$good2missed
{
$goodxref
}
-
$xref_id_offset
}
.
"
\n
";
print
XREF2
"
\t
DEPENDENT
\t
Generated via
"
.
$master_acc
{
$good2missed
{
$goodxref
}
-
$xref_id_offset
}
.
"
\n
";
$xrefs_written{$xref_id};
$xrefs_written
{
$xref_id
}
=
1
;
}
}
...
@@ -3946,7 +3946,7 @@ EOS
...
@@ -3946,7 +3946,7 @@ EOS
print
XREF2
(
$xref_id
+
$xref_id_offset
)
.
"
\t
"
.
$source_to_external_db
{
$source_id
}
.
print
XREF2
(
$xref_id
+
$xref_id_offset
)
.
"
\t
"
.
$source_to_external_db
{
$source_id
}
.
"
\t
$acc
\t
$label
\t
$ver
\t
$desc
";
"
\t
$acc
\t
$label
\t
$ver
\t
$desc
";
print
XREF2
"
\t
DEPENDENT
\t
Generated via
"
.
$master_acc
{
$good2missed
{
$goodxref
}
-
$xref_id_offset
}
.
"
\n
";
print
XREF2
"
\t
DEPENDENT
\t
Generated via
"
.
$master_acc
{
$good2missed
{
$goodxref
}
-
$xref_id_offset
}
.
"
\n
";
$xrefs_written{$xref_id};
$xrefs_written
{
$xref_id
}
=
1
;
}
}
$max_object_xref_id
++
;
$max_object_xref_id
++
;
...
@@ -3985,7 +3985,7 @@ EOS
...
@@ -3985,7 +3985,7 @@ EOS
print
"
$added_transcript
transcripts
\n
";
print
"
$added_transcript
transcripts
\n
";
}
}
my
$file = $self->core->dir()."/pairs_xref.txt";
$file
=
$self
->
core
->
dir
()
.
"
/pairs_xref.txt
";
if
(
-
s $file){
if
(
-
s $file){
my $sth = $s
elf
->
core
->
dbc
->
prepare
("
LOAD DATA LOCAL INFILE
\
'
$file
\
' IGNORE INTO TABLE xref
");
my $sth = $s
elf
->
core
->
dbc
->
prepare
("
LOAD DATA LOCAL INFILE
\
'
$file
\
' IGNORE INTO TABLE xref
");
...
@@ -4205,8 +4205,6 @@ sub unmapped_data_for_prioritys{
...
@@ -4205,8 +4205,6 @@ sub unmapped_data_for_prioritys{
# else if priotrity_failed
# else if priotrity_failed
#write unmapped object.
#write unmapped object.
my $description_missed = "Unable to match to any ensembl entity at all";
my
$sth
=
$self
->
core
->
dbc
->
prepare
("
select unmapped_reason_id from unmapped_reason where full_description like '
"
.
$description_missed
.
"
'
");
my
$sth
=
$self
->
core
->
dbc
->
prepare
("
select unmapped_reason_id from unmapped_reason where full_description like '
"
.
$description_missed
.
"
'
");
$sth
->
execute
();
$sth
->
execute
();
my
$xref_missed_id
;
my
$xref_missed_id
;
...
@@ -4381,7 +4379,6 @@ sub write_dependent_unmapped_objects{
...
@@ -4381,7 +4379,6 @@ sub write_dependent_unmapped_objects{
}
}
$sth->finish;
$sth->finish;
my $max_unmapped_object_id;
$sth = $self->core->dbc->prepare("select MAX(unmapped_object_id) ".
$sth = $self->core->dbc->prepare("select MAX(unmapped_object_id) ".
"from unmapped_object");
"from unmapped_object");
$sth->execute();
$sth->execute();
...
...
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