Comments (3)
Hi,
Thank you for your question. The file "Allen1_cell_centroids.pkl" is a dictionary that holds the data of cell centroid coordinates. The process to calculate cell centroids for each voxel using the histological visium images is given below.
To find cell centroids over a histological image you can try "pixel classification" over software called Ilastik. Mark the cells as one label and background as another, I would suggest using the "live updates" feature while marking the labels and continuing the process of marking until you are satisfied with the results, then you may use "4. Prediction Export" with source set as "simple segmentation" to export your result as either an HDF5 or png file and read it using python as the file would be a matrix with 2 or 3 unique labels with one of the labels depicting cells. You may then convert it into a binary image and process it using "skimage" package to find cell_centroids.
You may find voxel centroids in the visium gene expression anndata file.
Below is the format for the cell_centroid pickle file.
column_1: x-coordinate of the centroid of the voxel - int
column_2: y-coordinate of the centroid of the voxel - int
column_3: number of cells detected in the voxel - int
column_4: list the centroids of cells in the voxel - int
I'll be happy to answer any further questions if you have any! :)
from tangram.
Thanks, that means I can generate this file if I already have the four columns data。
from tangram.
Exactly! I have tried to describe a process of obtaining data for those 4 columns in my previous post. Let me know if that requires some more clarification or if you have any questions. Thanks!
from tangram.
Related Issues (20)
- Possible to use multiple single cell datasets in Tangram? HOT 3
- Cannot find correspondence of the input data HOT 1
- question about training genes HOT 1
- Some questions about best practices HOT 1
- Attribute error : module 'tangram' has no attribute 'map_cells_to_space' HOT 2
- scRNAseq cells < spatial cells, curious about how mapping works HOT 3
- Unexpected behaviour HOT 1
- Question about acceptable AUC, improving AUC HOT 1
- potential overfitting HOT 5
- Interpretation of tangram_ct_pred HOT 2
- Option "enforce gene lowercase" HOT 1
- error when sq.im.segment
- Tangram Deconvolution HOT 1
- Using Integrated single cell data for alignment
- AttributeError: module 'tangram' has no attribute 'pp_adatas'
- Sparsity_sc and sparsity_sp = 0
- Please explain `project_cell_annotations`
- Running time for Tangram
- plot_auc does not work HOT 1
- Possible mistakes in the "Tangram under the hood" page in documentation website
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tangram.