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

How to save the result with annotation and co-occurance? how to subset and establish the certain group? #367

Open
jiangli2941 opened this issue Dec 31, 2024 · 2 comments

Comments

@jiangli2941
Copy link

  1. How to save the result with annotation and co-occurance? I used the following code but failed.
    e7d2263e-a672-4bf1-9613-596fb90f14ad
    aa78156a-903f-4f6b-aa18-160951eaaba4

2.how to subset and establish the certain group?
Here is the format of my integrated data.
image
I used this code to subgroup:
image
print(ms_data_5) was like this:
image
however, if i want to extract the established subgroup, the code failed.

######datasubset = ms_data.tl.filter_by_clusters(cluster_res_key='leiden', obs=['control'], excluded=False, inplace=False)

Hope to get guidance,
Best

@tanliwei-coder
Copy link
Collaborator

tanliwei-coder commented Jan 20, 2025

About your second problem, the parameter used to specify what groups will be filtered is groups not obs, api is here.

@tanliwei-coder
Copy link
Collaborator

tanliwei-coder commented Jan 20, 2025

Before saving, what analysis did you do? Could you show me your codes? And which version of stereopy were you using?

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