Skip to content

Commit

Permalink
📝 args
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyosun committed Dec 9, 2022
1 parent ecd2ea9 commit 805cc82
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions lamindb/_dobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,22 @@ def __new__(
cls,
data: Union[Path, str, pd.DataFrame, ad.AnnData] = None,
*,
name: Optional[str] = None,
features_ref: Optional[Union[CellMarker, Gene, Protein]] = None,
source: Optional[Run] = None,
format: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
format: Optional[str] = None,
):
"""Create a DObject record from data."""
"""Create a DObject record from data.
Args:
data: Filepath or in-memory data.
name: Name of the data object, required if an in-memory object is passed.
features_ref: Reference against which to link features.
source: The data transform that links to the data source of the data object.
id: The id of the dobject.
format: Whether to use `h5ad` or `zarr` to store an `AnnData` object.
"""
...

@overload
Expand Down

0 comments on commit 805cc82

Please sign in to comment.