mantispy.pl.cell_cycle#
- mantispy.pl.cell_cycle(adata, dna_feature, by='Metadata_Plate', key='cell_cycle_phase', layer=None, ncols=None)[source]#
DNA per group colored by phase.
One panel per group of
byshows the DNA distribution colored by 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 object
project_cell_cycle()has run on.- dna_feature
str The DNA intensity feature the phases were assigned from, drawn on a log scale, or an
obscolumn such as thedna_content()output, drawn as it is.- by
str|None(default:'Metadata_Plate') obscolumn whose groups become panels, orNonefor a single panel over every row.- key
str(default:'cell_cycle_phase') obscolumn holding the assigned phase, whose values are matched againstPHASE_COLOURS, so a phase named anything else is not drawn. The default is the phaseproject_cell_cycle()writes.- layer
str|None(default:None) Layer to read the intensity from, or
NoneforX. Only positive values are drawn, since the plot takes their logarithm.- ncols
int|None(default:None) Panels per row, or
Nonefor one row.
- adata
- Return type:
- Returns:
None; this plot always creates its own figure, a grid of panels sharing an x axis, one per group ofby, each holding one filled histogram per phase.- Raises:
KeyError –
obshas nokeycolumn, ordna_featureis neither a feature nor anobscolumn.ValueError –
dna_featurenames both a feature and anobscolumn, or the object has no layer namedlayer.