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

Update delta median section #520

Merged
merged 13 commits into from
Oct 19, 2023
Merged

Conversation

sjspielman
Copy link
Member

@sjspielman sjspielman commented Oct 18, 2023

Closes #517

This PR updates the delta median section of the cell type QC report and hits all the bullets in #517. I think the diamonds look fine in the plot; the only spots where they are a little weird is for cell types with only ONE cell, but I think that just kind of is what it is no matter what!

Any viz or textual feedback welcome!

EDIT: A rendered report!
celltypes_supplemental_report.html.zip

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.

I like the changes, I just made a few comments.

One other thing, it looks like the scores returned by SingleR are always between 0-1? So theoretically, the max delta median statistic could be 1 right? I think we may want to say that to add some sort of help in interpretation. Yes, higher is better, but knowing how high it can be might be helpful.

templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
")
```


```{r, eval = has_singler, warning=FALSE, message=FALSE,fig.height = 6, fig.width = 8}
```{r, eval = has_singler, warning=FALSE, message=FALSE, fig.height = 7, fig.width = 6.5}
Copy link
Member

Choose a reason for hiding this comment

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

Should we dynamically set this plot height based on the number of cell types? I assume that not every cell type will be assigned in every sample so the size of this plot may change.

Copy link
Member

Choose a reason for hiding this comment

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

I like the figure width though. But maybe something like num_celltypes * 0.5?

Copy link
Member Author

Choose a reason for hiding this comment

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

You know, I've never done this! I'll try it out!

templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
@sjspielman
Copy link
Member Author

Thanks for the feedback @allyhawkins! I've made suggested changes, for now I did end up linking the pruneScores documentation so you can weigh in more clearly on if it makes sense.

Current report: celltypes_supplemental_report.html.zip

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.

Changes look mostly good. I just had a few small comments. The only thing I'm still back and forth on is the line about "internal confident assessment".

templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
@sjspielman
Copy link
Member Author

@allyhawkins next round is here: celltypes_supplemental_report.html.zip

There was one suggestion comment of yours that I did not implement since I wanted to make sure first I understood exactly what you meant, it's left unresolved above!

Copy link
Member

@jashapiro jashapiro left a comment

Choose a reason for hiding this comment

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

I had some more thoughts about the text...

templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
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.

One minor change, but otherwise LGTM

templates/qc_report/celltypes_supplemental_report.rmd Outdated Show resolved Hide resolved
Copy link
Member

@jashapiro jashapiro left a comment

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 934df29 into development Oct 19, 2023
3 checks passed
@sjspielman sjspielman deleted the sjspielman/517-delta-median-update branch October 19, 2023 20:49
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