Skip to content

Commit

Permalink
cleaned centroid determination to work for both recurrence and weight…
Browse files Browse the repository at this point in the history
… clustering
  • Loading branch information
AdamDS committed Sep 30, 2017
1 parent 4d70ea1 commit 9cd9688
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
Binary file added HotSpot3D-1.8.0.2.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions bin/hotspot3d
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#----------------------------------
# $Authors: Beifang Niu & Adam D Scott
# $Date: 2013-08-08 13:22:08 -0500 (Thu Aug 8 13:22:08 CDT 2013) $
# $Revision: 1.8.0.1 $
# $Revision: 1.8.0.2 $
# $URL: $
#----------------------------------
use strict;
use warnings;

our $VERSION = 'V1.8.0.1';
our $VERSION = 'V1.8.0.2';

use Carp;
use FileHandle;
Expand Down
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = HotSpot3D
author = Beifang Niu, John Wallis, Adam D Scott, Sohini Sengupta, Amila Weerasinghe, & Matthew H Bailey from McDonnell Genome Institute of Washington University at St. Louis
version = 1.8.0.1
version = 1.8.0.2
license = Perl_5
copyright_holder = McDonnell Genome Institute at Washington University
copyright_year = 2017
Expand Down
10 changes: 2 additions & 8 deletions lib/TGI/Mutpro/Main/Network.pm
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,8 @@ sub determineCentroid {
if ( not $currentScore ) {
return ( $mutationKey , $newScore );
}
if ( $this->{'vertex_score'} eq $EXPONENTIALS ) {
if ( abs( $newScore ) > abs( $currentScore ) ) {
return ( $mutationKey , $newScore );
}
} else {
if ( $newScore > $currentScore ) {
return ( $mutationKey , $newScore );
}
if ( abs( $newScore ) > abs( $currentScore ) ) {
return ( $mutationKey , $newScore );
}
return ( $currentCentroid , $currentScore );
}
Expand Down

0 comments on commit 9cd9688

Please sign in to comment.