Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matching coordinates to cell names #33

Open
alicerlam opened this issue Oct 22, 2024 · 1 comment
Open

Matching coordinates to cell names #33

alicerlam opened this issue Oct 22, 2024 · 1 comment

Comments

@alicerlam
Copy link

Hi!

I'm trying to export coordinate data to be able to display/work with them in Python, but coordinates.txt contains numbered cells without rownames. The numbers do not seem to match the order of the rownames of the matrix I input into SPRING (assigning them likewise and plotting results in substantially different graphs than seen in the SPRING viewer). Is there any way to know which cell in the original matrix each coordinate corresponds to? Thanks!

@calebweinreb
Copy link
Collaborator

Hi Alice,

By default, SPRING performs total-counts filtering of cells before generating the plot. Unfortunately there is no way for the user to download an explicit index of which cells were filtered, so that would prevent matching up the coordinates with the original rows of your input matrix. (I definitely should have included this option... not sure why we didn't).

So the best that can be done in your case is to perform cell filtering yourself before uploading the data to SPRING, and then setting the minimum number of counts to 0 when generating the plot so that no other cells get filtered. Then (assuming you do not make any "subplots"), the rows of the downloaded coordinates file should match up one-to-one with the rows of the uploaded gene expression matrix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants