mantispy.pl.cell_cycle#
- mantispy.pl.cell_cycle(adata, dna_feature, by='Metadata_Plate', key='Metadata_CellCyclePhase', layer=None)#
Log DNA intensity per group, colored by assigned phase.
Two separated peaks with the phases split between them indicate a working assignment; a single broad distribution indicates a failed one.
- Parameters:
adata (
AnnData) – Single-cell objectcell_cycle_phase()has run on.dna_feature (
str) – The DNA intensity feature the phases were assigned from.by (
str|None(default:'Metadata_Plate')) –obscolumn whose groups become panels, orNonefor a single panel over every row.key (
str(default:'Metadata_CellCyclePhase')) –obscolumn holding the assigned phase, whose values are matched againstPHASE_COLOURS, so a phase named anything else is not drawn.layer (
str|None(default:None)) – Layer to read the intensity from, orNoneforX. Only positive values are drawn, since the plot takes their logarithm.
- Return type:
- Returns:
A
(1, n_groups)array of axes sharing an x axis, one panel per group ofby, each holding one filled histogram per phase.- Raises:
KeyError –
obshas nokeycolumn, ordna_featureis not one ofvar_names.ValueError – The object has no layer named
layer.