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 am new to spatial transcriptomic analysis. I have AnnData from 10x Xenium. Could you please let me know how to generate the input data for dataset.Dataset()?
Thanks.
Bo
The text was updated successfully, but these errors were encountered:
Probably easiest is to convert your AnnData file to a Pandas Dataframe. This dataframe should contain the XY or XYZ locations of all molecules and their gene label. So, make a dataframe with the columns: 'g' for gene labels, 'x' for X coordinates and 'y' for Y coordinates. Then save this dataframe as .parquet using" df.to_parquet(filename.parquet), wheredf is your dataframe.
Then you can give FISHscale the path to this file and the column names like so:
fromFISHscale.utilsimportdatasetd=dataset.Dataset('filename.parquet',
x_label='x',
y_label='y',
gene_label='g',
pixel_size='1 micrometer', #Change this to the unit of the Xenium data.
Hi,
I am new to spatial transcriptomic analysis. I have AnnData from 10x Xenium. Could you please let me know how to generate the input data for dataset.Dataset()?
Thanks.
Bo
The text was updated successfully, but these errors were encountered: