Skip to content

Commit

Permalink
Avoid archiving "Analysis" hierarchy
Browse files Browse the repository at this point in the history
as this contained a Analysis/1/Data/BCLConvert/fastq/Reports/RunInfo.xml

Improve doc slightly too.
  • Loading branch information
dkj committed Jul 20, 2023
1 parent 4b77522 commit e45240f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion lib/npg_pipeline/function/run_data_to_irods_archiver.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ override 'create' => sub {
q{--include}, q['RunInfo.xml'],
q{--include}, q['[Rr]unParameters.xml'],
q{--include}, q[InterOp],
q{--exclude}, q[Analysis],
q{--id_run}, $self->id_run,
q{--logconf}, $self->conf_file_path('log4perl_publish_illumina.conf');

Expand Down Expand Up @@ -57,7 +58,8 @@ npg_pipeline::function::run_data_to_irods_archiver
=head1 DESCRIPTION
Defines a job for publishing Illumina run data to iRODS.
Defines a job for publishing Illumina's data about a run to iRODS. e.g.
RunParameters.xml and InterOp/
=head1 SUBROUTINES/METHODS
Expand Down
8 changes: 4 additions & 4 deletions t/20-function-run_data_to_irods_archiver.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ my $util = t::util->new();

my $tmp_dir = $util->temp_directory();
my $script = q{npg_publish_illumina_run.pl};
my $includes = qr/--include 'RunInfo\.xml' --include '\[Rr\]unParameters\.xml' --include InterOp/;
my $inexcludes = qr/--include 'RunInfo\.xml' --include '\[Rr\]unParameters\.xml' --include InterOp --exclude Analysis/;

my $defaults = {
default => {
Expand Down Expand Up @@ -70,7 +70,7 @@ subtest 'MiSeq run' => sub {
is ($d->job_name, qq{publish_run_data2irods_${id_run}_20181204},
'job_name is correct');
like ($d->command,
qr/$script --restart_file $restart_file --max_errors 10 --collection $col --source_directory $rfpath $includes --id_run $id_run/,
qr/$script --restart_file $restart_file --max_errors 10 --collection $col --source_directory $rfpath $inexcludes --id_run $id_run/,
'command is correct');
is ($d->command_preexec,
'npg_pipeline_script_must_be_unique_runner -job_name="publish_run_data2irods_16850"',
Expand Down Expand Up @@ -138,7 +138,7 @@ subtest 'NovaSeq run' => sub {
my $d = $da->[0];
isa_ok($d, q{npg_pipeline::function::definition});
like ($d->command,
qr/$script --restart_file $restart_file --max_errors 10 --collection $col --source_directory $rfpath $includes --id_run $id_run/,
qr/$script --restart_file $restart_file --max_errors 10 --collection $col --source_directory $rfpath $inexcludes --id_run $id_run/,
'command is correct');
};

Expand Down Expand Up @@ -166,7 +166,7 @@ subtest 'Logconf option' => sub {
my $da = $a->create();
my $d = $da->[0];
like ($d->command,
qr/$script --restart_file $restart_file --max_errors 10 --collection $col --source_directory $rfpath $includes --id_run $id_run --logconf $syslog_conf/,
qr/$script --restart_file $restart_file --max_errors 10 --collection $col --source_directory $rfpath $inexcludes --id_run $id_run --logconf $syslog_conf/,
'command is correct');
};

Expand Down

0 comments on commit e45240f

Please sign in to comment.