Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving --gencode_primary and --flag_gencode_primary #1734

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions modules/Bio/EnsEMBL/VEP/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ our %INCOMPATIBLE = (
af_gnomade => [qw(af_gnomad)],
quiet => [qw(verbose)],
refseq => [qw(gencode_basic merged)],
gencode_primary => [qw(gencode_basic refseq)],
json => [qw(vcf tab)],
vcf => [qw(json tab)],
tab => [qw(vcf json)],
Expand Down Expand Up @@ -703,7 +704,16 @@ sub new {
$config->{dir_cache} ||= $config->{cache} if -d "$config->{cache}";
$config->{cache} = 1;
}

# throw a warning for GENCODE primary if assembly is not GRCh38
if (defined($config->{'gencode_primary'}) && lc($config->{'gencode_primary'}) && defined($config->{'assembly'}) && lc($config->{'assembly'}) ne 'grch38') {
printf("WARNING: --gencode_primary 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->{'flag_gencode_primary'}) && lc($config->{'flag_gencode_primary'}) && defined($config->{'assembly'}) && lc($config->{'assembly'}) ne 'grch38') {
nakib103 marked this conversation as resolved.
Show resolved Hide resolved
printf("WARNING: --flag_gencode_primary option is currently only available for human on the GRCh38 assembly\n");
}
my $config_command = "";

my @skip_opts = qw(web_output host port stats_file user warning_file input_data);
Expand Down
2 changes: 1 addition & 1 deletion modules/Bio/EnsEMBL/VEP/Constants.pm
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ our %FIELD_DESCRIPTIONS = (
'CHECK_REF' => 'Reports variants where the input reference does not match the expected reference',
'UPLOADED_ALLELE' => 'The variant allele uploaded',
'SHIFT_LENGTH' => 'Reports the number of bases the insertion or deletion has been shifted relative to the underlying transcript due to right alignment before consequence calculation',
'GENCODE_PRIMARY' => 'Reports if transcript is Gencode Primary'
'GENCODE_PRIMARY' => 'Reports if transcript is GENCODE primary'
);

our @DEFAULT_OUTPUT_COLS = qw(
Expand Down