Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified samplesheet auto-generation code. #757

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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