#In scib.metrics.metrics, 'use_rep' parameter in the calling of clisi_graph function and ilisi_graph function is not set and therefore default 'X_emb', which results in an inconsistency bug if 'embed' is set to something else.
Adding 'use_rep=embed' solves this problem:
if clisi_:
print("cLISI score...")
clisi = clisi_graph(
adata_int,
batch_key=batch_key,
label_key=label_key,
type_=type_,
subsample=subsample * 100,
use_rep=embed,
scale=True,
n_cores=n_cores,
verbose=verbose,
)
else:
clisi = np.nan
if ilisi_:
print("iLISI score...")
ilisi = ilisi_graph(
adata_int,
batch_key=batch_key,
type_=type_,
subsample=subsample * 100,
use_rep=embed,
scale=True,
n_cores=n_cores,
verbose=verbose,
)
else:
ilisi = np.nan
#In scib.metrics.metrics, 'use_rep' parameter in the calling of clisi_graph function and ilisi_graph function is not set and therefore default 'X_emb', which results in an inconsistency bug if 'embed' is set to something else.
Adding 'use_rep=embed' solves this problem:
if clisi_:
print("cLISI score...")
clisi = clisi_graph(
adata_int,
batch_key=batch_key,
label_key=label_key,
type_=type_,
subsample=subsample * 100,
use_rep=embed,
scale=True,
n_cores=n_cores,
verbose=verbose,
)
else:
clisi = np.nan
if ilisi_:
print("iLISI score...")
ilisi = ilisi_graph(
adata_int,
batch_key=batch_key,
type_=type_,
subsample=subsample * 100,
use_rep=embed,
scale=True,
n_cores=n_cores,
verbose=verbose,
)
else:
ilisi = np.nan