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

Convert cell_metadata index from integer to string for latest MERFISH public data #679

Merged
merged 4 commits into from
May 19, 2023

Conversation

djlee1
Copy link
Contributor

@djlee1 djlee1 commented Apr 19, 2023

Description

In the latest MERFISH public data, the cell_metadata index is recognized as an integer, which requires conversion to a string format. This commit adds a function to convert the index to a string, ensuring compatibility with downstream applications.

How has this been tested?

When attempting to load the latest public data from https://vizgen.com/data-release-program/, specifically the FFPE_Human_Immuno_oncology dataset, I have encountered an issue where the 'obs' of the Anndata object is filled with NaN values. This issue is caused by the presence of different index types between 'adata.obs' and 'coords', which leads to errors when merging them.

I have found that this issue can be resolved by setting the data type of 'coords' as 'str'. After making this adjustment, the 'obs' of the Anndata object is populated with the expected data.

djlee1 and others added 2 commits April 19, 2023 16:18
In the latest MERFISH public data, the cell_metadata index is recognized as an integer, which requires conversion to a string format. 
This commit adds a function to convert the index to a string, ensuring compatibility with downstream applications.
@codecov-commenter
Copy link

codecov-commenter commented Apr 19, 2023

Codecov Report

Merging #679 (2671907) into main (b074135) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #679      +/-   ##
==========================================
- Coverage   78.51%   78.49%   -0.03%     
==========================================
  Files          33       33              
  Lines        4706     4706              
  Branches      922      916       -6     
==========================================
- Hits         3695     3694       -1     
  Misses        735      735              
- Partials      276      277       +1     
Impacted Files Coverage Δ
squidpy/read/_read.py 38.37% <100.00%> (ø)

... and 1 file with indirect coverage changes

@giovp giovp merged commit 3684f11 into scverse:main May 19, 2023
6 of 7 checks passed
@dfhannum
Copy link
Contributor

I've used the change in my local copy of squidpy successfully for the past weeks. When I downloaded the new version things stopped working today.

I then realized that the change occurred in the wrong function. This change was in "def visium()" but it was meant for "def vizgen()"

dfhannum added a commit to dfhannum/squidpy that referenced this pull request May 24, 2023
Reverted to previous code (prior scverse#679) for read_visium
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

Successfully merging this pull request may close these issues.

None yet

5 participants