Robert Petera
2014-04-21 16:26:12 UTC
Hello,
I am a student at Bradley University working the TGD model organism
database. I am having an issue with id callbacks in my subroutine. Here is
my subroutine so far
sub {
my $f = shift;
my $name = $f->name;
my $ref = $f->ref;
my $start = $f->start;
my $end = $f->end;
my $class = $f->class;
my $id = $f->id;
my $ttherm = "TTHERM_";
my($first, $rest) = split(/_/, $name, 2);
my $final = $ttherm . $rest;
my $details = "<a href='
http://www.ciliate.org/gb2/gbrowse_details/tetrahymena_MIC?ref=$ref;start=$start;end=$end;name=;class=$class;feature_id=$id;db_id=general'>View
Gene Details</a><br/>";
my $part1 = "<a href='http://tet.ciliate.org/index.php/feature/details/";
my $part2 = "\'>View This Gene\'s Page</a>";
my $result = join "", $details, $part1, $final, $part2;
return $result;
}
The issue I am currently having is the feature_id part of the url, it uses
the feature name instead of the primary id from the database. I have tried
load_id and it gives me the same result. Any help on this would be
appreciated. You can ignore the part1 and part2 strings as they are not a
part of the problem.
The backend i am using is Bio::DB::SeqFeature::Store and here is a sample
of the gff3 file
supercontig2.1 BROAD gene 37065 42616 . - .
ID=TTHMIC_02655509;name=02655509;note=hypothetical
protein
supercontig2.1 BROAD gene 43023 44543 . + .
ID=TTHMIC_00290610;name=00290610;note=leishmanolysin
family protein
supercontig2.1 BROAD gene 49932 50240 . + .
ID=TTHMIC_00290620;name=00290620;note=hypothetical
protein
supercontig2.1 BROAD gene 52924 54424 . + .
ID=TTHMIC_02655510;name=02655510;note=leishmanolysin
family protein
supercontig2.1 BROAD gene 65346 66180 . + .
ID=TTHMIC_02655511;name=02655511;note=leishmanolysin-like
protein
Thanks,
Robert Petera
I am a student at Bradley University working the TGD model organism
database. I am having an issue with id callbacks in my subroutine. Here is
my subroutine so far
sub {
my $f = shift;
my $name = $f->name;
my $ref = $f->ref;
my $start = $f->start;
my $end = $f->end;
my $class = $f->class;
my $id = $f->id;
my $ttherm = "TTHERM_";
my($first, $rest) = split(/_/, $name, 2);
my $final = $ttherm . $rest;
my $details = "<a href='
http://www.ciliate.org/gb2/gbrowse_details/tetrahymena_MIC?ref=$ref;start=$start;end=$end;name=;class=$class;feature_id=$id;db_id=general'>View
Gene Details</a><br/>";
my $part1 = "<a href='http://tet.ciliate.org/index.php/feature/details/";
my $part2 = "\'>View This Gene\'s Page</a>";
my $result = join "", $details, $part1, $final, $part2;
return $result;
}
The issue I am currently having is the feature_id part of the url, it uses
the feature name instead of the primary id from the database. I have tried
load_id and it gives me the same result. Any help on this would be
appreciated. You can ignore the part1 and part2 strings as they are not a
part of the problem.
The backend i am using is Bio::DB::SeqFeature::Store and here is a sample
of the gff3 file
supercontig2.1 BROAD gene 37065 42616 . - .
ID=TTHMIC_02655509;name=02655509;note=hypothetical
protein
supercontig2.1 BROAD gene 43023 44543 . + .
ID=TTHMIC_00290610;name=00290610;note=leishmanolysin
family protein
supercontig2.1 BROAD gene 49932 50240 . + .
ID=TTHMIC_00290620;name=00290620;note=hypothetical
protein
supercontig2.1 BROAD gene 52924 54424 . + .
ID=TTHMIC_02655510;name=02655510;note=leishmanolysin
family protein
supercontig2.1 BROAD gene 65346 66180 . + .
ID=TTHMIC_02655511;name=02655511;note=leishmanolysin-like
protein
Thanks,
Robert Petera