Skip to content

Commit

Permalink
Revert "Use getId() directly instead of a transformer"
Browse files Browse the repository at this point in the history
This reverts commit f557095.
  • Loading branch information
arteymix committed Jun 7, 2024
1 parent f557095 commit 1962417
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import cern.colt.matrix.DoubleMatrix1D;
import cern.colt.matrix.impl.DenseDoubleMatrix1D;
import lombok.extern.apachecommons.CommonsLog;
import org.apache.commons.collections4.Transformer;
import org.apache.commons.collections4.TransformerUtils;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.time.StopWatch;
Expand Down Expand Up @@ -692,6 +694,7 @@ private DifferentialExpressionAnalysis doAnalysis( BioAssaySet bioAssaySet,
/*
* Create result objects for each model fit. Keeping things in order is important.
*/
final Transformer<CompositeSequence, Long> rowNameExtractor = TransformerUtils.invokerTransformer( "getId" );
boolean warned = false;
// int notUsable = 0;
int processed = 0;
Expand All @@ -701,7 +704,7 @@ private DifferentialExpressionAnalysis doAnalysis( BioAssaySet bioAssaySet,
LinearModelAnalyzerImpl.log.info( "Processed results for " + processed + " elements ..." );
}

LinearModelSummary lm = rawResults.get( el.getId().toString() );
LinearModelSummary lm = rawResults.get( rowNameExtractor.transform( el ).toString() );

if ( LinearModelAnalyzerImpl.log.isDebugEnabled() )
LinearModelAnalyzerImpl.log.debug( el.getName() + "\n" + lm );
Expand Down

0 comments on commit 1962417

Please sign in to comment.