Skip to content

Commit d51e06b

Browse files
committed
Better Cluster names.
1 parent 0c115ca commit d51e06b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

NetExplorer/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ def plot(self):
17481748
trace = self.traces[trace_name]
17491749
trace_data = dict()
17501750
if str(trace_name).isdigit():
1751-
trace_data['name'] = 'c' + str(trace.name)
1751+
trace_data['name'] = 'Cluster ' + str(trace.name)
17521752
else:
17531753
trace_data['name'] = str(trace.name)
17541754
trace_data['x'] = trace.x

NetExplorer/views/plot_tsne.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ def do_tsne(experiment, dataset, conditions, gene_symbol, ctype, with_color):
88
for condition in conditions:
99
trace_name = condition.name
1010
if condition.defines_cell_type is True and condition.cell_type != "Unknown":
11-
trace_name = condition.cell_type + " (c" + str(condition.name) + ")"
11+
trace_name = condition.cell_type + " (Cluster " + str(condition.name) + ")"
1212
theplot.add_trace(trace_name)
1313
samples = Sample.objects.filter(experiment=experiment, samplecondition__condition=condition)
1414
cell_positions = CellPlotPosition.objects.filter(
1515
experiment=experiment, dataset=dataset,
1616
sample__in=samples
1717
)
18-
18+
1919
cell_order = list()
2020
for cell in cell_positions:
2121
theplot.add_x(trace_name, float(cell.x_position))

0 commit comments

Comments
 (0)