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've encountered two issues when using the package:
Missing Sample Prefix in Output Files:
Our output files do not include a sample prefix, which makes an error when reading the feature_slice.h5. For example, the output looks like this:
To resolve this, I had to manually modify the file visium_hd.py, line 96, to include the sample prefix by changing the code to: filename_prefix = f"{dataset_id}_" if dataset_id else "" (I input dataset_id as "" in the argument)
Non-Unique Variable Names:
I encountered an issue where the variable names in the AnnData object were not unique. This caused conflicts in the downstream analysis. To address this, I added the following line after loading the data with sc.read_10x_h5: adata.var_names_make_unique()
The text was updated successfully, but these errors were encountered:
Regarding the empty prefix problem, this has been reported here: #212 and a solution has been developed from one of the user, and should be soon available in a PR.
Regarding the var_names_make_unique(), we are aware of this and indeed calling the function is the way to go. But I understand that this could create confusion, so I will:
add a parameter if visium() and visium_hd() to fix the var names by default, but still letting the user disable the renaming.
I've encountered two issues when using the package:
Our output files do not include a sample prefix, which makes an error when reading the feature_slice.h5. For example, the output looks like this:
To resolve this, I had to manually modify the file visium_hd.py, line 96, to include the sample prefix by changing the code to:
filename_prefix = f"{dataset_id}_" if dataset_id else ""
(I input dataset_id as "" in the argument)I encountered an issue where the variable names in the AnnData object were not unique. This caused conflicts in the downstream analysis. To address this, I added the following line after loading the data with sc.read_10x_h5:
adata.var_names_make_unique()
The text was updated successfully, but these errors were encountered: