Closed egerc closed 8 months ago
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:16:17Z ----------------------------------------------------------------
You can use hyperlinks to reduce the space that weblinks take. For example, best practicesl tutorial
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:16:18Z ----------------------------------------------------------------
I like a lot that you are documenting troubleshooting. This is really nice. I would just add standard Markdown format to make it more organised.
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:16:19Z ----------------------------------------------------------------
You don't need the print(adata)
part here. You can just write adata
and the same info would be displayed.
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:16:20Z ----------------------------------------------------------------
This usually takes too much space and make the notebooks unecessarily large. You could just check the first lines with adata.obs.head()
which will work because this is a data frame.
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:16:21Z ----------------------------------------------------------------
You need a header here. It is important to separate the sections of your analysis, so people can follow your code.
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:16:21Z ----------------------------------------------------------------
1) I don't really like subcomments (The ones starting with #) inside each cell. But that's my personal taste.
2) Here you have three steps in a single code cell. I would prefer if you split it in three separate ones: one for the log counts preparation, one for the HVGs, and one for the PCA.
3) PCA, Neighbours, and UMAP are not deterministic, so we need to add a random_seed=
parameter for all of them. My favourite is random_seed=1712
.
Questions:
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:16:22Z ----------------------------------------------------------------
Nice!
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:16:23Z ----------------------------------------------------------------
Here, you are using 50 neighbours, but before, you used 10. Why?
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:16:24Z ----------------------------------------------------------------
Add a brief explanation of what this means.
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:16:25Z ----------------------------------------------------------------
This section needs also a header, and a brief explanation of why you are selecting this model parameters.
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:42:02Z ----------------------------------------------------------------
The function needs to go at the top, after the section where you set up the environment.
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:42:03Z ----------------------------------------------------------------
The commented code is OK while you are optimising and testing. But by the time you commit a PR or final version, it has to be removed.
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:42:04Z ----------------------------------------------------------------
Beautiful!
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:42:05Z ----------------------------------------------------------------
Same as above
View / edit / reply to this conversation on ReviewNB
cartal commented on 2024-01-14T15:42:06Z ----------------------------------------------------------------
If this didn't work and you don't need it, remove it.
We still need to do some corrections before merging.
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB