Skip to content

Commit e6fb9d9

Browse files
committed
Improve add comma/percent formatting
1 parent 8c7dea6 commit e6fb9d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

singlecell/src/org/labkey/singlecell/analysis/AbstractSingleCellHandler.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,11 +1152,11 @@ else if ("NotUsed".equals(val))
11521152

11531153
if (totalTNK > 0)
11541154
{
1155-
descriptions.add("Total T/NK Cells: " + totalTNK);
1156-
descriptions.add("Fraction T/NK Cells with TRA: " + (cellsWithTRA / (double)totalTNK));
1157-
descriptions.add("Fraction T/NK Cells with TRB: " + (cellsWithTRB / (double)totalTNK));
1158-
descriptions.add("Fraction T/NK Cells with TRD: " + (cellsWithTRD / (double)totalTNK));
1159-
descriptions.add("Fraction T/NK Cells with TRG: " + (cellsWithTRG / (double)totalTNK));
1155+
descriptions.add("Total T/NK Cells: " + decimal.format(totalTNK));
1156+
descriptions.add("% T/NK Cells with TRA: " + pf.format(cellsWithTRA / (double)totalTNK));
1157+
descriptions.add("% T/NK Cells with TRB: " + pf.format(cellsWithTRB / (double)totalTNK));
1158+
descriptions.add("% T/NK Cells with TRD: " + pf.format(cellsWithTRD / (double)totalTNK));
1159+
descriptions.add("% T/NK Cells with TRG: " + pf.format(cellsWithTRG / (double)totalTNK));
11601160
}
11611161
else if (riraIdx == -1 || traIdx == -1)
11621162
{

0 commit comments

Comments
 (0)