Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/geoff' into gff
Browse files Browse the repository at this point in the history
Incorporate fix for cross origin genes crashing islandpath.
  • Loading branch information
Nolan Woods committed Jun 6, 2019
2 parents c8d1fe0 + 7aa93b9 commit c24711b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/GenomeUtils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,18 @@ sub read_and_convert {
my $count = 0;

#Step through each protein
foreach my $feat (@cds) {
PROT: foreach my $feat (@cds) {
$count++;

#Get the general features
my $start = $feat->start;
my $end = $feat->end;

# Ignore joined spans that break the trunc() function
if ($start > $end) {
next PROT;
}

my $strand = $feat->strand;
my $length = $feat->length;

Expand Down

0 comments on commit c24711b

Please sign in to comment.