Skip to content

Commit

Permalink
Merge pull request #479 from ens-lgil/feature/haplo_fix_96b
Browse files Browse the repository at this point in the history
Keep same chromosome ordering for the transcript tree
  • Loading branch information
at7 authored Jun 4, 2019
2 parents c36b302 + 3ab39a5 commit c9cbd42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/Bio/EnsEMBL/VEP/AnnotationSource/Cache/Transcript.pm
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ sub tree_file {
open TR, ">$tmpfile" or throw("ERROR: Could not write to transcript coords file: $!");

opendir DIR, $as_dir;
foreach my $c(grep {!/^\./ && -d $as_dir.'/'.$_} readdir DIR) {
foreach my $c(sort { $a cmp $b } grep {!/^\./ && -d $as_dir.'/'.$_} readdir DIR) {

opendir CHR, $as_dir.'/'.$c;

Expand Down Expand Up @@ -319,4 +319,4 @@ sub tree_file {
return $file;
}

1;
1;

0 comments on commit c9cbd42

Please sign in to comment.