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

Change how cellassign celltypes are saved #420

Closed
sjspielman opened this issue Aug 29, 2023 · 1 comment
Closed

Change how cellassign celltypes are saved #420

sjspielman opened this issue Aug 29, 2023 · 1 comment
Assignees

Comments

@sjspielman
Copy link
Member

In #402, we saved CellAssign output in the SCE object.
Turns out that that content saved into the colData celltype column was actually a full data frame and not just a vector celltypes, eg.

> sce$cellassign_celltype_annotation |>head()
           barcode            celltype prediction
1 ACGTCAAAGGTGTTAA           Monocytes  1.0000000
2 CCTTCGAGTGTCTGAT               other  0.9999851
3 GCGGGTTAGCCCTAAT Gamma delta T cells  1.0000000
4 AGCGTATAGACACTAA Gamma delta T cells  1.0000000
5 GCAAACTCATATGGTC Gamma delta T cells  1.0000000
6 TACGGTACATTATCTC           Monocytes  1.0000000

We will want to just save celltype here, so this line of code needs to change:

# add cell type and prediction to colData
sce$cellassign_celltype_annotation <- celltype_assignments

to:

sce$cellassign_celltype_annotation <- celltype_assignments$celltype

That's it!

@sjspielman
Copy link
Member Author

Closed with #421

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

1 participant