Skip to content

Commit

Permalink
Simplified samplesheet auto-generation code.
Browse files Browse the repository at this point in the history
Recently, the default LIMS driver type in samplesheet
generation was changed to 'ml_warehouse'. Following
this change, the code for auto-generation of MiSeq
default samplesheets is now simplified to exclude
an explicit creation of LIMS objects.
  • Loading branch information
mgcam committed Sep 22, 2023
1 parent a39f38f commit 71abfbb
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions lib/npg/samplesheet/auto.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use File::Spec::Functions;
use npg::samplesheet;
use npg_tracking::Schema;
use WTSI::DNAP::Warehouse::Schema;
use st::api::lims;
use st::api::lims::samplesheet;

with q(MooseX::Log::Log4perl);
Expand Down Expand Up @@ -107,17 +106,10 @@ sub process {
my $id_run = $r->id_run;
$self->log->info('Considering ' . join q[,],$id_run,$r->instrument->name);

my $l = st::api::lims->new(
position => 1,
id_run => $id_run,
id_flowcell_lims => $r->batch_id,
driver_type => q(ml_warehouse),
mlwh_schema => $self->mlwh_schema
my $ss = npg::samplesheet->new(
run => $r, mlwh_schema => $self->mlwh_schema
);

my $ss = npg::samplesheet->new(run => $r, lims => [$l]);

my$o=$ss->output;
my $o = $ss->output;
my $generate_new = 1;

if(-e $o) {
Expand Down Expand Up @@ -228,8 +220,6 @@ __END__
=item npg::samplesheet
=item st:api::lims
=item st::api::lims::samplesheet
=item WTSI::DNAP::Warehouse::Schema
Expand Down

0 comments on commit 71abfbb

Please sign in to comment.