mmc.Subset
- class mmochi.hierarchy.Subset(values, color='#FFFFFF')
A Hierarchy building block, describing a population of cells beneath a classification layer. These can be added to a Hierarchy using the .add_subset() method
- Parameters:
values (
Union[List[str],List[List[str]],dict]) – list of str (e.g. [‘pos’,’any’,’neg’]) or list of list of strings (e.g. [[‘pos’,’any’,’neg’],[‘any’,’pos’,’neg’]]) The values used to define subsets. Lists of str should be the same length (and order) as the markers of the parent classification node. Lists of lists are joined as logical or’s. This can also be provided as a dict, which is sent to hc_defs(), allowing for more complex definitions. See hc_defs for more details.color (
str(default:'#FFFFFF')) – Hex code (including the #) that defines the color associated with the subset when displaying the hierarchy or making color dictionaries
Methods