Skip to content

Commit

Permalink
Deleted the code for inline indexes.
Browse files Browse the repository at this point in the history
This was used for Tradis runs when no LIMS support
was available. Was not needed for the last 7 years.
  • Loading branch information
mgcam committed Oct 27, 2023
1 parent 928d753 commit 385d7a5
Showing 1 changed file with 0 additions and 84 deletions.
84 changes: 0 additions & 84 deletions lib/st/api/lims.pm
Original file line number Diff line number Diff line change
Expand Up @@ -316,90 +316,6 @@ for my $m ( @METHODS ){
# All methods are created, now aliases for methods can be defined.
alias primer_panel => 'gbs_plex_name';

=head2 inline_index_read
index read
=cut

has 'inline_index_read' => (isa => 'Maybe[Int]',
is => 'ro',
init_arg => undef,
lazy_build => 1,
);

sub _build_inline_index_read {
my $self = shift;
my @x = _parse_sample_description($self->_sample_description);
return $x[3]; ## no critic (ProhibitMagicNumbers)
}

has 'inline_index_end' => (isa => 'Maybe[Int]',
is => 'ro',
init_arg => undef,
lazy_build => 1,
);

=head2 inline_index_end
index end
=cut

sub _build_inline_index_end {
my $self = shift;
my @x = _parse_sample_description($self->_sample_description);
return $x[2];
}

=head2 inline_index_start
index start
=cut

has 'inline_index_start' => (isa => 'Maybe[Int]',
is => 'ro',
init_arg => undef,
lazy_build => 1,
);

sub _build_inline_index_start {
my $self = shift;
my @x = _parse_sample_description($self->_sample_description);
return $x[1];
}

=head2 inline_index_exists
=cut

has 'inline_index_exists' => (isa => 'Bool',
is => 'ro',
init_arg => undef,
lazy_build => 1,
);

sub _build_inline_index_exists {
my $self = shift;
return _tag_sequence_from_sample_description($self->_sample_description) ? 1 : 0;
}

has '_sample_description' => (isa => 'Maybe[Str]',
is => 'ro',
init_arg => undef,
lazy_build => 1,
);

sub _build__sample_description {
my $self = shift;
return $self->sample_description if ($self->sample_description);
foreach my $c ($self->children) {
return $c->sample_description if ($c->sample_description);
}
return;
}

=head2 is_phix_spike
True for a plex library that is the spiked phiX.
Expand Down

0 comments on commit 385d7a5

Please sign in to comment.