Skip to content

Commit

Permalink
Merge pull request #243 from Ensembl/feature/versioned_genes
Browse files Browse the repository at this point in the history
Use the 'genebuild.method' meta key to test whether gene versions are…
  • Loading branch information
james-monkeyshines committed Jun 10, 2020
2 parents 71b1dbd + bfaa24f commit 97e8a1c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/Bio/EnsEMBL/DataCheck/Checks/VersionedGenes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ sub tests {
my $species_id = $self->dba->species_id;

my $mca = $self->dba->get_adaptor('MetaContainer');
my $division = $mca->get_division;
my $method = $mca->get_single_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 ($division eq 'EnsemblVertebrates') {
if ($method =~ /build/) {
$version_expected = 1;
}

Expand Down

0 comments on commit 97e8a1c

Please sign in to comment.