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
54a327d0
Commit
54a327d0
authored
13 years ago
by
Susan Fairley
Browse files
Options
Downloads
Patches
Plain Diff
Updated to load GL accession as a synonym of the patch scaffold/supercontig.
parent
35e9f364
Branches
bugfix/patch_compara_testdb
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/assembly_patches/assembly_patch_load.pl
+19
-10
19 additions, 10 deletions
misc-scripts/assembly_patches/assembly_patch_load.pl
with
19 additions
and
10 deletions
misc-scripts/assembly_patches/assembly_patch_load.pl
+
19
−
10
View file @
54a327d0
...
...
@@ -15,18 +15,20 @@ my $dbname;
my
$host
;
my
$user
;
my
$port
=
3306
;
my
$scaf_syn_ext_id
=
700
;
my
$central_coord_system
=
'
supercontig
';
&GetOptions
(
'
pass=s
'
=>
\
$pass
,
'
mapping_file=s
'
=>
\
$mapping_file
,
'
txt_file=s
'
=>
\
$txt_file
,
'
patchtype_file=s
'
=>
\
$patchtype_file
,
'
host=s
'
=>
\
$host
,
'
dbname=s
'
=>
\
$dbname
,
'
user=s
'
=>
\
$user
,
'
port=n
'
=>
\
$port
,
'
assembly_name=s
'
=>
\
$assembly_name
,
'
pass=s
'
=>
\
$pass
,
'
mapping_file=s
'
=>
\
$mapping_file
,
'
txt_file=s
'
=>
\
$txt_file
,
'
patchtype_file=s
'
=>
\
$patchtype_file
,
'
host=s
'
=>
\
$host
,
'
dbname=s
'
=>
\
$dbname
,
'
user=s
'
=>
\
$user
,
'
port=n
'
=>
\
$port
,
'
scaf_syn_ext_id=n
'
=>
\
$scaf_syn_ext_id
,
'
assembly_name=s
'
=>
\
$assembly_name
,
);
#needed to update the meta table
...
...
@@ -197,8 +199,9 @@ SCAF: while(<TXT>){
$get_seq_region_sth
->
fetch
();
# || die "Could not fetch seq_region id for name $name";;
#go to next
if
(
defined
(
$tmp_id
)){
#go to next
print
$alt_name
.
"
already in db
\n
";
$old_patch_names
{
$alt_name
}
=
1
;
next
SCAF
;
...
...
@@ -293,6 +296,10 @@ SCAF: while(<TXT>){
print
SQL
"
insert into seq_region (seq_region_id, name, coord_system_id, length)
\n
";
print
SQL
"
\t
values (
$max_seq_region_id
, '
$alt_name
',
$central_coord_sys
,
$new_length
);
\n\n
";
#add GL accession as synonym for supercontig
print
SQL
"
insert into seq_region_synonym (seq_region_id, synonym, external_db_id)
\n
";
print
SQL
"
\t
values (
$max_seq_region_id
, '
$alt_acc
',
$scaf_syn_ext_id
);
\n\n
";
$name_to_sc_seq_id
{
$alt_name
}
=
$max_seq_region_id
;
$name_to_sc_seq_id
{
$alt_acc
}
=
$max_seq_region_id
;
...
...
@@ -446,3 +453,5 @@ sub load_seq_region {
return
;
}
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