Skip to content

Commit

Permalink
Remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
dglemos committed Nov 20, 2024
1 parent 4200871 commit cf04640
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ use Digest::MD5 qw(md5_hex);

use Bio::EnsEMBL::Utils::Exception qw(throw warning);

use Data::Dumper;

use base qw(
Bio::EnsEMBL::VEP::AnnotationSource::Database
Bio::EnsEMBL::VEP::AnnotationType::Variation
Expand Down
4 changes: 0 additions & 4 deletions modules/Bio/EnsEMBL/VEP/OutputFactory.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1022,8 +1022,6 @@ sub add_colocated_variant_info {
);

my %clin_sigs;

# print "***vf_existing: ", Dumper($vf->{existing});

foreach my $ex(
sort {
Expand All @@ -1044,8 +1042,6 @@ sub add_colocated_variant_info {
# ID
push @{$hash->{Existing_variation}}, $ex->{variation_name} if $ex->{variation_name};

# print "\nvariation name: ", $ex->{variation_name}, "\n";

# Variation Synonyms
# VEP fetches the variation synonyms from the cache
push @{$hash->{VAR_SYNONYMS}}, $ex->{var_synonyms} if $self->{var_synonyms} && $ex->{var_synonyms} && !$self->{_config}->{_params}->{is_vr};
Expand Down
4 changes: 0 additions & 4 deletions modules/Bio/EnsEMBL/VEP/OutputFactory/JSON.pm
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ use Bio::EnsEMBL::VEP::Utils qw(numberify);
use JSON;
use Scalar::Util qw(looks_like_number);

use Data::Dumper;

my %SKIP_KEYS = (
'Uploaded_variation' => 1,
'Location' => 1,
Expand Down Expand Up @@ -474,8 +472,6 @@ sub add_colocated_variant_info_JSON {

push @{$hash->{colocated_variants}}, $ex;

print "-> ", Dumper($hash->{colocated_variants});

return $hash;
}

Expand Down
27 changes: 7 additions & 20 deletions modules/Bio/EnsEMBL/VEP/Pipeline/DumpVEP/Dumper/Variation.pm
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ use warnings;
use FileHandle;
use File::Path qw(mkpath);

use Data::Dumper;

use Bio::EnsEMBL::VEP::Config;
use Bio::EnsEMBL::VEP::AnnotationSource::Database::Variation;
use Bio::EnsEMBL::VEP::AnnotationSource::Cache::Variation;
Expand Down Expand Up @@ -69,20 +67,19 @@ sub run {
my $region_size = $self->param('region_size');

my $hive_dbc = $self->dbc;
# die "(2) ", Dumper($hive_dbc);
# $hive_dbc->disconnect_if_idle() if defined $hive_dbc;
# die "(3)";
$hive_dbc->disconnect_if_idle() if defined $hive_dbc;

my $as = Bio::EnsEMBL::VEP::AnnotationSource::Database::Variation->new({
config => $config,
cache_region_size => $region_size,
});
# die "(4)";

my $cache = Bio::EnsEMBL::VEP::AnnotationSource::Cache::Variation->new({
config => $config,
cache_region_size => $region_size,
dir => $self->get_cache_dir($vep_params)
});
# die "(5)";

# create prefixed names here to use later
if($vep_params->{freq_vcf} && !$self->{freq_vcf}) {
foreach my $vcf_conf(@{$vep_params->{freq_vcf}}) {
Expand All @@ -95,7 +92,7 @@ sub run {
}
$self->{freq_vcf} = $vep_params->{freq_vcf};
}
# die "(6)";

$self->dump_chrs($as, $cache);

# bgzip and tabix-index all_vars files
Expand Down Expand Up @@ -226,23 +223,14 @@ sub dump_obj {
}

# get freqs from VCFs?
# $self->freqs_from_vcf($obj, $chr) if $self->{freq_vcf};

open(FH, '>>', "/hps/nobackup/flicek/ensembl/variation/dlemos/vep/test_code/clin_sig_clinvar_somatic/dump_cache/log.txt") or die $!;
$self->freqs_from_vcf($obj, $chr) if $self->{freq_vcf};

my $pubmed = $self->pubmed;
my $var_synonyms = $self->var_synonyms;
foreach my $v(@$obj) {

print FH "->", Dumper($v);

my $tmp_clinical_impact = '';
my @tmp_ci;
if($v->{clinical_impact}) {
foreach my $pf (@{$v->{clinical_impact}}) {
push @tmp_ci, $pf->{final_somatic_clin_sig};
}
$tmp_clinical_impact = join(";", @tmp_ci);
$tmp_clinical_impact = $v->{clinical_impact};
}

my @tmp = (
Expand Down Expand Up @@ -276,7 +264,6 @@ sub dump_obj {
print $all_vars_fh "\n";
}
}
close(FH);
close DUMP;
}

Expand Down

0 comments on commit cf04640

Please sign in to comment.