Skip to content
Snippets Groups Projects
Commit 01ea4d89 authored by Jan-hinnerk Vogel's avatar Jan-hinnerk Vogel
Browse files

- select-statement adapted to new schema

parent 33448548
No related branches found
No related tags found
No related merge requests found
......@@ -582,9 +582,15 @@ if ($organism eq "drosophila") {
}
#Here we get CG accession numbers ($cg) corresponding to gene_stable_id in Ensembl, get all of the translation internal ids for the given entry
my $query = "select t.translation_id from transcript t, gene_stable_id g where g.gene_id = t.gene_id and g.stable_id = '$cg'";
my $sth = $db->prepare($query);
my $query = qq{
SELECT tl.translation_id
FROM transcript ts, translation tl, gene_stable_id gsi
WHERE gsi.gene_id = ts.gene_id
AND ts.transcript_id = tl.transcript_id
AND gsi.stable_id = '$cg'
};
my $sth = $db->dbc()->prepare($query);
$sth->execute();
while (my $trans_id = $sth->fetchrow) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment