Skip to content

Commit

Permalink
Supressed keeping interim fastq files
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcam committed Dec 19, 2023
1 parent 474a510 commit 3f960da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions lib/npg/samplesheet/auto.pm
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,15 @@ sub process {
my $ss;
if ($self->instrument_format eq $MISEQ_INSTRUMENT_FORMAT) {
$ss = npg::samplesheet->new(
run => $r, mlwh_schema => $self->mlwh_schema
run => $r,
mlwh_schema => $self->mlwh_schema
);
} else {
$ss = npg::samplesheet::novaseq_xseries->new(
run => $r, id_run => $id_run,
id_run => $id_run,
run => $r,
mlwh_schema => $self->mlwh_schema,
align => 1, keep_fastq => 1
align => 1
);
}

Expand Down
4 changes: 3 additions & 1 deletion t/47-npg_samplesheet_auto.t
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ my $schema = $util->create_test_db(q[npg_tracking::Schema],
is (@files, 1, 'one NovaSeqX samplesheet file is generated');
my $compare_file = 't/data/samplesheet/dragen/' .
'231206_47995_NVX1_A_ssbatch98292_align.csv';
is (slurp($files[0]), slurp($compare_file),
my $expected = slurp($compare_file);
$expected =~ s/KeepFastq,TRUE,,,/KeepFastq,FALSE,,,/;
is (slurp($files[0]), $expected,
'the NovaSeqX samplesheet is generated correctly');
}

Expand Down

0 comments on commit 3f960da

Please sign in to comment.