|
| 1 | +"""In this file we plot the raw data before fitting from paclitaxel treated HCC1143 cells""" |
| 2 | + |
| 3 | +# from ..Lineage_collections import taxols as Taxol_lin_list |
| 4 | +from string import ascii_lowercase |
| 5 | + |
| 6 | +from ..import_lineage import import_taxol_file |
| 7 | +from ..LineageTree import LineageTree |
| 8 | +from ..plotTree import plotLineage |
| 9 | +from ..states.StateDistributionGaPhs import StateDistribution |
| 10 | +from .common import getSetup |
| 11 | + |
| 12 | +desired_num_states = 2 |
| 13 | +E = [StateDistribution() for _ in range(desired_num_states)] |
| 14 | +untreated_t = import_taxol_file() |
| 15 | +untreated_taxol = [LineageTree(list_cells, E) for list_cells in untreated_t] |
| 16 | +c = 0 |
| 17 | +for lins in untreated_t: |
| 18 | + for _cell in lins: |
| 19 | + c += 1 |
| 20 | +# counts = len(untreated_taxol) |
| 21 | +counts = 100 |
| 22 | +print("number of lineages", len(untreated_taxol), " and the number of total cells: ", c) |
| 23 | + |
| 24 | + |
| 25 | +def makeFigure(): |
| 26 | + """ |
| 27 | + Makes figure S18. |
| 28 | + """ |
| 29 | + titles = ["Untreated", "Taxol 1 nM", "Taxol 2 nM", "Taxol 3 nM", "Taxol 4 nM"] |
| 30 | + ax, f = getSetup((17, 35), (counts, 4)) |
| 31 | + |
| 32 | + for i in range(counts): |
| 33 | + ax[4 * i].axis("off") |
| 34 | + # ax[4 * i + 1].axis('off') |
| 35 | + # ax[4 * i + 2].axis('off') |
| 36 | + # ax[4 * i + 3].axis('off') |
| 37 | + plotLineage(untreated_taxol[i], ax[4 * i], color=False) |
| 38 | + # plotLineage(Taxol_lin_list[1][i], ax[4 * i + 1], color=False) |
| 39 | + # plotLineage(Taxol_lin_list[2][i], ax[4 * i + 2], color=False) |
| 40 | + # plotLineage(Taxol_lin_list[3][i], ax[4 * i + 3], color=False) |
| 41 | + |
| 42 | + for i in range(4): |
| 43 | + ax[i].axis("off") |
| 44 | + ax[i].text(-0.2, 1.55, ascii_lowercase[i], transform=ax[i].transAxes, fontsize=20, fontweight="bold", va="top") |
| 45 | + ax[i].text(0.0, 1.55, titles[i], transform=ax[i].transAxes, fontsize=20, va="top") |
| 46 | + |
| 47 | + return f |
0 commit comments