Skip to content

Commit

Permalink
adding option to skip adding lof_info
Browse files Browse the repository at this point in the history
  • Loading branch information
konradjk committed Feb 12, 2019
1 parent 0c308c5 commit 835e21e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions LoF.pm
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ sub new {
$self->{human_ancestor_fa} = 'human_ancestor.fa.rz' if !defined($self->{human_ancestor_fa});
$self->{check_complete_cds} = 'false' if !defined($self->{check_complete_cds});
$self->{use_gerp_end_trunc} = 0 if !defined($self->{check_complete_cds});
$self->{skip_lof_info} = 'false' if !defined($self->{skip_lof_info});

# general splice prediction parameters
$self->{loftee_path} = '/vep/loftee/' if !defined($self->{loftee_path});
Expand Down Expand Up @@ -238,7 +239,7 @@ sub run {
} else {
if ($self->{apply_all} eq 'false') {
my $output_hash = {};
if (scalar @info > 0) {
if (scalar @info > 0 && !$self->{skip_lof_info}) {
$output_hash->{'LoF_info'} = join(',', @info)
}
return $output_hash;
Expand Down Expand Up @@ -329,7 +330,7 @@ sub run {
if (scalar @flags > 0) {
$output_hash->{'LoF_flags'} = join(',', @flags);
}
if (scalar @info > 0) {
if (scalar @info > 0 && !$self->{skip_lof_info}) {
$output_hash->{'LoF_info'} = join(',', @info);
}

Expand Down

0 comments on commit 835e21e

Please sign in to comment.