Skip to content

Commit

Permalink
update docstr
Browse files Browse the repository at this point in the history
  • Loading branch information
Sichao25 committed Jun 26, 2023
1 parent ec46438 commit 3102929
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dynamo/tools/velocyto_scvelo.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,14 @@ def colormap_fun(x: np.ndarray) -> np.ndarray:
def scv_dyn_convertor(adata: anndata, mode: Literal["to_dyn", "tp_scv"] = "to_dyn"):
"""Convert the adata object used in Scvelo to the adata object used by Dynamo, or vice versa.
Conversion may need manual adjustments based on the use case. For example, all Dynamo anndata objects will be set
to the conventional experiment with the deterministic model. The `pp` information needs modification to enable other
methods.
Args:
adata: the adata object to be converted.
mode: the string indicates the mode
mode: the string indicates the mode. Mode `to_dyn` will convert Scvelo anndata object to Dynamo anndata object.
mode `to_scv` will convert Dynamo anndata to Scvelo anndata.
Returns:
The adata object after conversion.
Expand Down

0 comments on commit 3102929

Please sign in to comment.