Skip to content
Snippets Groups Projects
Commit 100cca18 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

ENSCORESW-1673: added intron rank method

parent 1e3604cf
No related branches found
No related tags found
No related merge requests found
......@@ -162,6 +162,24 @@ sub next_Exon {
return $self->{'next'};
}
=head2 rank
Args : none
Example : $rank = $intron->rank
Description: Returns the rank of this Intron
Returntype : Integer
Exceptions : none
Caller : general
Status : Stable
=cut
sub rank {
my ($self, $transcript) = @_;
return $self->prev_Exon->rank($transcript);
}
=head2 is_splice_canonical
Example : my $canonical = $intron->is_splice_canonical();
......
......@@ -42,8 +42,10 @@ my $transcript =
my @exons = (@{$transcript->get_all_Exons()});
my @introns = (@{$transcript->get_all_Introns()});
my $i=0;
my $rank=1;
foreach my $intron (@introns){
is($intron->rank($transcript), $rank, "Checking intron rank");
$rank++;
ok($intron->prev_Exon->end == $intron->start-1);
ok($intron->next_Exon->start == $intron->end+1);
ok($intron->is_splice_canonical(), 'Checking Intron is canonical in its splicing');
......
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