Comments (7)
The file contains the coordinates of each cells (center): to obtain that, the cells needs to be segmented in the histological image. To my knowledge, the file has no SpaceRanger analogue. A simple way to segment by yourself is to use the software ilastik (publicly available) on your H&E/Nissl stained image.
You cannot bypass this step if you want to deconvolve your Visium data using Tangram (because you need to tell the method how many cells are contained in each voxel). But you can circumvent this step if you simply want to perform a probabilistic mapping (for example, for correcting dropouts): in this case you can estimate the density "by eye" or use a public source such as the Blue Brain Cell Atlas (in our paper we treat both cases).
from tangram.
Hi Cartal,
First: I updated all the links. Please pull from repo and find updated notebook and README file. The Allen1_cell_centroids
file contains the centroids of each cell to be superimposed to the histological image. That is a result of out segmentation. You can download the file here:
Please do not hesitate to ask more questions if I am not being clear.
from tangram.
Thanks for the quick reply!
Ok, so I understand what is the file now. But then my question is, which is the equivalent file from a SpaceRanger run? And, do I need this file if I haven't done any segmentation? Could I bypass it?
Many thanks
from tangram.
Thanks so much! This has been super useful!
from tangram.
Hi,
I would also like to test Tangram on Visium data (for deconvolution) but I am struggling a bit with extracting the cell centroids information from the histological image as you indicated. Did you use the 'voxel segmentation workflow' on ilastik? Would it be possible to share more info on how to extract this information? Thanks in advance!
from tangram.
Hello Sokratia,
Thank you for your email. No, we did not use 'voxel segmentation workflow' but below is given the process how we calculated cell centroids for each voxel using the histological visium images.
To find cell centroids you can try "pixel classification" in 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/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
from tangram.
Thanks a lot ravasthi that was really helpful.
from tangram.
Related Issues (20)
- Can we have an API as batch size for the integration method? HOT 3
- No attribute 'pp_adatas' in tangram HOT 2
- 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`
- Projecting spatial annotations to single cell HOT 2
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.