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

Fix inconsistencies between --hgvs and --hgvsg #1750

Merged
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions modules/Bio/EnsEMBL/VEP/Runner.pm
Original file line number Diff line number Diff line change
Expand Up @@ -731,11 +731,11 @@ sub post_setup_checks {
$self->status_msg("INFO: Disabling --hgvs; using --offline and no FASTA file found\n");
$self->param($_, 0) for qw(hgvs hgvsc hgvsp);
}

# offline needs cache, can't use HGVS
if($self->param('offline')) {
unless($self->fasta_db) {
throw("ERROR: Cannot generate HGVS coordinates (--hgvs) in offline mode without a FASTA file (see --fasta)\n") if $self->param('hgvs') || $self->param('hgvsc') || $self->param('hgvsp');
throw("ERROR: Cannot generate HGVS coordinates (--hgvs and --hgvsg) in offline mode without a FASTA file (see --fasta)\n") if $self->param('hgvs') || $self->param('hgvsc') || $self->param('hgvsp') || $self->param('hgvsg');
throw("ERROR: Cannot check reference sequences (--check_ref) without a FASTA file (see --fasta)\n") if $self->param('check_ref');
throw("ERROR: Cannot look up reference sequences (--lookup_ref) without a FASTA file (see --fasta)\n") if $self->param('lookup_ref');
throw("ERROR: Cannot use transcript reference sequences (--use_transcript_ref) without a FASTA file (see --fasta); you may wish to use --use_given_ref\n") if $self->param('use_transcript_ref');
Expand All @@ -755,7 +755,7 @@ sub post_setup_checks {

# and these depend on either DB or FASTA DB
unless($self->fasta_db) {
foreach my $param(grep {$self->param($_)} qw(hgvs hgvsc hgvsp lookup_ref check_ref use_transcript_ref)) {
foreach my $param(grep {$self->param($_)} qw(hgvs hgvsg lookup_ref check_ref use_transcript_ref)) {
$self->status_msg("INFO: Database will be accessed when using --$param");
}
}
Expand Down