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
ca59389d
Commit
ca59389d
authored
20 years ago
by
Steve Trevanion
Browse files
Options
Downloads
Patches
Plain Diff
added to tidy things up
parent
9784abb6
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/surgery/SeqStoreConverter/vega/VBasicConverter.pm
+99
-0
99 additions, 0 deletions
...scripts/surgery/SeqStoreConverter/vega/VBasicConverter.pm
with
99 additions
and
0 deletions
misc-scripts/surgery/SeqStoreConverter/vega/VBasicConverter.pm
0 → 100644
+
99
−
0
View file @
ca59389d
use
strict
;
use
warnings
;
use
SeqStoreConverter::
BasicConverter
;
package
SeqStoreConverter::vega::
VBasicConverter
;
use
vars
qw(@ISA)
;
@ISA
=
qw(SeqStoreConverter::BasicConverter)
;
sub
remove_supercontigs
{
my
$self
=
shift
;
my
$target
=
$self
->
target
();
my
$dbh
=
$self
->
dbh
();
$self
->
debug
("
Vega specific - removing supercontigs from
$target
");
$dbh
->
do
("
DELETE FROM
$target
.meta
"
.
"
WHERE meta_value like '%supercontig%'
");
$dbh
->
do
("
DELETE FROM
$target
.coord_system
"
.
"
WHERE name like 'supercontig'
");
$dbh
->
do
("
DELETE
$target
.a
"
.
"
FROM
$target
.assembly a,
$target
.seq_region sr
"
.
"
WHERE sr.coord_system_id = 2
"
.
"
and a.asm_seq_region_id = sr.seq_region_id
");
$dbh
->
do
("
DELETE FROM
$target
.seq_region
"
.
"
WHERE coord_system_id = 2
");
}
sub
copy_other_tables
{
my
$self
=
shift
;
#xref tables
$self
->
copy_tables
("
xref
",
"
go_xref
",
"
identity_xref
",
"
object_xref
",
"
external_db
",
"
external_synonym
",
#marker/qtl related tables
"
map
",
"
marker
",
"
marker_synonym
",
"
qtl
",
"
qtl_synonym
",
#misc other tables
"
supporting_feature
",
"
analysis
",
"
exon_transcript
",
"
interpro
",
"
gene_description
",
"
protein_feature
",
#vega tables
"
gene_synonym
",
"
transcript_info
",
"
current_gene_info
",
"
current_transcript_info
",
"
author
",
"
gene_name
",
"
transcript_class
",
"
gene_remark
",
"
gene_info
",
"
evidence
",
"
transcript_remark
",
"
clone_remark
",
"
clone_info
",
"
clone_info_keyword
",
"
clone_lock
");
$self
->
copy_current_clone_info
;
}
sub
copy_current_clone_info
{
my
$self
=
shift
;
my
$source
=
$self
->
source
();
my
$target
=
$self
->
target
();
my
$sth
=
$self
->
dbh
()
->
prepare
("
INSERT INTO
$target
.current_clone_info(clone_id,clone_info_id) SELECT * FROM
$source
.current_clone_info
");
$sth
->
execute
();
$sth
->
finish
();
}
sub
update_clone_info
{
my
$self
=
shift
;
return
;
}
sub
copy_internal_clone_names
{
my
$self
=
shift
;
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