Skip to content

Commit

Permalink
Merge pull request #836 from wtsi-npg/devel
Browse files Browse the repository at this point in the history
pull from devel to master to create release 71.0.0
  • Loading branch information
jmtcsngr authored Jul 25, 2023
2 parents 9749659 + 9651e56 commit dc429fb
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 138 deletions.
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
LIST OF CHANGES FOR NPG-QC PACKAGE

release 71.0.0
- Removed the plugin that enable to run the SeqQC server under the
daemon utility.
- Updated SOP for changing QC outcomes

release 70.3.0
- tag_sniff get list of known tags via a URL rather than the warehouse DB

Expand Down
30 changes: 19 additions & 11 deletions docs/qc_outcomes_change_howto.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## General
# Guidance for Changing QC Outcomes

- Use correct RT ticket number.
- Use the correct RT ticket number.
- Set id_run, position and tag_index accordingly.
- Wrap database changes into a transaction, which initially shoudl have a clause
to fail it so that it can be tried out (see some examples below).
- Wrap database changes into a transaction, which initially should have
a clause to fail it so that it can be tried out (see some examples below).

## Toggle the outcome of a single library

Expand Down Expand Up @@ -41,7 +41,7 @@ if ($rs->count == 1) {
}
```

## Assigning the library outcome value
## Assign the library outcome value

When the lane outcome is changed from `fail` to `pass`, having consulted
the requestor, you might want to assign a pass to libraries.
Expand Down Expand Up @@ -103,8 +103,10 @@ A full script for one lane is given below.
```
#!/usr/bin/env perl
use List::Util qw/min max/;
use strict;
use warnings;
use Data::Dumper;
use npg_qc::mqc::outcomes::keys qw/ $SEQ_OUTCOMES $LIB_OUTCOMES/;
use npg_qc::Schema;
use npg_qc::mqc::outcomes;
Expand All @@ -116,8 +118,12 @@ use WTSI::DNAP::Warehouse::Schema;
my $id_run = XXXX; # CHANGE!
my $position = Y; # CHANGE!
my $user = 'USER_NAME'; # CHANGE!
my $outcome = q(Accepted final); # Must match the database dictionary value.
# End of inputs from the RT ticket.
print sprintf '%sChanging outcomes for run %i lane %i to "%s" as user %s%s',
qq[\n], $id_run, $position, $outcome, $user, qq[\n];
my $mlwh_schema = WTSI::DNAP::Warehouse::Schema->connect();
# Need to exclude PhiX tag index.
# Tag zero record is not linked to the iseq_flowcell table.
Expand All @@ -127,25 +133,27 @@ my $rs = $mlwh_schema->resultset('IseqProductMetric')->search(
{'me.id_run' => $id_run,
'me.position' => $position,
'iseq_flowcell.entity_type' => 'library_indexed'},
{join => 'iseq_flowcell'}
{join => 'iseq_flowcell',
order_by => 'me.tag_index',
columns => 'tag_index' }
);
my @tag_indexes = map {$_->tag_index} $rs->all();
print "\nNUMBER OF TAGS: " . @tag_indexes . qq[\n];
print "MIN TAG " . min(@tag_indexes) . qq[\n];
print "MAX TAG " . max(@tag_indexes) . qq[\n\n];
print "MIN TAG " . $tag_indexes[0] . qq[\n];
print "MAX TAG " . $tag_indexes[-1] . qq[\n\n];
my $schema = npg_qc::Schema->connect();
my $outcomes = {};
my $info = {};
my $lane_key= join q(:),$id_run,$position;
$outcomes->{$SEQ_OUTCOMES}->{$lane_key} = {mqc_outcome=>q(Accepted final)};
$outcomes->{$SEQ_OUTCOMES}->{$lane_key} = {mqc_outcome => $outcome};
$info->{$lane_key}=\@tag_indexes;
foreach my $tag_index (@tag_indexes) {
my $key= join q(:),$id_run,$position,$tag_index;
$outcomes->{$LIB_OUTCOMES}->{$key} = {mqc_outcome=>q(Accepted final)};
$outcomes->{$LIB_OUTCOMES}->{$key} = {mqc_outcome => $outcome};
}
my $o = npg_qc::mqc::outcomes->new(qc_schema => $schema);
Expand Down
2 changes: 0 additions & 2 deletions npg_qc_viewer/MANIFEST
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Build.PL
Changes
lib/Catalyst/Authentication/Credential/SangerSSOnpg.pm
lib/npg_tracking/daemon/seqqc.pm
lib/npg_qc_viewer/Controller/Checks.pm
lib/npg_qc_viewer/Controller/Illumina.pm
lib/npg_qc_viewer/Controller/QcOutcomes.pm
Expand Down Expand Up @@ -121,7 +120,6 @@ t/00-distribution.t
t/00-podcoverage.t
t/00-pod.t
t/10-authentication-SangerSSOnpg.t
t/10-npg_tracking-daemon-seqqc.t
t/10-util-Error.t
t/10-util-TransferObject.t
t/10-util-TransferObjectFactory.t
Expand Down
107 changes: 0 additions & 107 deletions npg_qc_viewer/lib/npg_tracking/daemon/seqqc.pm

This file was deleted.

18 changes: 0 additions & 18 deletions npg_qc_viewer/t/10-npg_tracking-daemon-seqqc.t

This file was deleted.

0 comments on commit dc429fb

Please sign in to comment.