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

NAs are not allowed in subscripted assignments #22

Open
HelgaBergholtz opened this issue Mar 13, 2024 · 1 comment
Open

NAs are not allowed in subscripted assignments #22

HelgaBergholtz opened this issue Mar 13, 2024 · 1 comment

Comments

@HelgaBergholtz
Copy link

I have data from just a few markers from a Vectra Polaris experiment (see attached files). When I try to run AssignCells(), I get this error message:

Error in current_scoring_matrix[unassigned_cells, cell_type_num[i]] <- GetScore(activation_prob_to_use, : NAs are not allowed in subscripted assignments

I have tried both with and without prior filtering and the same happens.
Can you help me understand what I am doing wrong?
imaging_data_test.txt
marker_info_test.txt

@weiruo16
Copy link
Contributor

I have data from just a few markers from a Vectra Polaris experiment (see attached files). When I try to run AssignCells(), I get this error message:

Error in current_scoring_matrix[unassigned_cells, cell_type_num[i]] <- GetScore(activation_prob_to_use, : NAs are not allowed in subscripted assignments

I have tried both with and without prior filtering and the same happens. Can you help me understand what I am doing wrong? imaging_data_test.txt marker_info_test.txt

My intuitive guess is that there is a conflict of marker information in your cell type signature matrix. The CD4 T cells were identified requiring low expressions of CD8, but in the second round, the CD4 T cells were used to identify a subset of CD8 high cells. I made a slight change to correct that in the your "marker_info_test.txt" file, and it ran without errors using the default settings.
marker_info_test_Modified.txt
plot_cell_assignment

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