Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
6e50552f
Commit
6e50552f
authored
Jun 10, 2009
by
Ian Longden
Browse files
make sure first object_xref_id is storde for each mapping file processed
parent
ef550985
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
misc-scripts/xref_mapping/XrefMapper/ProcessMappings.pm
misc-scripts/xref_mapping/XrefMapper/ProcessMappings.pm
+6
-1
No files found.
misc-scripts/xref_mapping/XrefMapper/ProcessMappings.pm
View file @
6e50552f
...
...
@@ -164,6 +164,7 @@ sub process_map_file{
if
(
!
defined
(
$object_xref_id
)){
$object_xref_id
=
0
;
}
my
$object_xref_sth
=
$self
->
xref
->
dbc
->
prepare
("
insert into object_xref (object_xref_id, ensembl_id,ensembl_object_type, xref_id, linkage_type, ox_status ) values (?, ?, ?, ?, ?, ?)
");
my
$object_xref_sth2
=
$self
->
xref
->
dbc
->
prepare
("
insert into object_xref (object_xref_id, ensembl_id,ensembl_object_type, xref_id, linkage_type, ox_status, master_xref_id ) values (?, ?, ?, ?, ?, ?, ?)
");
...
...
@@ -177,7 +178,7 @@ sub process_map_file{
my
$ins_dep_ix_sth
=
$self
->
xref
->
dbc
->
prepare
("
insert into identity_xref (object_xref_id, query_identity, target_identity) values(?, ?, ?)
");
$start_sth
->
execute
((
$object_xref_id
+
1
),
$job_id
,
$array_number
)
;
my
$first
=
1
;
while
(
<
MAP
>
){
$total_lines
++
;
chomp
();
...
...
@@ -214,6 +215,10 @@ sub process_map_file{
die
"
Problem loading error is
$err
\n
";
}
}
if
(
$first
){
$start_sth
->
execute
(
$object_xref_id
,
$job_id
,
$array_number
);
$first
=
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment