Skip to content

Commit 25682c4

Browse files
committed
Changed Similarity to reset cluster range when clustering is disabled to reduce memory usage
1 parent 18232ed commit 25682c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/similarity.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,13 @@ bool Similarity::initialize()
394394
throw e;
395395
}
396396

397+
// reset cluster range if clustering is disabled
398+
if ( _clusMethod == ClusteringMethod::None )
399+
{
400+
_minClusters = 1;
401+
_maxClusters = 1;
402+
}
403+
397404
// initialize cluster matrix
398405
_ccm->initialize(_input->getGeneNames(), _maxClusters, _input->getSampleNames());
399406

0 commit comments

Comments
 (0)