Skip to content

Fix bug related to subsetting columns from dataframe#24

Open
DanInci wants to merge 2 commits into
plevritis-lab:mainfrom
DanInci:fix/cell_prob_list_subset
Open

Fix bug related to subsetting columns from dataframe#24
DanInci wants to merge 2 commits into
plevritis-lab:mainfrom
DanInci:fix/cell_prob_list_subset

Conversation

@DanInci

@DanInci DanInci commented Apr 28, 2024

Copy link
Copy Markdown

With current code, whenever a single cell type column is subset from the current_cell_prob data frame, the result is no longer a data frame. This leads to incorrect number of dimensions error downstream during which.max.

To replicate, have only one cell type on a level in the nested lineage hierarchy. E.g. FOXP3+ T cell

cell_types | Lineage_level
-- | --
Stroma | 1_0_1
Tumor | 1_0_2
pDC | 2_0_3
Macrophage | 2_0_4
Neutrophil | 2_0_5
CD4+ T cell | 2_0_6
CD8+ T cell | 2_0_7
B cell | 2_0_8
FOXP3+ T cell | 3_6_9

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

Successfully merging this pull request may close these issues.

1 participant