You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importscranpyimportnumpyasnpX=np.random.randint(0, 100, size=(50, 50)).astype(np.float64)
groups=np.random.choice(['A', 'B', 'C'], size=50).astype('U10')
print(X.shape,len(groups))
single_factor_result=scranpy.aggregate_across_cells(
x=X,
factors=[groups], # could also use a tuplenum_threads=1
)
as aggregate_across_cells() can take multiple factors. This is discussed more in help(scranpy.combine_factors).
but in my data,length of 'groups' is equal to the number of columns in 'x'.
The text was updated successfully, but these errors were encountered: