None available.
sub _convert_single
{ my ($self, $arg) = @_;
unless($arg->isa('Bio::SeqFeature::Gene::Transcript')){
$self->throw("A Bio::SeqFeature::Gene::Transcript object needed");
}
my $transcript = $arg;
my @exons = $transcript->exons_ordered;
$self->{_converter_for_exons}->contig($self->contig);
$self->{_converter_for_exons}->analysis($self->analysis);
my $ens_exons = $self->{_converter_for_exons}->convert(\@exons);
my $ens_transcript = Bio::EnsEMBL::Transcript->new(@{$ens_exons});
$ens_transcript->start($transcript->start);
$ens_transcript->end($transcript->end);
return $ens_transcript; } |
sub _initialize
{ my ($self, @args) = @_;
$self->SUPER::_initialize(@args);
$self->{_converter_for_exons} = new Bio::EnsEMBL::Utils::Converter(
-in => 'Bio::SeqFeature::Gene::Exon',
-out => 'Bio::EnsEMBL::Exon'
); } |