Dna.signaturemap#
missionbio.mosaic.dna.Dna.signaturemap
- Dna.signaturemap(attribute: Union[str, ndarray], kind: str = 'median', nan_value: Optional[float] = None, splitby: Union[str, ndarray] = 'label', features: Optional[Sequence] = None, x_groups: Optional[Sequence] = None, labels: Optional[Sequence] = None) Figure #
Extends
_Assay.heatmap()
Set specific colorscales for DNA.
Flattened heatmap showing the signature profile for each unique label
- Parameters:
- attributeUnion[str, np.ndarray, pd.DataFrame]
The attribute whose signature is to be plotted. This is passed to
signature()
as is.- kindstr - [“median”, “mode”, “std”, “mean”]
The kind of signature to plot. This is passed to
signature()
as is.- nan_valueOptional[float]
The value in the attribute that is converted to NaN. This is passed to
signature()
as is.- splitbystr / np.ndarray, default LABEL
The labels by which the data is split. This is passed to
signature()
as is.- featuresOptional[Sequence]
The subset of the list of ids to show on the plot. If None, the ids are clustered using
clustered_ids()
.- x_groupsOptional[Sequence]
The label for each column. These must be contiguous. For example, [“1”, “2”, “2”] is permitted, but [“1”, “2”, “1”] is not. If None, then all the xaxis labels are plotted.
- labelsOptional[Sequence]
The labels to be plotted. If None, then the labels are clustered using
clustered_barcodes()
.
< Class Dna