Revision f53ae3a51381f11eeb083d7729e8a2222eef5a42 authored by Susanna Siebert on 30 June 2014, 18:20:04 UTC, committed by Susanna Siebert on 30 June 2014, 18:46:20 UTC
1 parent bc2c694
Raw File
filter_bqm_for_errors
#!/usr/bin/env genome-perl

use strict;
use warnings;

my $found_error = 0;
my @stdin;
while (my $stdin = <>) {
    push @stdin, $stdin;
    $found_error = 1 if ($stdin =~ /ERROR:/);
}
$found_error = 1 if ($stdin[-1] !~ /^COMMITTED$/) and ($stdin[-2] !~ /^No queued models found to start\.$/);

if ($found_error) {
    print @stdin;
}
back to top