get_object_img
- MPPData.get_object_img(obj_id, data='mpp', channel_ids=None, annotation_kwargs=None, **kwargs)[source]
Calculate data image of given object id.
- Parameters
obj_id (
str) – Object that should be visualised.data (
str) – Key inMPPData.data()that should be plotted on the image.channel_ids (
Optional[Iterable[int]]) – Only if key == ‘mpp’. Channels that the image should have. If None, all channels are returned.annotation_kwargs (
Optional[Mapping[str,Any]]) – Arguments forcampa.pl.annotate_img()(annotation,to_col,color). Use this to plot clusterings on cells with custom colormaps.img_size – Size of returned image. If None, images have minimal required size to fit all information. If None, offset information is returned by this function.
pad – Amount of padding added to returned image (only used when
img_sizeis None).
- Return type
- Returns