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
I think I might have figured it out, but confirmation would help:
# dataframe for annotating the observationsobs=pd.DataFrame()
obs['sample'] =df.columnsvar_names=df.index# dataframe for annotating the variablesvar=pd.DataFrame(index=var_names)
# the data matrix X=df.T.valuesadata=anndata.AnnData(X, obs=obs, var=var, dtype='int32')
Hey all,
Is there an option to convert Pandas df to Anndata object?
Thanks,
Roy
The text was updated successfully, but these errors were encountered: