Navigation Menu

Skip to content

Commit

Permalink
Allow ID of 0 in trait files
Browse files Browse the repository at this point in the history
  • Loading branch information
fangly committed Jun 9, 2012
1 parent 63cd140 commit 910afe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Bio/Tree/TreeFunctionsI.pm
Expand Up @@ -1164,7 +1164,7 @@ sub _read_trait_file {
}

my $id = $line[0];
last unless $id;
last if (not defined $id) or ($id eq '');

# Skip empty trait values
my $value = $line[$column];
Expand Down
1 change: 1 addition & 0 deletions t/data/traits.tab
@@ -1,4 +1,5 @@
"id" "assoc" disp "intermediate"
0 "blue" blue "red"
1 "blue" blue "red"
2 "blue" "blue"
3 "blue" blue "blue"
Expand Down

0 comments on commit 910afe6

Please sign in to comment.