Skip to content

Commit

Permalink
Merge 9712770 into 0714850
Browse files Browse the repository at this point in the history
  • Loading branch information
james-monkeyshines committed Sep 18, 2020
2 parents 0714850 + 9712770 commit 008c565
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/Bio/EnsEMBL/DataCheck/Checks/DatabaseSpeciesName.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ extends 'Bio::EnsEMBL::DataCheck::DbCheck';
use constant {
NAME => 'DatabaseSpeciesName',
DESCRIPTION => 'The species.production_name meta key matches the DB name',
DATACHECK_TYPE => 'advisory',
GROUPS => ['core', 'corelike', 'funcgen', 'meta', 'variation'],
DB_TYPES => ['cdna', 'core', 'funcgen', 'otherfeatures', 'rnaseq', 'variation'],
TABLES => ['meta'],
Expand Down
5 changes: 5 additions & 0 deletions lib/Bio/EnsEMBL/DataCheck/Checks/RepeatFeatures.pm
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ sub tests {
skip "Repeat features not mandatory for species in collection dbs", 1;
}

my $mca = $self->dba->get_adaptor('MetaContainer');
if ($mca->get_division eq 'EnsemblViruses') {
skip "Repeat features not mandatory for viruses", 1;
}

# Don't need to worry about species_id, because we don't do this
# query for collection dbs...
my @logic_names = ('dust', 'trf');
Expand Down
8 changes: 5 additions & 3 deletions lib/Bio/EnsEMBL/DataCheck/Checks/VersionedGenes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ sub tests {
my $species_id = $self->dba->species_id;

my $mca = $self->dba->get_adaptor('MetaContainer');
my $method = $mca->single_value_by_key('genebuild.method');
my $methods = $mca->list_value_by_key('genebuild.method');

# If the geneset has been produced in-house, the 'method' meta_key
# will have one of the following values:
# full_genebuild, projection_build, mixed_strategy_build, maker_genebuild
my $version_expected = 0;
if ($method =~ /build/) {
$version_expected = 1;
foreach my $method (@$methods) {
if ($method =~ /build/) {
$version_expected = 1;
}
}

$self->version_check('gene', $version_expected, $species_id);
Expand Down
2 changes: 1 addition & 1 deletion lib/Bio/EnsEMBL/DataCheck/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@
"package_name" : "Bio::EnsEMBL::DataCheck::Checks::DatabaseCollation"
},
"DatabaseSpeciesName" : {
"datacheck_type" : "advisory",
"datacheck_type" : "critical",
"description" : "The species.production_name meta key matches the DB name",
"groups" : [
"core",
Expand Down

0 comments on commit 008c565

Please sign in to comment.