Included libraries | Package variables | Synopsis | General documentation | Methods |
WebCvs | Raw content |
$ex = new Bio::EnsEMBL::Intron( exon1, exon2 );
new | Description | Code |
next_Exon | Description | Code |
prev_Exon | Description | Code |
new | code | next | Top |
Args : exon1, exon2. The two exons to build the Intron from. |
next_Exon | code | prev | next | Top |
Args : none |
prev_Exon | code | prev | next | Top |
Args : none |
new | description | prev | next | Top |
my ($class,$e1,$e2) = @_; $class = ref $class || $class; my $self = $class->SUPER::new(); if($e1->strand == -1){ $self->{'end'} = ($e1->start)-1; $self->{'start'} = ($e2->end)+1; } else{ $self->{'start'}= ($e1->end)+1; $self->{'end'} = ($e2->start)-1; } if($e1->strand != $e2->strand){ # throw("Exons on different strand. Not allowed");}
} else{ $self->{'strand'} = $e1->strand; } if($e1->slice ne $e2->slice){ if($e1->slice->seq_region_name ne $e2->slice->seq_region_name){ throw("Exons on different slices. Not allowed"); } else{ warn("Exons have different slice references to the same seq_region\n"); } } else{ $self->{'slice'} = $e1->slice; } $self->{'prev'} = $e1; $self->{'next'} = $e2; return $self;
next_Exon | description | prev | next | Top |
my ($self) = shift; return $self->{'next'}; } 1;}
prev_Exon | description | prev | next | Top |
my ($self) = shift; return $self->{'prev'};}
LICENSE | Top |
Copyright (c) 1999-2009 The European Bioinformatics Institute and
Genome Research Limited. All rights reserved.
This software is distributed under a modified Apache license. For license details, please see /info/about/code_licence.html
CONTACT | Top |
Please email comments or questions to the public Ensembl
developers list at <ensembl-dev@ebi.ac.uk>.
Questions may also be sent to the Ensembl help desk at <helpdesk@ensembl.org>.
NAME Bio::EnsEMBL::Intron - A class representing an Intron | Top |