-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Code:
blueprint_ref = celldex.fetch_reference("blueprint_encode", "2024-02-26", realize_assays=True)
immune_cell_ref = celldex.fetch_reference("hpca", "2024-02-26", realize_assays=True)
import singlecellexperiment as sce
mat = adata.X.T
features = [str(x) for x in adata.var_names]
Reference datasets (blueprint_ref and hpca_ref)
ref_data = [
blueprint_ref,
hpca_ref
]
ref_labels = [
blueprint_ref.get_column_data().column("label.main"),
hpca_ref.get_column_data().column("label.main")
]
Correct the call to annotate_integrated:
single_results, integrated = singler.annotate_integrated(mat,features,ref_data=ref_data,ref_labels=ref_labels,num_threads=24)
Access results
integrated.column("best_label")
Error message:
TypeError Traceback (most recent call last)
Cell In[26], line 32
25 ref_labels = [
26 blueprint_ref.get_column_data().column("label.main"),
27 hpca_ref.get_column_data().column("label.main")
28 ]
31 # Correct the call to annotate_integrated:
---> 32 single_results, integrated = singler.annotate_integrated(mat,features,ref_data=ref_data,ref_labels=ref_labels,num_threads=24)
33 # Access results
34 integrated.column("best_label")
TypeError: annotate_integrated() got multiple values for argument 'ref_data'