Summary | Included libraries | Package variables | Synopsis | Description | General documentation | Methods |
WebCvs | Raw content |
find_gaps | Description | Code |
find_gaps | code | next | Top |
Args : arrayref of B::E::Transcripts |
find_gaps | description | prev | next | Top |
my $self = shift; my ($all_transcripts) = @_; my $gaps = 0; my @sorted_transcripts = sort {$a->start <=> $b->start || $b->end <=> $a->end} @{$all_transcripts}; my $first_transcript = shift @sorted_transcripts; my $pos = $first_transcript->end; foreach my $transcript (@sorted_transcripts) { next if ($transcript->end < $pos ); if ($transcript->start < $pos && $transcript->end > $pos ) { $pos = $transcript->end; next; } elsif ($transcript->end > $pos) { $gaps++; $pos = $transcript->end; } } return $gaps;}
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>.