Skip to content

Commit

Permalink
Better documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Aug 27, 2020
1 parent 2b754bb commit 997d5fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Bio/EnsEMBL/DataCheck/Checks/ControlledTablesCompara.pm
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,16 @@ sub master_tables {
my $populated = is_rows_nonzero($self->dba, $count_sql, $desc_2);

if ($populated) {
# Check that the table is a subset of the master database, and record the dbIDs
my $id_column = $table eq 'species_set_header' ? 'species_set_id' : "${table}_id";
$ids{$table} = $self->consistent_data($helper, $master_helper, $table, [$id_column])
}
}

# We need an adaptor (any) in order to generate SQL IN clauses
# The following checks have to include the list of dbIDs in the SQL
# query. To keep things smooth, we should not put all the dbIDs in the
# same IN constraint, but make batches instead. This is achieved by the
# helper method "split_and_callback" available on Compara adaptors.
my $gdb_adaptor = $master_dba->get_GenomeDBAdaptor;

$gdb_adaptor->split_and_callback($ids{'species_set_header'}, 'species_set_id', SQL_INTEGER, sub {
Expand Down

0 comments on commit 997d5fa

Please sign in to comment.