Skip to content
Snippets Groups Projects
Commit 63cdaedc authored by Arne Stabenau's avatar Arne Stabenau
Browse files

fixed fetch_by_Transcript_id. Used stable ids, now uses internal_ids.

parent 6c4dd437
No related branches found
No related tags found
No related merge requests found
......@@ -283,10 +283,8 @@ sub fetch_by_Transcript_id {
# this is a cheap SQL call
#my $sth = $self->prepare("select gene_id from transcript where transcript_id = '$transid'");
my $sth = $self->prepare(" SELECT tr.gene_id
FROM transcript as tr,
transcript_stable_id as trs
WHERE trs.stable_id = '$transid'
AND trs.transcript_id = tr.transcript_id");
FROM transcript as tr
WHERE tr.transcript_id = $transid");
$sth->execute;
my ($geneid) = $sth->fetchrow_array();
......
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