Skip to content

Commit 8f13dd9

Browse files
committed
density clusters now available
1 parent 2518b0e commit 8f13dd9

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed
8.27 MB
Binary file not shown.

README.md

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

99
Program: HotSpot3D - 3D mutation proximity analysis program.
10-
Version: V0.6.5
10+
Version: V1.0.0
1111
Author: Beifang Niu, John Wallis, Adam D Scott, & Sohini Sengupta
1212

1313
Usage: hotspot3d <command> [options]

bin/hotspot3d

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use strict;
99
use warnings;
1010

11-
our $VERSION = 'V0.6.5';
11+
our $VERSION = 'V1.0.0';
1212

1313
use Carp;
1414
use FileHandle;
@@ -22,7 +22,6 @@ use TGI::Mutpro::Main::Cluster;
2222
use TGI::Mutpro::Main::Significance;
2323
use TGI::Mutpro::Main::Summary;
2424
use TGI::Mutpro::Main::Visual;
25-
use TGI::Mutpro::Main::Cluster::Density;
2625
use TGI::Mutpro::Preprocess::Drugport;
2726
use TGI::Mutpro::Preprocess::Uppro;
2827
use TGI::Mutpro::Preprocess::Calpro;
@@ -37,7 +36,7 @@ use TGI::Mutpro::Preprocess::AllPreprocess;
3736

3837
my $subCmd = shift;
3938
## Add module option here
40-
my %cmds = map{ ($_, 1) } qw( search post visual cluster sigclus summary drugport uppro calpro calroi statis anno trans homo cosmic prior prep density help );
39+
my %cmds = map{ ($_, 1) } qw( search post visual cluster sigclus summary drugport uppro calpro calroi statis anno trans homo cosmic prior prep help );
4140
unless (defined $subCmd) { die help_text(); };
4241
unless (exists $cmds{$subCmd}) {
4342
warn ' Please give valid sub command ! ', "\n";
@@ -62,7 +61,6 @@ SWITCH:{
6261
$subCmd eq 'cosmic' && do { TGI::Mutpro::Preprocess::Cosmic->new(); last SWITCH; };
6362
$subCmd eq 'prior' && do { TGI::Mutpro::Preprocess::Prior->new(); last SWITCH; };
6463
$subCmd eq 'prep' && do { TGI::Mutpro::Preprocess::AllPreprocess->new(); last SWITCH; };
65-
$subCmd eq 'density' && do { TGI::Mutpro::Main::Cluster::Density->new(); last SWITCH; };
6664
$subCmd eq 'help' && do { die help_text(); last SWITCH; };
6765
}
6866
sub help_text {
@@ -94,7 +92,6 @@ Version: $VERSION
9492
sigclus -- 3) Determine significance of clusters
9593
summary -- 4) Summarize clusters
9694
visual -- 5) Visulization of 3D proximity
97-
density -- 6) Determine mutation-mutation and mutation-drug density-based clusters
9895
9996
help -- this message
10097

dist.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = HotSpot3D
2-
author = Beifang Niu, John Wallis, Adam D Scott, & Sohini Sengupta from McDonnell Genome Institute of Washington University at St. Louis
3-
version = 0.6.5
2+
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.0.0
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ sub process {
8787
if ( not defined $this->{'clustering'} ) {
8888
warn "HotSpot3D::Cluster warning: no clustering option given, setting to default network\n";
8989
}
90+
if ( $this->{'clustering'} eq $DENSITY ) {
91+
TGI::Mutpro::Main::Density->new();
92+
exit;
93+
}
9094
if ( not defined $this->{'p_value_cutoff'} ) {
9195
if ( not defined $this->{'3d_distance_cutoff'} ) {
9296
warn "HotSpot3D::Cluster warning: no pair distance limit given, setting to default p-value cutoff = 0.05\n";
@@ -128,10 +132,6 @@ sub process {
128132
warn "Using default distance-measure = \'average\'\n";
129133
$this->{'distance_measure'} = $AVERAGEDISTANCE;
130134
}
131-
if ( $this->{'clustering'} eq $DENSITY ) {
132-
TGI::Mutpro::Main::Density->new();
133-
exit;
134-
}
135135
if ( $this->{'vertex_type'} ne $UNIQUE ) {
136136
unless( $this->{'maf_file'} ) { warn 'You must provide a .maf file if not using unique vertex type! ', "\n"; die $this->help_text(); }
137137
unless( -e $this->{'maf_file'} ) { warn "The input .maf file )".$this->{'maf_file'}.") does not exist! ", "\n"; die $this->help_text(); }

lib/TGI/Mutpro/Main/Cluster/Density.pm renamed to lib/TGI/Mutpro/Main/Density.pm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package TGI::Mutpro::Main::Cluster::Density;
1+
package TGI::Mutpro::Main::Density;
22

33
use strict;
44
use warnings;
@@ -9,6 +9,8 @@ use Data::Dumper qw(Dumper);
99
use List::Util qw[min max];
1010
use Getopt::Long;
1111

12+
our @ISA = qw( TGI::Mutpro::Main::Cluster );
13+
1214
my $EPSILONDEFAULT = 4;
1315
my $MINPTSDEFAULT = 3;
1416
my $CUTOFFSTARTDEFAULT = 2;
@@ -207,4 +209,4 @@ HELP
207209

208210
}
209211

210-
1;
212+
1;

0 commit comments

Comments
 (0)