Skip to content

Commit

Permalink
Changed Similarity to reset cluster range when clustering is disabled…
Browse files Browse the repository at this point in the history
… to reduce memory usage
  • Loading branch information
bentsherman committed May 23, 2018
1 parent 18232ed commit 25682c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/similarity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,13 @@ bool Similarity::initialize()
throw e;
}

// reset cluster range if clustering is disabled
if ( _clusMethod == ClusteringMethod::None )
{
_minClusters = 1;
_maxClusters = 1;
}

// initialize cluster matrix
_ccm->initialize(_input->getGeneNames(), _maxClusters, _input->getSampleNames());

Expand Down

0 comments on commit 25682c4

Please sign in to comment.