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

mcell_mc_split_filt followed by mcell_mc2d_force_knn : length mismatch errror #41

Closed
nixstix opened this issue Dec 10, 2020 · 5 comments
Assignees

Comments

@nixstix
Copy link

nixstix commented Dec 10, 2020

Hi Tanay lab,

When running mcell_mc_split_filt function, followed immediately by mcell_mc2d_force_knn, we get the following error:

Error in mc2d_comp_cell_coord(mc_id, graph_id, mgraph, mc_xy, symmetrize = symmetrize) :
MC-ERR: Length mismatch in number of projected MC and overal mc

Are we missing a step in the pipeline to be able to correct the mismatch?

Thanks for any help, and thanks for the package!

@akhiadber akhiadber self-assigned this Dec 11, 2020
@akhiadber
Copy link
Collaborator

please paste the output of length(mc@colors) and max(mc@mc), assuming your metacell object is named 'mc'. Assuming this is the mismatch, we'll look into why this mismatch happens when running mcell_mc_split_filt.

@nixstix
Copy link
Author

nixstix commented Dec 11, 2020

Hi, thanks for the quick response! Indeed this was the mismatch. The output length(mc@colors) was 1, and max(mc@mc) was 22. When I populated mc@colors with 22 colors (e.g. using mc_colorize_default it worked.

@nixstix nixstix closed this as completed Dec 11, 2020
@akhiadber
Copy link
Collaborator

akhiadber commented Dec 11, 2020

We'll still look into why the length of mc@colors was 1 when running the split function, assuming you didn't set this on purpose. For now coloring in some manner is the workaround

@nixstix
Copy link
Author

nixstix commented Dec 11, 2020

We did not set anything regarding the colours. If you need a reproducible example, I can email you a subset of data and the code we are 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

3 participants
@nixstix @akhiadber and others