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

Add cellassign organs to metadata #608

Merged
merged 7 commits into from
Dec 7, 2023

Conversation

sjspielman
Copy link
Member

@sjspielman sjspielman commented Dec 7, 2023

Part of #589

This is the first of two PRs to get cellassign organs/tissues into the cell type report. Here, I just modify the add_celltypes_to_sce process and associated R script to get info into the metadata. Since we only need to do this for cellassign references, I set up nextflow to only pass in the file to R if cellassign is present.

Screen shot of resulting metadata(sce) -

Screenshot 2023-12-07 at 12 28 48 PM

While I was there, I also added in some file checks for cell typing files, which seemed like it couldn't hurt! One question is should we call these organs or tissues? I went with organs since that's what we already call them. Also, my checks for whether we grabbed the organs successfully are maybe overkill, any thoughts?

FYI I opened a related docs issue as well - AlexsLemonade/scpca-docs#211

*Edit - the next PR will get this into the cell type report! Probably the main report cell type section so it appears in both htmls. *edit 2: nope, we refer folks to the supplemental report for this sort of information!

Copy link
Member

@allyhawkins allyhawkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one minor docs update!

bin/add_celltypes_to_sce.R Outdated Show resolved Hide resolved
@@ -216,6 +226,17 @@ if (!is.null(opt$cellassign_predictions)) {
# note that if `metadata(sce)$celltype_methods` doesn't exist yet, this will
# come out to just the string "cellassign"
metadata(sce)$celltype_methods <- c(metadata(sce)$celltype_methods, "cellassign")

# add cellassign reference organs to metadata
cellassign_organs <- opt$celltype_ref_metafile |>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I say we just keep it at organs to keep it consistent with how PanglaoDB (and we) refer to them.

@sjspielman sjspielman merged commit 02f4b92 into development Dec 7, 2023
3 checks passed
@sjspielman sjspielman deleted the sjspielman/589-cellassign-organ-description branch December 7, 2023 20:23
@allyhawkins allyhawkins mentioned this pull request Jan 2, 2024
12 tasks
allyhawkins pushed a commit that referenced this pull request Jan 3, 2024
…organ-description

Add cellassign organs to metadata
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.

3 participants