mmc.Hierarchy.add_classification()
- Hierarchy.add_classification(name, parent_subset, markers, is_cutoff=None, **kwargs)
Add a Classification beneath a Subset. Checks if it is correctly positioned in the tree before adding.
- Parameters:
name (
str) – Name of the Classification node. Names must be unique and should not contain an asterisk.parent_subset (
str) – Name of the Subset that should parent this new node, use ‘All’ for the root node.markers (
Union[str,List[str]]) – The features that will be used for high-confidence thresholding to define subsets beneath this classification. During thresholding, matching or similar feature names are looked up first in the provided data_key(s), then in the .var. See mmc.utils.marker for details on marker lookup.is_cutoff (
Optional[bool] (default:None)) – Whether to be a cutoff or a classifier. If None, uses the default.**kwargs – arguments to pass to Classification class constructor