Skip to content
This repository was archived by the owner on Aug 18, 2026. It is now read-only.

Updates visualization tutorial - #27

Merged
falexwolf merged 5 commits into
scverse:masterfrom
fidelram:master
Jul 14, 2020
Merged

falexwolf merged 5 commits into
scverse:masterfrom
fidelram:master

Conversation

@fidelram

Copy link
Copy Markdown
Contributor

No description provided.

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

Review Jupyter notebook visual diffs & provide feedback on notebooks.


Powered by ReviewNB

@review-notebook-app

review-notebook-app Bot commented Jun 30, 2020 •

Copy link
Copy Markdown

View / edit / reply to this conversation on ReviewNB

falexwolf commented on 2020-06-30T09:29:15Z
----------------------------------------------------------------

Great that you added such a preamble!

Tiny comments:

We could also add a hook to twitter or github in these author specs? We'll probably have quite a few people that contribute tutorials, and it'd be nice to be able to contact them. Twitter doesn't sound bad for that, what do you think?

*Author:* Fidel Ramirez

I'd not display the URL for the dataset but link it via PBMC ? There is also typo in PBMC, which you spelled PMBC. :)


@review-notebook-app

review-notebook-app Bot commented Jun 30, 2020 •

Copy link
Copy Markdown

View / edit / reply to this conversation on ReviewNB

falexwolf commented on 2020-06-30T09:29:16Z
----------------------------------------------------------------

You don't need to set verbosity to 0, I think, the default of 1 will suppress essentially all output already.

Why don't you like the sc.set_figure_params function? I think the increased resolution, for instance, and the fact that one can switch off frames is making things a lot pettier. But that might also just be a matter of taste, right.


@review-notebook-app

review-notebook-app Bot commented Jun 30, 2020 •

Copy link
Copy Markdown

View / edit / reply to this conversation on ReviewNB

falexwolf commented on 2020-06-30T09:29:17Z
----------------------------------------------------------------

Spelling out per observation/cell might help new users to get intuition for why this things is called .obs


@review-notebook-app

review-notebook-app Bot commented Jun 30, 2020 •

Copy link
Copy Markdown

View / edit / reply to this conversation on ReviewNB

falexwolf commented on 2020-06-30T09:29:17Z
----------------------------------------------------------------

Great! You prefer this over passing ax=plt.figure(figsize=(4, 4)).gca()?

I'm looking forward to integrating a figsize parameter, or a single_figsize for plots that generate many subplots.


fidelram commented on 2020-07-09T14:44:03Z
----------------------------------------------------------------

I prefer to type less, and rcParams makes it easier although I need to import it first. Adding figsize to scatter plots is a plus and is quite a standard parameter for many functions.

@review-notebook-app

review-notebook-app Bot commented Jun 30, 2020 •

Copy link
Copy Markdown

View / edit / reply to this conversation on ReviewNB

falexwolf commented on 2020-06-30T09:29:18Z
----------------------------------------------------------------

Why don't you pass the viridis color_map to the function directly? And why do you use the reverted one, I've never seen it used by anyone before. To me, the normal viridis is more intuitive.


fidelram commented on 2020-07-09T14:45:55Z
----------------------------------------------------------------

better instead, I just added to sc.set_figure_parameters()

@review-notebook-app

review-notebook-app Bot commented Jun 30, 2020 •

Copy link
Copy Markdown

View / edit / reply to this conversation on ReviewNB

falexwolf commented on 2020-06-30T09:29:19Z
----------------------------------------------------------------

This is so pretty! :D


@review-notebook-app

review-notebook-app Bot commented Jun 30, 2020 •

Copy link
Copy Markdown

View / edit / reply to this conversation on ReviewNB

falexwolf commented on 2020-06-30T09:29:20Z
----------------------------------------------------------------

Beautiful, except for that the spacing at the bottom and top might blow up for large plots again as it scales with the figure size. A tiny fix along the lines of scverse/scanpy#1270 avoids this and makes the top and bottom margins on the y axis behave right as the left and right margins on the x axis.


fidelram commented on 2020-07-10T07:23:13Z
----------------------------------------------------------------

I will add a parameter to control the margin!

@review-notebook-app

review-notebook-app Bot commented Jun 30, 2020 •

Copy link
Copy Markdown

View / edit / reply to this conversation on ReviewNB

falexwolf commented on 2020-06-30T09:29:20Z
----------------------------------------------------------------

This should probably be normal text.


fidelram commented on 2020-07-13T13:09:56Z
----------------------------------------------------------------

I shows as normal text to me

@falexwolf

Copy link
Copy Markdown
Member

Hi Fidel! This is awesome! 😄

I added a few minor comments via reviewNB up there!

More generally, I think it'd be great to add your tutorial to a subfolder plotting here in scanpy-tutorials. You could then also think about splitting it up into several notebooks so that users can click through them, and they become easier to maintain. Say, one notebook is plotting/qc-embedding.ipynb or just plotting/embedding.ipynb and others are plotting/matrix-plots.ipynb etc. If we change only a part of the API only one notebook needs to be updated.

For the current URL to visualizing-marker-genes.ipynb, we'd create visualizing-marker-genes.rst that redirect users to the new location.

What do you think?

@falexwolf
falexwolf self-requested a review July 2, 2020 17:41

fidelram commented Jul 9, 2020

Copy link
Copy Markdown
Contributor Author

I prefer to type less, and rcParams makes it easier although I need to import it first. Adding figsize to scatter plots is a plus and is quite a standard parameter for many functions.


View entire conversation on ReviewNB

fidelram commented Jul 9, 2020

Copy link
Copy Markdown
Contributor Author

better instead, I just added to sc.set_figure_parameters()


View entire conversation on ReviewNB

Copy link
Copy Markdown
Contributor Author

I will add a parameter to control the margin!


View entire conversation on ReviewNB

Copy link
Copy Markdown
Contributor Author

I shows as normal text to me


View entire conversation on ReviewNB

@falexwolf
falexwolf merged commit 52574dd into scverse:master Jul 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants