Skip to content

Commit

Permalink
Added warning for gencode_basic
Browse files Browse the repository at this point in the history
  • Loading branch information
likhitha-surapaneni committed Aug 8, 2024
1 parent 05973d3 commit 822d90c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/Bio/EnsEMBL/VEP/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,11 @@ sub new {
$config->{dir_cache} ||= $config->{cache} if -d "$config->{cache}";
$config->{cache} = 1;
}

# throw a warning for GENCODE basic if assembly is not GRCh38
if (defined($config->{'gencode_basic'}) && $config->{'gencode_basic'} && defined($config->{'assembly'}) && lc($config->{'assembly'}) ne 'grch38') {
printf("WARNING: --gencode_basic option is currently only available for human on the GRCh38 assembly\n");
}

# throw a warning for GENCODE primary if assembly is not GRCh38
if (defined($config->{'gencode_primary'}) && $config->{'gencode_primary'} && defined($config->{'assembly'}) && lc($config->{'assembly'}) ne 'grch38') {
Expand Down

0 comments on commit 822d90c

Please sign in to comment.