File tree Expand file tree Collapse file tree
src/convert/from_h5ad_to_h5mu Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060
6161* ` dataflow/split_h5mu ` : pin scipy version to 1.16.3 to avoid regression that corrupts large sparse matrix indexing (PR #1153 ).
6262
63+ * ` convert/from_h5ad_h5mu ` : store and reset var index names to avoid issues with a change in mudata (PR #1184 ).
64+
6365* ` feature_annotation/highly_variable_features_scanpy ` : always store details of highly variable features, regardless of the features used (PR #1186 )
6466
6567# openpipelines 4.0.4
Original file line number Diff line number Diff line change 2929}
3030
3131logger .info ("Converting to mudata" )
32+ var_index_names = {key : adata .var .index .name for key , adata in data .items ()}
3233mudata = mu .MuData (data )
3334
3435try :
3536 mudata .var_names_make_unique ()
3637except (TypeError , ValueError ):
3738 pass
3839
40+ # Set var index names to avoid https://github.com/scverse/mudata/issues/146
41+ for key , name in var_index_names .items ():
42+ mudata .mod [key ].var .index .name = name
43+
3944logger .info ("Writing to %s." , par ["output" ])
4045mudata .write_h5mu (par ["output" ], compression = par ["output_compression" ])
4146
You can’t perform that action at this time.
0 commit comments