Skip to content

Commit

Permalink
Merge pull request #847 from nerdstrike/schema_loader_cleanup
Browse files Browse the repository at this point in the history
Simplify schema exclusions now the tables are gone
  • Loading branch information
mgcam authored Nov 29, 2023
2 parents af4f29d + ab5baef commit aa2237b
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions scripts/npgqc_dbix_schema_loader.pl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
qw/sequence_summary interop/
)) {
my ($result_name, $dbix_result_name ) = $generic_role->class_names($check);

my @roles = ($composition, $flator, $generic_role);
my $rpackage = $role_base . $result_name;
my $found = eval "require $rpackage";
Expand All @@ -50,46 +50,22 @@
{
debug => 0,
dump_directory => q[lib],
naming => {
relationships => 'current',
monikers => 'current',
naming => {
relationships => 'current',
monikers => 'current',
column_accessors => 'preserve',
},
skip_load_external => 1,
use_moose => 1,
preserve_case => 1,
use_namespaces => 1,
default_resultset_class => 'ResultSet',

exclude => qr/\A v_ |
analysis |
cache_query |
chip_summary |
cumulative_errors_ |
error_rate_ |
errors_by_ |
fastqcheck |
frequency_response |
instrument_statistics |
image_store |
information_content_ |
lane_qc |
log_likelihood |
most_common_ |
move_z |
offset |
recipe_file |
run_graph |
run_recipe |
run_tile |
ref_snp_info |
run_and_pair |
run_config |
run_graph |
run_info |
run_timeline |
signal_mean |
tile_score
run_info
/xms,

rel_name_map => sub { # Rename the id relationship so we can access
Expand Down Expand Up @@ -120,7 +96,7 @@
'pulldown_metrics' => q[PulldownMetrics],
'split_stats' => q[SplitStats],
'split_stats_coverage' => q[SplitStatsCoverage],
'substitution_metrics' => q[SubstitutionMetrics],
'substitution_metrics' => q[SubstitutionMetrics],
'qx_yield' => q[QXYield],
'tag_metrics' => q[TagMetrics],
'tags_reporters' => q[TagsReporters],
Expand Down

0 comments on commit aa2237b

Please sign in to comment.