Skip to content

Commit

Permalink
Fix column annotations in metadata when staging datasets (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche authored May 29, 2024
1 parent 7869839 commit 44675a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scrnaseq/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,15 @@ def format_object_metadata(x) -> dict:
"rows": x.shape[0],
"columns": x.shape[1],
"assays": list(x.get_assay_names()),
"column_annotations": list(x.get_column_names()),
"column_annotations": list(x.get_column_data().get_column_names()),
}

if isinstance(x, SingleCellExperiment):
_meta["single_cell_experiment"] = {
"reduced_dimensions": list(x.get_reduced_dim_names()),
"alternative_experiments": list(x.get_alternative_experiment_names()),
}

elif isinstance(x, BiocFrame):
_meta["data_frame"] = {
"rows": len(x),
Expand Down

0 comments on commit 44675a9

Please sign in to comment.