ddata["xroot"] = ddata["X"][ddata["iroot"]]
// annotate rows of X with Moignard et al. (2015) experimental cell groups
groups_names = ["HF", "NP", "PS", "4SG", "4SFG"]
groups = [] // a list with n entries (one for each sample)
for name in cellnames:
for groupname in groups_names:
if name.startswith(groupname):
groups.append(groupname)
// groups are categorical annotation for rows of X
ddata["rowcat"] = {"groups": groups}
// add additional metadata for the groups, we want them to be ordered
// and we want custom colors for each group
ddata["groups_names"] = groups_names
ddata["groups_colors"] = ["//D7A83E", "/ǝAAE5D", "/릉ABC", "//AF353A", "/"]