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
955cb328
Commit
955cb328
authored
13 years ago
by
Monika Komorowska
Browse files
Options
Downloads
Patches
Plain Diff
changes related to stable_id merge
parent
c4827fef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
misc-scripts/surgery/fuller_test_genome_9_chr20.pl
+3
-28
3 additions, 28 deletions
misc-scripts/surgery/fuller_test_genome_9_chr20.pl
misc-scripts/surgery/shortintrons2frameshifts.pl
+1
-1
1 addition, 1 deletion
misc-scripts/surgery/shortintrons2frameshifts.pl
with
4 additions
and
29 deletions
misc-scripts/surgery/fuller_test_genome_9_chr20.pl
+
3
−
28
View file @
955cb328
...
...
@@ -201,7 +201,7 @@ $dbh->do("
ALTER TABLE
$destDB
.gene_list ADD INDEX gene_id_idx( gene_id )
")
or
die
"
Could not prepare genelist table alteration:
"
.
$dbh
->
errstr
;
# Now copy gene
and stable id
# Now copy gene
$dbh
->
do
("
INSERT INTO
$destDB
.gene
...
...
@@ -210,14 +210,7 @@ FROM $srcDB.gene g, $destDB.gene_list gl
WHERE g.gene_id = gl.gene_id
")
or
die
"
Could not do gene insertion statement:
"
.
$dbh
->
errstr
;
$dbh
->
do
("
INSERT INTO
$destDB
.gene_stable_id
SELECT gsi.*
FROM
$srcDB
.gene_stable_id gsi,
$destDB
.gene_list gl
WHERE gsi.gene_id = gl.gene_id
")
or
die
"
Could not do gene_stable_id:
"
.
$dbh
->
errstr
;
# now transcript, transcript_stable_id
# now transcript
$dbh
->
do
("
INSERT INTO
$destDB
.transcript
...
...
@@ -226,14 +219,8 @@ FROM $srcDB.transcript tr, $destDB.gene_list gl
WHERE tr.gene_id = gl.gene_id
")
or
die
"
Could not do transcript insertion:
"
.
$dbh
->
errstr
;
$dbh
->
do
("
INSERT INTO
$destDB
.transcript_stable_id
SELECT tsi.*
FROM
$srcDB
.transcript_stable_id tsi,
$destDB
.transcript tr
WHERE tsi.transcript_id = tr.transcript_id
")
or
die
"
Could not do transcript_stable_id insertion:
"
.
$dbh
->
errstr
;
# translations
, translation_stable_id
# translations
$dbh
->
do
("
INSERT INTO
$destDB
.translation
...
...
@@ -242,12 +229,6 @@ FROM $srcDB.translation tl, $destDB.transcript tr
WHERE tr.translation_id = tl.translation_id
")
or
die
"
Could not do translation insertion
"
.
$dbh
->
errstr
;
$dbh
->
do
("
INSERT INTO
$destDB
.translation_stable_id
SELECT tsi.*
FROM
$srcDB
.translation_stable_id tsi,
$destDB
.translation tl
WHERE tsi.translation_id = tl.translation_id
")
or
die
"
Could not do translation_stable_id insertion
"
.
$dbh
->
errstr
;
# exon_transcript
...
...
@@ -275,12 +256,6 @@ FROM $srcDB.exon e, $destDB.exon_unique eu
WHERE e.exon_id = eu.exon_id
")
or
die
"
Could not do exon insertion:
"
.
$dbh
->
errstr
;
$dbh
->
do
("
INSERT INTO
$destDB
.exon_stable_id
SELECT esi.*
FROM
$srcDB
.exon_stable_id esi,
$destDB
.exon_unique eu
WHERE esi.exon_id = eu.exon_id
")
or
die
"
Could not do exon_stable_id insertion:
"
.
$dbh
->
errstr
;
$dbh
->
do
("
drop table
$destDB
.exon_unique
")
or
die
"
Could not drop exon_unique temp table:
$dbh
->errstr
\n
";
...
...
This diff is collapsed.
Click to expand it.
misc-scripts/surgery/shortintrons2frameshifts.pl
+
1
−
1
View file @
955cb328
...
...
@@ -60,7 +60,7 @@ my $upd_tl_sth = $db->dbc->prepare(qq{UPDATE translation
WHERE translation_id = ?}
);
my
$sth
=
$db
->
dbc
->
prepare
(
qq{SELECT max(stable_id) FROM exon
_stable_id
}
);
my
$sth
=
$db
->
dbc
->
prepare
(
qq{SELECT max(stable_id) FROM exon}
);
$sth
->
execute
();
my
$ex_stable_id
=
$sth
->
fetchall_arrayref
->
[
0
]
->
[
0
];
$ex_stable_id
++
;
...
...
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