Commit 85b8b357 authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Changed references to protein_feature.hit_id to hit_name to reflect column rename in release 51.

parent 04a5f84b
......@@ -340,7 +340,7 @@ sub fetch_all_by_domain {
transcript tr,
translation tl
WHERE i.interpro_ac = ?
AND i.id = pf.hit_id
AND i.id = pf.hit_name
AND pf.translation_id = tl.translation_id
AND tr.transcript_id = tl.transcript_id
AND tr.is_current = 1
......@@ -1205,7 +1205,7 @@ sub get_Interpro_by_geneid {
AND t.is_current = 1
AND tl.transcript_id = t.transcript_id
AND tl.translation_id = pf.translation_id
AND i.id = pf.hit_id
AND i.id = pf.hit_name
AND i.interpro_ac = x.dbprimary_acc
);
......
......@@ -86,9 +86,9 @@ sub fetch_all_by_translation_id {
my $sth = $self->prepare
("SELECT protein_feature_id, p.seq_start, p.seq_end, p.analysis_id, " .
" p.score, p.perc_ident, p.evalue, p.hit_start, p.hit_end, " .
" p.hit_id, x.display_label, i.interpro_ac " .
" p.hit_name, x.display_label, i.interpro_ac " .
"FROM protein_feature p " .
"LEFT JOIN interpro AS i ON p.hit_id = i.id " .
"LEFT JOIN interpro AS i ON p.hit_name = i.id " .
"LEFT JOIN xref AS x ON x.dbprimary_acc = i.interpro_ac " .
"WHERE p.translation_id = ?");
......@@ -150,10 +150,10 @@ sub fetch_by_dbID{
my $sth = $self->prepare(
"SELECT p.seq_start, p.seq_end, p.analysis_id, " .
" p.score, p.perc_ident, p.evalue, " .
" p.hit_start, p.hit_end, p.hit_id, " .
" p.hit_start, p.hit_end, p.hit_name, " .
" x.display_label, i.interpro_ac " .
"FROM protein_feature p " .
"LEFT JOIN interpro AS i ON p.hit_id = i.id " .
"LEFT JOIN interpro AS i ON p.hit_name = i.id " .
"LEFT JOIN xref AS x ON x.dbprimary_acc = i.interpro_ac " .
"WHERE p.protein_feature_id = ?");
......@@ -245,7 +245,7 @@ sub store {
" analysis_id = ?, ".
" hit_start = ?, ".
" hit_end = ?, ".
" hit_id = ?, ".
" hit_name = ?, ".
" score = ?, ".
" perc_ident = ?, ".
" evalue = ?");
......
......@@ -821,7 +821,7 @@ sub get_Interpro_by_transid {
WHERE tsi.stable_id = ?
AND tl.transcript_id = tsi.transcript_id
AND tl.translation_id = pf.translation_id
AND i.id = pf.hit_id
AND i.id = pf.hit_name
AND i.interpro_ac = x.dbprimary_acc
AND tsi.transcript_id = t.transcript_id
AND t.is_current = 1
......
Markdown is supported
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