Skip to content

Add deconvolution notebook text, part 1#1012

Merged
sjspielman merged 4 commits into
masterfrom
sjspielman/deconvolution-text-part1
Jun 9, 2026
Merged

Add deconvolution notebook text, part 1#1012
sjspielman merged 4 commits into
masterfrom
sjspielman/deconvolution-text-part1

Conversation

@sjspielman

Copy link
Copy Markdown
Member

Towards #1006

This PR fleshes out text in the deconvolution notebook through doublet mode, stopping right when we run full mode.
I expect one more PR to wrap this up.

Let me know if we should add/remove/rearrange any details here.

I also did a bit of rearranging while I was here for flow - originally in the import section, we imported the SPE first and plotted marker gene expression for a set of cell types that are in the reference. I thought it would flow better to read in the reference first which help to contextualize why we're plotting those cell type marker genes on the SPE. So, I just swapped the import order, but no changes to code.

@sjspielman sjspielman requested a review from allyhawkins June 4, 2026 15:10

@allyhawkins allyhawkins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks mostly good to me. I just had a few questions of where things could be clarified and then some rewording and small organizational items to address.

Comment thread spatial/03-deconvolution.Rmd Outdated
Comment thread spatial/03-deconvolution.Rmd Outdated
Comment thread spatial/03-deconvolution.Rmd Outdated
Comment thread spatial/03-deconvolution.Rmd Outdated
Comment thread spatial/03-deconvolution.Rmd
Comment thread spatial/03-deconvolution.Rmd Outdated
Comment thread spatial/03-deconvolution.Rmd Outdated
Next, we'll prepare the data for deconvolution by running the function `spacexr::createRctd()`.
This function sets various values and parameters that will be used for the deconvolution procedure, including:

* Identifying genes to use to correct for platform effects

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How are these identified? Is this from the reference or a combination of the reference and the SPE. I might add some more context here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I added some more info to this but tried to not get too into the weeds, aka no big math. Let me know if you think it needs more expansion.

Comment thread spatial/03-deconvolution.Rmd Outdated
Comment thread spatial/03-deconvolution.Rmd Outdated
Comment thread spatial/03-deconvolution.Rmd Outdated
sjspielman and others added 3 commits June 8, 2026 12:41
Co-authored-by: Ally Hawkins <54039191+allyhawkins@users.noreply.github.com>
@sjspielman sjspielman requested a review from allyhawkins June 8, 2026 16:59

@allyhawkins allyhawkins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@sjspielman sjspielman merged commit fe83301 into master Jun 9, 2026
5 checks passed
@sjspielman sjspielman deleted the sjspielman/deconvolution-text-part1 branch June 9, 2026 14:31
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.

2 participants