Skip to content

Commit

Permalink
Wed Jul 22 11:40:43 EDT 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
sunitj committed Jul 22, 2015
1 parent dd93c03 commit d6821f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions sandbox/coveragePerBin.pl
Expand Up @@ -76,9 +76,11 @@ =head1 Disclaimer
close $CONF;

if (scalar(keys %errorTrigger) > 0) {
my $error="------------------------------------------------\n";
my $numOfChar=80;
my $error=("-" x $numOfChar)."\n";
$error.="[ERROR] Scaffold assigned to multiple bins!\n";
$error.="Can't decide which bin to add it to.\n";
$error.="Use the `getClassFasta.pl' script with a loyalty value >= 51 (recommend: 60)\n";
$error.="Here are the offending scaffolds and their bins:\n";
foreach my $scaffold(keys %errorTrigger){
$error.="$scaffold";
Expand All @@ -87,7 +89,7 @@ =head1 Disclaimer
}
$error.="\n";
}
$error.="------------------------------------------------\n";
$error.=("-" x $numOfChar)."\n";
die $error;
}

Expand Down
6 changes: 4 additions & 2 deletions wrappers/Assembly/coveragePerBin.pl
Expand Up @@ -76,9 +76,11 @@ =head1 Disclaimer
close $CONF;

if (scalar(keys %errorTrigger) > 0) {
my $error="------------------------------------------------\n";
my $numOfChar=80;
my $error=("-" x $numOfChar)."\n";
$error.="[ERROR] Scaffold assigned to multiple bins!\n";
$error.="Can't decide which bin to add it to.\n";
$error.="Use the `getClassFasta.pl' script with a loyalty value >= 51 (recommend: 60)\n";
$error.="Here are the offending scaffolds and their bins:\n";
foreach my $scaffold(keys %errorTrigger){
$error.="$scaffold";
Expand All @@ -87,7 +89,7 @@ =head1 Disclaimer
}
$error.="\n";
}
$error.="------------------------------------------------\n";
$error.=("-" x $numOfChar)."\n";
die $error;
}

Expand Down

0 comments on commit d6821f0

Please sign in to comment.