Skip to content

Commit

Permalink
Merge pull request #224 from ces/BGE
Browse files Browse the repository at this point in the history
Add fields to iseq_product_metrics for BGE libraries
  • Loading branch information
mgcam authored Dec 13, 2023
2 parents 6de26a0 + 7b1d1fd commit 5eb877e
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
LIST OF CHANGES
---------------

- Additional columns added to the iseq_product_metrics table to support
BGE library metrics reporting.

release 6.30.0
- To help with detecting recent changes, add `last_changed` column
to PacBio NPG tables and update relevant DBIx classes.
Expand Down
43 changes: 41 additions & 2 deletions lib/WTSI/DNAP/Warehouse/Schema/Result/IseqProductMetric.pm
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,13 @@ mate_mapped_defferent_chr_5 as percentage of all
is_nullable: 1
size: [5,2]
=head2 mean_bait_target_coverage
data_type: 'float'
is_nullable: 1
Mean coverage of the design target regions of a bait library (if used and known)
=head2 verify_bam_id_average_depth
data_type: 'float'
Expand Down Expand Up @@ -570,6 +577,30 @@ The coverage threshold used in the target perc target greater than depth calcula
The percentage of the target covered at greater than the depth specified
=head2 target_autosome_filter
data_type: 'varchar'
is_nullable: 1
size: 30
Filter used to produce the autosome target stats file
=head2 target_autosome_length
data_type: 'bigint'
extra: {unsigned => 1}
is_nullable: 1
The total length of the autosomes only target regions
=head2 target_autosome_mapped_bases
data_type: 'bigint'
extra: {unsigned => 1}
is_nullable: 1
The number of mapped bases passing the autosome target filters
=head2 target_autosome_coverage_threshold
data_type: 'integer'
Expand Down Expand Up @@ -871,6 +902,8 @@ __PACKAGE__->add_columns(
is_nullable => 1,
size => [5, 2],
},
'mean_bait_target_coverage',
{ data_type => 'float', is_nullable => 1 },
'verify_bam_id_average_depth',
{
data_type => 'float',
Expand Down Expand Up @@ -927,6 +960,12 @@ __PACKAGE__->add_columns(
{ data_type => 'integer', is_nullable => 1 },
'target_percent_gt_coverage_threshold',
{ data_type => 'float', is_nullable => 1, size => [5, 2] },
'target_autosome_filter',
{ data_type => 'varchar', is_nullable => 1, size => 30 },
'target_autosome_length',
{ data_type => 'bigint', extra => { unsigned => 1 }, is_nullable => 1 },
'target_autosome_mapped_bases',
{ data_type => 'bigint', extra => { unsigned => 1 }, is_nullable => 1 },
'target_autosome_coverage_threshold',
{ data_type => 'integer', is_nullable => 1 },
'target_autosome_percent_gt_coverage_threshold',
Expand Down Expand Up @@ -1073,8 +1112,8 @@ __PACKAGE__->belongs_to(
);


# Created by DBIx::Class::Schema::Loader v0.07051 @ 2023-10-23 16:35:44
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rf7TGwVeXRjNW5a9wU8baQ
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2023-12-13 14:21:19
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JGzaGF0Y9fdlAH5ZG6PYsA


# You can replace this text with custom code or comments, and it will be preserved on regeneration
Expand Down
15 changes: 15 additions & 0 deletions scripts/update_schema_6.31.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-- Add columns for metrics useful for BGE project.

ALTER TABLE `iseq_product_metrics` \
ADD COLUMN `mean_bait_target_coverage` float DEFAULT NULL \
COMMENT 'Mean coverage of the design target regions of a bait library (if used and known)' \
AFTER `on_or_near_bait_percent`, \
ADD COLUMN `target_autosome_filter` varchar(30) DEFAULT NULL \
COMMENT 'Filter used to produce the autosome target stats file' \
AFTER `target_percent_gt_coverage_threshold`, \
ADD COLUMN `target_autosome_length` bigint unsigned DEFAULT NULL \
COMMENT 'The total length of the autosomes only target regions' \
AFTER `target_autosome_filter`, \
ADD COLUMN `target_autosome_mapped_bases` bigint unsigned DEFAULT NULL \
COMMENT 'The number of mapped bases passing the autosome target filters' \
AFTER `target_autosome_length`;

0 comments on commit 5eb877e

Please sign in to comment.