File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
lib/BioX/Workflow/Command Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ use MooseX::App::Role;
66
77use Cwd qw( getcwd) ;
88use Try::Tiny;
9+ use strict;
910
1011with ' MooseX::Object::Pluggable' ;
1112
Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ use Text::ASCIITable;
88use Number::Bytes::Human qw( format_bytes parse_bytes) ;
99use File::Details;
1010use File::Basename;
11+ use List::MoreUtils qw( uniq) ;
1112
1213extends qw( BioX::Workflow::Command ) ;
14+
1315use BioX::Workflow::Command::Utils::Traits qw( ArrayRefOfStrs) ;
1416use BioX::Workflow::Command::run::Utils::Directives;
1517
@@ -138,7 +140,8 @@ sub gen_row {
138140 my $sample = shift ;
139141 my $sample_files = shift ;
140142
141- foreach my $file (@$sample_files ) {
143+ my @uniq = uniq(@{$sample_files });
144+ foreach my $file (@uniq ) {
142145
143146 my @trow = ();
144147
@@ -147,11 +150,14 @@ sub gen_row {
147150 push ( @trow , $cond );
148151
149152 my $rel = ' ' ;
153+ $rel = $file ;
150154 $rel = File::Spec-> abs2rel($file ) if $self -> use_full;
151- $rel = basename($file ) unless $self -> use_full;
155+
156+ my $basename = basename($file ) unless $self -> use_full;
152157
153158 # Add the filename
154- push ( @trow , $rel );
159+ push ( @trow , $rel ) if $self -> use_full;
160+ push ( @trow , $basename ) if !$self -> use_full;
155161
156162 # Does the file exist?
157163 if ( -e $file ) {
You can’t perform that action at this time.
0 commit comments