forked from wtsi-npg/npg_qc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request wtsi-npg#875 from mgcam/optional_lib_type4review
Made library_type optional in the review check.
- Loading branch information
Showing
5 changed files
with
51 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -357,14 +357,12 @@ around [qw/update insert/] => sub { | |
|
||
##### | ||
# Do not accept half-baked results, ie if we have evaluation | ||
# results, we should also have library type and criteria. | ||
# results, we should also have criteria. | ||
if ($data->{'evaluation_results'} and keys %{$data->{'evaluation_results'}}) { | ||
foreach my $name (qw/library_type criteria/) { | ||
my $value = $data->{$name}; | ||
my $m = "Evaluation results present, but $name absent"; | ||
$value or croak $m; | ||
((not ref $value) or keys %{$value}) or croak $m; | ||
} | ||
my $value = $data->{'criteria'}; | ||
my $m = 'Evaluation results present, but criteria absent'; | ||
$value or croak $m; | ||
((not ref $value) or keys %{$value}) or croak $m; | ||
} | ||
|
||
##### | ||
|
@@ -475,7 +473,7 @@ Marina Gourtovaia E<lt>[email protected]<gt> | |
=head1 LICENSE AND COPYRIGHT | ||
Copyright (C) 2019,2020 Genome Research Ltd. | ||
Copyright (C) 2019,2020, 2924 Genome Research Ltd. | ||
This file is part of NPG. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters