Skip to content

Commit

Permalink
check Genomic_position header is present at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
willmclaren committed Jun 28, 2022
1 parent 6d499ec commit 9c0b6d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MTR.pm
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ sub new {
}
close HEAD;

if(!exists($self->{headers}->{'Genomic_position'})) {
die "Required header Genomic_position not found.\n";
}

return $self;
}

Expand Down

0 comments on commit 9c0b6d1

Please sign in to comment.