Skip to content

Commit 297fdb6

Browse files
authored
Merge pull request #482 from ces/pacbio32
Allow for naming differences in unbarcoded bam files from SMRT Link deplexing
2 parents 46c5e66 + 866f48d commit 297fdb6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/WTSI/NPG/HTS/PacBio/AnalysisPublisher.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use namespace::autoclean;
44
use English qw[-no_match_vars];
55
use File::Basename;
66
use File::Spec::Functions qw[catdir];
7+
use List::AllUtils qw[any];
78
use JSON;
89
use Moose;
910
use MooseX::StrictConstructor;
@@ -399,8 +400,7 @@ sub _get_tag_name_from_fname {
399400

400401
sub _is_allowed_fname {
401402
my ($self, $file, $fnames) = @_;
402-
my @exists = grep { $file =~ m{[.] $_ [.]}smx } @{ $fnames };
403-
return @exists == 1 ? 1 : 0;
403+
return (any { $file =~ m{[.] $_ [.]}smx } @{ $fnames } );
404404
}
405405

406406
sub _dest_path {

t/data/pacbio/analysis/0000019480/cromwell-job/call-lima/execution/mlwh_locations.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)