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 can I map my cells to an previously generated cluster? #27

Open
jeffchen2000 opened this issue May 13, 2023 · 3 comments
Open

how can I map my cells to an previously generated cluster? #27

jeffchen2000 opened this issue May 13, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@jeffchen2000
Copy link

jeffchen2000 commented May 13, 2023

Hi
there is a publication that has their generated cluster by BnpC, and each cluster associates with a function, now how can I map my data to such an existing cluster? (I don't want to use my data to generate any new cluster because I want to map my data to their functions).

this is equivalent to the situation below:
I have 11 samples, and I want to use 10 of them to generate a cluster, and use the 11th sample to map to the pre-generated cluster from the 10 samples.

if current version of BnpC does not support such a request, could you let me know which part of your code needs to be changed?

@NBMueller
Copy link
Member

Hey,

Currently, there is only the argument --fixed_assignment <ASSIGNMENT FILE> implemented, which does not update cluster assignments, but that is not what you want, is it?

As I understand (I did not get your example fully), you want to have the assignment flexible/learned but the clusters fixed?
You could do the same as for the assignment, init the clusters from a given file, and then just update the assignments and skip the rest of the update steps (https://github.com/cbg-ethz/BnpC/blob/b4dfefc1962b4802ab685604d321548035456e6e/libs/MCMC.py#LL321C27-L321C27).

Unfortunately, I don't have the time atm to implement it myself, but let me know if you get stuck somewhere.

Cheers

@NBMueller NBMueller added the enhancement New feature or request label May 22, 2023
@jeffchen2000
Copy link
Author

jeffchen2000 commented May 23, 2023 via email

@jeffchen2000
Copy link
Author

jeffchen2000 commented May 23, 2023 via email

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

No branches or pull requests

2 participants