Skip to content

Commit

Permalink
Merge pull request #154 from wtsi-npg/devel
Browse files Browse the repository at this point in the history
merge devel to master to created release 6.11.0
  • Loading branch information
mgcam authored Aug 24, 2020
2 parents 5a3f11e + f6d8468 commit 6f8256c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
LIST OF CHANGES
---------------

release 6.11.0
- iseq_heron_product_metrics table:
set index on the id_run column,
add pp_name and pp_version columns to capture info
about the pipeline, which generated the data

release 6.10.0
- add id_run column to the iseq_heron_product_metrics table
- to allow for deletion of iseq_product_metrica rows, drop
Expand Down
30 changes: 28 additions & 2 deletions lib/WTSI/DNAP/Warehouse/Schema/Result/IseqHeronProductMetric.pm
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,23 @@ Product id, a foreign key into iseq_product_metrics table
Sample name given by the supplier, as recorded by WSI
=head2 pp_name
data_type: 'varchar'
default_value: 'ncov2019-artic-nf'
is_nullable: 1
size: 40
The name of the pipeline that produced the QC metric
=head2 pp_version
data_type: 'varchar'
is_nullable: 1
size: 40
The version of the pipeline specified in the pp_name column
=head2 artic_qc_outcome
data_type: 'char'
Expand Down Expand Up @@ -181,6 +198,15 @@ __PACKAGE__->add_columns(
{ data_type => 'char', is_nullable => 0, size => 64 },
'supplier_sample_name',
{ data_type => 'varchar', is_nullable => 1, size => 255 },
'pp_name',
{
data_type => 'varchar',
default_value => 'ncov2019-artic-nf',
is_nullable => 1,
size => 40,
},
'pp_version',
{ data_type => 'varchar', is_nullable => 1, size => 40 },
'artic_qc_outcome',
{ data_type => 'char', is_nullable => 1, size => 15 },
'climb_upload',
Expand Down Expand Up @@ -230,8 +256,8 @@ __PACKAGE__->set_primary_key('id_iseq_hrpr_metrics_tmp');
__PACKAGE__->add_unique_constraint('iseq_hrm_digest_unq', ['id_iseq_product']);


# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-07-16 16:20:22
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BCr7sE1ypWdilE/PkyuRQg
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-07-21 15:10:10
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mS4dZoQbqFVL11aoRMTszQ

our $VERSION = '0';

Expand Down
9 changes: 9 additions & 0 deletions scripts/update_schema_6.11.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ALTER TABLE `iseq_heron_product_metrics` \
ADD COLUMN `pp_name` VARCHAR(40) DEFAULT 'ncov2019-artic-nf' \
COMMENT 'The name of the pipeline that produced the QC metric' \
AFTER `supplier_sample_name`, \
ADD COLUMN `pp_version` VARCHAR(40) DEFAULT NULL \
COMMENT 'The version of the pipeline specified in the pp_name column' \
AFTER `pp_name`, \
ADD KEY `iseq_hrm_idrun` (`id_run`), \
ADD KEY `iseq_hrm_ppver` (`pp_version`);

0 comments on commit 6f8256c

Please sign in to comment.