-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from wtsi-npg/devel
pull from devel to master to create release 6.13.0
- Loading branch information
Showing
5 changed files
with
801 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
193 changes: 193 additions & 0 deletions
193
lib/WTSI/DNAP/Warehouse/Schema/Result/PacBioProductMetric.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,193 @@ | ||
|
||
package WTSI::DNAP::Warehouse::Schema::Result::PacBioProductMetric; | ||
|
||
# Created by DBIx::Class::Schema::Loader | ||
# DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
|
||
=head1 NAME | ||
WTSI::DNAP::Warehouse::Schema::Result::PacBioProductMetric | ||
=head1 DESCRIPTION | ||
A linking table for the pac_bio_run and pac_bio_run_well_metrics tables with a potential for adding per-product QC data | ||
=cut | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use Moose; | ||
use MooseX::NonMoose; | ||
use MooseX::MarkAsMethods autoclean => 1; | ||
extends 'DBIx::Class::Core'; | ||
|
||
=head1 COMPONENTS LOADED | ||
=over 4 | ||
=item * L<DBIx::Class::InflateColumn::DateTime> | ||
=back | ||
=cut | ||
|
||
__PACKAGE__->load_components('InflateColumn::DateTime'); | ||
|
||
=head1 TABLE: C<pac_bio_product_metrics> | ||
=cut | ||
|
||
__PACKAGE__->table('pac_bio_product_metrics'); | ||
|
||
=head1 ACCESSORS | ||
=head2 id_pac_bio_pr_metrics_tmp | ||
data_type: 'integer' | ||
is_auto_increment: 1 | ||
is_nullable: 0 | ||
=head2 id_pac_bio_rw_metrics_tmp | ||
data_type: 'integer' | ||
is_foreign_key: 1 | ||
is_nullable: 0 | ||
PacBio run well metrics id, see 'pac_bio_run_well_metrics.id_pac_bio_rw_metrics_tmp' | ||
=head2 id_pac_bio_tmp | ||
data_type: 'integer' | ||
is_foreign_key: 1 | ||
is_nullable: 1 | ||
PacBio run id, see 'pac_bio_run.id_pac_bio_tmp' | ||
=cut | ||
|
||
__PACKAGE__->add_columns( | ||
'id_pac_bio_pr_metrics_tmp', | ||
{ data_type => 'integer', is_auto_increment => 1, is_nullable => 0 }, | ||
'id_pac_bio_rw_metrics_tmp', | ||
{ data_type => 'integer', is_foreign_key => 1, is_nullable => 0 }, | ||
'id_pac_bio_tmp', | ||
{ data_type => 'integer', is_foreign_key => 1, is_nullable => 1 }, | ||
); | ||
|
||
=head1 PRIMARY KEY | ||
=over 4 | ||
=item * L</id_pac_bio_pr_metrics_tmp> | ||
=back | ||
=cut | ||
|
||
__PACKAGE__->set_primary_key('id_pac_bio_pr_metrics_tmp'); | ||
|
||
=head1 RELATIONS | ||
=head2 pac_bio | ||
Type: belongs_to | ||
Related object: L<WTSI::DNAP::Warehouse::Schema::Result::PacBioRun> | ||
=cut | ||
|
||
__PACKAGE__->belongs_to( | ||
'pac_bio', | ||
'WTSI::DNAP::Warehouse::Schema::Result::PacBioRun', | ||
{ id_pac_bio_tmp => 'id_pac_bio_tmp' }, | ||
{ | ||
is_deferrable => 1, | ||
join_type => 'LEFT', | ||
on_delete => 'SET NULL', | ||
on_update => 'NO ACTION', | ||
}, | ||
); | ||
|
||
=head2 pac_bio_rw_metrics | ||
Type: belongs_to | ||
Related object: L<WTSI::DNAP::Warehouse::Schema::Result::PacBioRunWellMetric> | ||
=cut | ||
|
||
__PACKAGE__->belongs_to( | ||
'pac_bio_rw_metrics', | ||
'WTSI::DNAP::Warehouse::Schema::Result::PacBioRunWellMetric', | ||
{ id_pac_bio_rw_metrics_tmp => 'id_pac_bio_rw_metrics_tmp' }, | ||
{ is_deferrable => 1, on_delete => 'CASCADE', on_update => 'NO ACTION' }, | ||
); | ||
|
||
|
||
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-02-09 11:33:17 | ||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ea+iVDOfptyUAPyi3Otvyg | ||
|
||
our $VERSION = '0'; | ||
|
||
__PACKAGE__->meta->make_immutable; | ||
1; | ||
|
||
=head1 SYNOPSIS | ||
=head1 DESCRIPTION | ||
Result class definition in DBIx binding for the multi-lims warehouse database. | ||
=head1 DIAGNOSTICS | ||
=head1 CONFIGURATION AND ENVIRONMENT | ||
=head1 SUBROUTINES/METHODS | ||
=head1 DEPENDENCIES | ||
=over | ||
=item strict | ||
=item warnings | ||
=item Moose | ||
=item MooseX::NonMoose | ||
=item MooseX::MarkAsMethods | ||
=item DBIx::Class::Core | ||
=item DBIx::Class::InflateColumn::DateTime | ||
=back | ||
=head1 INCOMPATIBILITIES | ||
=head1 BUGS AND LIMITATIONS | ||
=head1 AUTHOR | ||
=head1 LICENSE AND COPYRIGHT | ||
Copyright (C) 2021 Genome Research Limited | ||
This file is part of the ml_warehouse package L<https://github.com/wtsi-npg/ml_warehouse>. | ||
NPG is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
=cut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.