Skip to content

Commit 4bbb532

Browse files
committed
fixing bugs in process method in cluster module
1 parent 050a624 commit 4bbb532

File tree

5 files changed

+27
-38
lines changed

5 files changed

+27
-38
lines changed
8.38 MB
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Usage
1010

1111
Stable: v0.6.0
1212

13-
Beta: up to v1.2.1
13+
Beta: up to v1.2.2
1414
1515
Author: Beifang Niu, John Wallis, Adam D Scott, Sohini Sengupta, & Amila Weerasinghe
1616

bin/hotspot3d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use strict;
99
use warnings;
1010

11-
our $VERSION = 'V1.2.1';
11+
our $VERSION = 'V1.2.2';
1212

1313
use Carp;
1414
use FileHandle;

dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = HotSpot3D
22
author = Beifang Niu, John Wallis, Adam D Scott, Sohini Sengupta , & Amila Weerasinghe from McDonnell Genome Institute of Washington University at St. Louis
3-
version = 1.2.1
3+
version = 1.2.2
44
license = Perl_5
55
copyright_holder = McDonnell Genome Institute at Washington University
66
copyright_year = 2013

lib/TGI/Mutpro/Main/Cluster.pm

Lines changed: 24 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -102,31 +102,20 @@ sub new {
102102
sub process {
103103
my $this = shift;
104104
$this->setOptions();
105-
my $temp_distance_matrix = {};
106-
my $temp_mutations = {};
107-
my $distance_matrix = {};
108-
my $mutations = {};
109-
my $WEIGHT = "weight";
110-
111-
$this->readMAF( $temp_mutations );
112-
# foreach my $mk ( sort keys %{$mutations} ) {
113-
# foreach my $ra ( sort keys %{$mutations->{$mk}} ) {
114-
# foreach my $pk ( sort keys %{$mutations->{$mk}->{$ra}} ) {
115-
# print join( " -- " , ( $mk , $ra , $pk , $mutations->{$mk}->{$ra}->{$pk} ) )."\n";
116-
# }
117-
# }
118-
# }
119-
$this->getDrugMutationPairs( $temp_distance_matrix );
120-
$this->getMutationMutationPairs( $temp_distance_matrix );
121-
$this->vertexFilter( $temp_mutations , $temp_distance_matrix , $mutations , $distance_matrix );
122-
#%{$mutations} = %{$temp_mutations};
123-
#%{$distance_matrix} = %{$temp_distance_matrix};
124-
#$this->printMutations( $temp_mutations , "tempmu" );
125-
#$this->printMutations( $mutations , "realmu" );
126-
#$this->printDistanceMatrix( $temp_distance_matrix , "tempdm" );
127-
#$this->printDistanceMatrix( $distance_matrix , "realdm" );
128-
#$this->initializeSameSiteDistancesToZero( $distance_matrix );
129-
$this->networkClustering( $mutations , $distance_matrix );
105+
$this->launchClustering();
106+
107+
##TODO bring the following commented out region back, and find a way to carry $distance_matrix and $mutations to clustering modules
108+
# my $temp_distance_matrix = {};
109+
# my $temp_mutations = {};
110+
# my $distance_matrix = {};
111+
# my $mutations = {};
112+
# my $WEIGHT = "weight";
113+
114+
# $this->readMAF( $temp_mutations );
115+
# $this->getDrugMutationPairs( $temp_distance_matrix );
116+
# $this->getMutationMutationPairs( $temp_distance_matrix );
117+
# $this->vertexFilter( $temp_mutations , $temp_distance_matrix , $mutations , $distance_matrix );
118+
# $this->networkClustering( $mutations , $distance_matrix );
130119

131120
return 1;
132121
}
@@ -302,25 +291,25 @@ sub setOptions {
302291
}
303292
print STDOUT "====================\n";
304293

305-
$this->launchClustering( $help );
306294
return;
307295
}
308296

309297
sub launchClustering {
310-
my ( $this , $help ) = @_;
298+
my $this = shift; # removed my ( $this, $help ) = @_;
311299
if ( $this->{'clustering'} eq $NETWORK ) {
312-
if ( $help ) {
313-
die $this->help_text();
314-
} else {
300+
# if ( $help ) {
301+
# die $this->help_text();
302+
# } else {
315303
TGI::Mutpro::Main::Network->new( $this );
316-
}
304+
exit;
305+
# }
317306
} elsif ( $this->{'clustering'} eq $DENSITY ) {
318-
if ( $help ) {
319-
die $this->density_help_text();
320-
} else{
307+
# if ( $help ) {
308+
# die $this->density_help_text();
309+
# } else{
321310
TGI::Mutpro::Main::Density->new($this);
322311
exit;
323-
}
312+
# }
324313
}
325314
return;
326315
}

0 commit comments

Comments
 (0)