scFates.pl.graph

scFates.pl.graph(adata, basis=None, size_nodes=None, alpha_nodes=1, linewidth=2, alpha_seg=1, color_cells=None, tips=True, forks=True, nodes=[], ax=None, show=None, save=None, **kwargs)

Project principal graph onto embedding.

Parameters
adata : AnnData

Annotated data matrix.

basis : str | NoneOptional[str] (default: None)

Name of the obsm basis to use.

size_nodes : float | NoneOptional[float] (default: None)

Size of the projected prinicpal points.

alpha_nodes : float (default: 1)

Alpha of nodes.

linewidth : float (default: 2)

Line width of the segments.

alpha_seg : float (default: 1)

Alpha of segments.

color_cells : str | NoneOptional[str] (default: None)

cells color

tips : bool (default: True)

display tip ids.

forks : bool (default: True)

display fork ids.

nodes : List | NoneOptional[List] (default: [])

display any node id.

ax

Add plot to existing ax

show : bool | NoneOptional[bool] (default: None)

show the plot.

save : str | bool | NoneUnion[str, bool, None] (default: None)

save the plot.

kwargs

arguments to pass to scanpy.pl.embedding()

Returns

Return type

If show==False a Axes