Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,10 @@ def add_multidata_and_means_to_counts(counts: pd.DataFrame, genes: pd.DataFrame,

counts_relations = counts[['id_multidata', 'ensembl', 'gene_name', 'hgnc_symbol']].copy()

counts.set_index('id_multidata', inplace=True, drop=True)
# Manually set index to avoid issues with large DataFrames and set_index
counts.index = counts['id_multidata']
counts.index.name = 'id_multidata'

counts = counts[cells_names]
if np.any(counts.dtypes.values != np.dtype('float32')):
counts = counts.astype(np.float32)
Expand Down