Skip to content

Commit 050a624

Browse files
committed
fixing bugs in protein site specific density-based clustering
1 parent 65b170d commit 050a624

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

lib/TGI/Mutpro/Main/Cluster.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ sub launchClustering {
319319
die $this->density_help_text();
320320
} else{
321321
TGI::Mutpro::Main::Density->new($this);
322+
exit;
322323
}
323324
}
324325
return;

lib/TGI/Mutpro/Main/Density.pm

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,16 @@ sub new {
4343
sub process {
4444
my $this = shift;
4545

46+
my $temp_distance_matrix = {};
47+
my $temp_mutations = {};
4648
my $distance_matrix = {};
4749
my $mutations = {};
50+
my $WEIGHT = "weight";
4851

49-
$this->readMAF( $mutations );
50-
$this->getDrugMutationPairs( $distance_matrix );
51-
$this->getMutationMutationPairs( $distance_matrix );
52+
$this->readMAF( $temp_mutations );
53+
$this->getDrugMutationPairs( $temp_distance_matrix );
54+
$this->getMutationMutationPairs( $temp_distance_matrix );
55+
$this->vertexFilter( $temp_mutations , $temp_distance_matrix , $mutations , $distance_matrix );
5256
#$this->initializeSameSiteDistancesToZero( $distance_matrix );
5357
#$this->networkClustering( $mutations , $distance_matrix );
5458
$this->setSameSiteDistancesToZero( $distance_matrix, $mutations );
@@ -84,6 +88,11 @@ sub process {
8488

8589
my $pairwiseFN = "$this->{'distance_measure'}.$this->{pairwise_file_name_only}";
8690

91+
# print "distance matrix\n";
92+
# print Dumper $distance_matrix;
93+
# print "mutations\n";
94+
# print Dumper $mutations;
95+
8796
foreach my $structure ( keys %{$distance_matrix} ) { # run the density calculation for each available structure
8897
#print "Structure= $structure\n";
8998
# name output files as *.$pdbID.structure.*

0 commit comments

Comments
 (0)