#Select all of the gene ac having an intepro domain
my$sth5=$ensdb->prepare("select t.gene,i.interpro_ac from protein_feature as pf, transcript as t,interpro as i,interpro_description as id where pf.translation = t.translation and pf.hid = i.id and i.interpro_ac = id.interpro_ac");
my$sth5=$ensdb->prepare("select t.gene,i.interpro_ac from protein_feature as pf, transcript as t,interpro as i where pf.translation = t.translation and pf.hid = i.id");
$sth5->execute;
my%saw;
while(my@row5=$sth5->fetchrow){
#If the gene has an interpro domain, dump the text describing this domain
open(INPUT,"textview.dump")||die"Can't open File\n";
open(OUT,">new_dump.txt")||die"Can't open File\n";
my%seen;
while(<INPUT>){
my($ens,$db,$ac,@text)=split(/\|/,$_);
if($dbeq"INTERPRO"){
if(!defined$seen{$ac}){
$seen{$ac}=1;
my$sth5=$ensdb->prepare("select distinct(t.gene) from protein_feature as pf, transcript as t,interpro as i where pf.translation = t.translation and pf.hid = i.id and i.interpro_ac = '$ac'");