Skip to content

Commit

Permalink
Merge pull request #491 from olaaustine/add_EVA_VarClasss
Browse files Browse the repository at this point in the history
Changes to support EVA datachecks
  • Loading branch information
marcoooo committed Aug 22, 2022
2 parents 9f50434 + 15496c2 commit 03bc7cf
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/Bio/EnsEMBL/DataCheck/Checks/VariationClasses.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ use strict;
use Moose;
use Test::More;
use Bio::EnsEMBL::DataCheck::Test::DataCheck;
use Bio::EnsEMBL::DataCheck::Utils qw/sql_count/;

extends 'Bio::EnsEMBL::DataCheck::DbCheck';

Expand Down Expand Up @@ -53,8 +54,17 @@ sub tests {
/;
cmp_rows($self->dba, $sql_hgmd, '>', 1, 'Number of variation classes is correct for source HGMD');
}

my $eva_sql = qq(
SELECT COUNT(source_id)
FROM source
WHERE source.name='EVA';
);
my $count = sql_count($self->dba, $eva_sql);
if(!$count) {
$self->checkClassAttrib('dbSNP', 'Number of variation classes is correct for source dbSNP');
} else {
$self->checkClassAttrib('EVA', 'Number of variation classes is correct for source EVA');
}

}

Expand Down

0 comments on commit 03bc7cf

Please sign in to comment.