Skip to content

Commit 126cae7

Browse files
committed
Remove prints
1 parent f51505b commit 126cae7

File tree

4 files changed

+7
-30
lines changed

4 files changed

+7
-30
lines changed

modules/Bio/EnsEMBL/VEP/AnnotationSource/Database/Variation.pm

-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ use Digest::MD5 qw(md5_hex);
6262

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

65-
use Data::Dumper;
66-
6765
use base qw(
6866
Bio::EnsEMBL::VEP::AnnotationSource::Database
6967
Bio::EnsEMBL::VEP::AnnotationType::Variation

modules/Bio/EnsEMBL/VEP/OutputFactory.pm

-4
Original file line numberDiff line numberDiff line change
@@ -1022,8 +1022,6 @@ sub add_colocated_variant_info {
10221022
);
10231023

10241024
my %clin_sigs;
1025-
1026-
# print "***vf_existing: ", Dumper($vf->{existing});
10271025

10281026
foreach my $ex(
10291027
sort {
@@ -1044,8 +1042,6 @@ sub add_colocated_variant_info {
10441042
# ID
10451043
push @{$hash->{Existing_variation}}, $ex->{variation_name} if $ex->{variation_name};
10461044

1047-
# print "\nvariation name: ", $ex->{variation_name}, "\n";
1048-
10491045
# Variation Synonyms
10501046
# VEP fetches the variation synonyms from the cache
10511047
push @{$hash->{VAR_SYNONYMS}}, $ex->{var_synonyms} if $self->{var_synonyms} && $ex->{var_synonyms} && !$self->{_config}->{_params}->{is_vr};

modules/Bio/EnsEMBL/VEP/OutputFactory/JSON.pm

-4
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ use Bio::EnsEMBL::VEP::Utils qw(numberify);
9090
use JSON;
9191
use Scalar::Util qw(looks_like_number);
9292

93-
use Data::Dumper;
94-
9593
my %SKIP_KEYS = (
9694
'Uploaded_variation' => 1,
9795
'Location' => 1,
@@ -474,8 +472,6 @@ sub add_colocated_variant_info_JSON {
474472

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

477-
print "-> ", Dumper($hash->{colocated_variants});
478-
479475
return $hash;
480476
}
481477

modules/Bio/EnsEMBL/VEP/Pipeline/DumpVEP/Dumper/Variation.pm

+7-20
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ use warnings;
3535
use FileHandle;
3636
use File::Path qw(mkpath);
3737

38-
use Data::Dumper;
39-
4038
use Bio::EnsEMBL::VEP::Config;
4139
use Bio::EnsEMBL::VEP::AnnotationSource::Database::Variation;
4240
use Bio::EnsEMBL::VEP::AnnotationSource::Cache::Variation;
@@ -69,20 +67,19 @@ sub run {
6967
my $region_size = $self->param('region_size');
7068

7169
my $hive_dbc = $self->dbc;
72-
# die "(2) ", Dumper($hive_dbc);
73-
# $hive_dbc->disconnect_if_idle() if defined $hive_dbc;
74-
# die "(3)";
70+
$hive_dbc->disconnect_if_idle() if defined $hive_dbc;
71+
7572
my $as = Bio::EnsEMBL::VEP::AnnotationSource::Database::Variation->new({
7673
config => $config,
7774
cache_region_size => $region_size,
7875
});
79-
# die "(4)";
76+
8077
my $cache = Bio::EnsEMBL::VEP::AnnotationSource::Cache::Variation->new({
8178
config => $config,
8279
cache_region_size => $region_size,
8380
dir => $self->get_cache_dir($vep_params)
8481
});
85-
# die "(5)";
82+
8683
# create prefixed names here to use later
8784
if($vep_params->{freq_vcf} && !$self->{freq_vcf}) {
8885
foreach my $vcf_conf(@{$vep_params->{freq_vcf}}) {
@@ -95,7 +92,7 @@ sub run {
9592
}
9693
$self->{freq_vcf} = $vep_params->{freq_vcf};
9794
}
98-
# die "(6)";
95+
9996
$self->dump_chrs($as, $cache);
10097

10198
# bgzip and tabix-index all_vars files
@@ -226,23 +223,14 @@ sub dump_obj {
226223
}
227224

228225
# get freqs from VCFs?
229-
# $self->freqs_from_vcf($obj, $chr) if $self->{freq_vcf};
230-
231-
open(FH, '>>', "/hps/nobackup/flicek/ensembl/variation/dlemos/vep/test_code/clin_sig_clinvar_somatic/dump_cache/log.txt") or die $!;
226+
$self->freqs_from_vcf($obj, $chr) if $self->{freq_vcf};
232227

233228
my $pubmed = $self->pubmed;
234229
my $var_synonyms = $self->var_synonyms;
235230
foreach my $v(@$obj) {
236-
237-
print FH "->", Dumper($v);
238-
239231
my $tmp_clinical_impact = '';
240-
my @tmp_ci;
241232
if($v->{clinical_impact}) {
242-
foreach my $pf (@{$v->{clinical_impact}}) {
243-
push @tmp_ci, $pf->{final_somatic_clin_sig};
244-
}
245-
$tmp_clinical_impact = join(";", @tmp_ci);
233+
$tmp_clinical_impact = $v->{clinical_impact};
246234
}
247235

248236
my @tmp = (
@@ -276,7 +264,6 @@ sub dump_obj {
276264
print $all_vars_fh "\n";
277265
}
278266
}
279-
close(FH);
280267
close DUMP;
281268
}
282269

0 commit comments

Comments
 (0)