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

Explained QC outcome change for complex products #872

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Changes from 1 commit
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
35 changes: 35 additions & 0 deletions docs/qc_outcomes_change_howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,41 @@
- 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).

All listed below procedures were originally written for products containing
one component. Procedures for changing the already existing QC outcomes should
jmtcsngr marked this conversation as resolved.
Show resolved Hide resolved
also work for products containing multiple components as long as these
components are from the same run and are for the same tag index. Use any lane
number (position) that went into the merged product. For example, for a product
described by JSON below

```
jmtcsngr marked this conversation as resolved.
Show resolved Hide resolved
{
"__CLASS__": "npg_tracking::glossary::composition-101.3.0",
"components": [
{
"__CLASS__": "npg_tracking::glossary::composition::component::illumina-101.3.0",
"id_run": 49404,
"position": 7,
"tag_index": 1
},
{
"__CLASS__": "npg_tracking::glossary::composition::component::illumina-101.3.0",
"id_run": 49404,
"position": 8,
"tag_index": 1
}
]
}
```

use the following expression for a search when toggling the QC outcome

```
my $rs=npg_qc::Schema->connect()->resultset("MqcLibraryOutcomeEnt")
->search_autoqc({id_run=>49494,position=>7,tag_index=>1});
```


jmtcsngr marked this conversation as resolved.
Show resolved Hide resolved
## Toggle the outcome of a single library

QC outcome will change from `pass` to `fail` or `fail` to `pass`.
Expand Down
Loading