8000 updated version of plotting function by martaint · Pull Request #199 · theislab/scib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

updated version of plotting function #199

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

Merged
merged 40 commits into from
Feb 16, 2021
Merged

updated version of plotting function #199

merged 40 commits into from
Feb 16, 2021

Conversation

martaint
Copy link
Collaborator

plus usability and scalability tabs + input metrics files

plus usability and scalability tabs + input metrics files
Copy link
Member
@lazappi lazappi left a comment

Choose a reason for hiding this comment

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

I was able to run these and get some plots that look correct but the functions are quite complex so it's possible I have overlooked a bug somewhere.

Some general notes:

  • It took we a while to work out how to run these, mostly that I had to set the working directory to where the scripts are. Maybe it would be good to have some documentation about how to use the functions? There is an empty README in this directory that could be a good place.
  • Not sure if it would be good to have some control over where the output files are saved?
  • These functions could maybe do with a bit of a tidy up which could make them easier to follow. Probably not a priority at this stage though.
  • Do we need both the RNA metrics CSVs or just the most recent one? Might be better for git if they are named without the dates as well (but not entirely sure about that).

@lazappi
Copy link
Member
lazappi commented Nov 4, 2020

I have updated my plotting functions on this branch as well so @martaint you might need to do a git pull before you can add any extra changes.

Comment on lines +248 to +291
best_methods <- list(
RNA = c(
"Scanorama_embed_HVG_scaled",
"scANVI*_embed_HVG_unscaled",
"scGen*_gene_HVG_unscaled",
"fastMNN_embed_HVG_unscaled",
"BBKNN_graph_HVG_unscaled",
"Scanorama_gene_HVG_scaled",
"scVI_embed_HVG_unscaled",
"Seurat v3 RPCA_gene_HVG_unscaled",
"Harmony_embed_HVG_unscaled",
"Seurat v3 CCA_gene_HVG_unscaled",
"fastMNN_gene_HVG_unscaled",
"Conos_graph_FULL_unscaled",
"ComBat_gene_HVG_unscaled",
"MNN_gene_HVG_unscaled",
"trVAE_embed_HVG_unscaled",
"DESC_embed_FULL_unscaled",
"LIGER_embed_HVG_unscaled",
"SAUCIE_embed_HVG_scaled",
"SAUCIE_gene_HVG_scaled"
),
ATAC = c(
"Harmony_embed",
"scANVI*_embed",
"LIGER_embed",
"scVI_embed",
"ComBat_gene",
"scGen*_gene",
"Seurat v3 RPCA_gene",
"Seurat v3 CCA_gene",
"Scanorama_embed",
"MNN_gene",
"trVAE_embed",
"fastMNN_embed",
"BBKNN_graph",
"Scanorama_gene",
"fastMNN_gene",
"DESC_embed",
"SAUCIE_embed",
"SAUCIE_gene",
"Conos_graph"
)
)
Copy link
Member

Choose a reason for hiding this comment

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

I should probably not hard code these but not sure if there is an easy way to get them. @martaint does/could your best methods functions output to best versions of each method? Would just need to be like what's here (method, output, features, scaling). Then I could make the best scatter functions more usable by somebody else.

Comment on lines +60 to +78
methods_pal <- c(
"BBKNN" = "#5A5156",
"Conos" = "#E4E1E3",
"trVAE" = "#F6222E",
"scVI" = "#FE00FA",
"ComBat" = "#16FF32",
"Harmony" = "#3283FE",
"LIGER" = "#FEAF16",
"Scanorama" = "#B00068",
"Seurat v3 CCA" = "#1CFFCE",
"Seurat v3 RPCA" = "#90AD1C",
"MNN" = "#2ED9FF",
"fastMNN" = "#DEA0FD",
"scGen*" = "#AA0DFE",
"scANVI*" = "#F8A19F",
"DESC" = "#325A9B",
"SAUCIE" = "#C4451C",
"Unintegrated" = "#66B0FF"
)
Copy link
Member

Choose a reason for hiding this comment

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

This maybe shouldn't be hardcoded either...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could just be added to a separate mapping file that is loaded, like the tool name conversions above.

Copy link
Member

Choose a reason for hiding this comment

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

This is one of mine. I'll fix it after this PR is merged.

Comment on lines +231 to +243
pancreas = "Pancreas",
lung_atlas = "Lung",
immune_cell_hum = "Immune (human)",
immune_cell_hum_mou = "Immune (human/mouse)",
mouse_brain = "Mouse brain",
simulations_1_1 = "Sim 1",
simulations_2 = "Sim 2",
mouse_brain_atac_genes_large = "ATAC large (genes)",
mouse_brain_atac_peaks_large = "ATAC large (peaks)",
mouse_brain_atac_windows_large = "ATAC large (windows)",
mouse_brain_atac_genes_small = "ATAC small (genes)",
mouse_brain_atac_peaks_small = "ATAC small (peaks)",
mouse_brain_atac_windows_small = "ATAC small (windows)"
Copy link
Member

Choose a reason for hiding this comment

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

Also abstract this

Copy link
Member
@lazappi lazappi left a comment

Choose a reason for hiding this comment

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

I've made a few minor comments but none of them are essential. Happy for this to be merged if @martaint doesn't want to spend any more time on it.

@lazappi
Copy link
Member
lazappi commented Jan 21, 2021

I also need to update my visualisation scripts but I think it will be easier to do it after this is merged (any maybe after they are moved to scib-reproducibility).

@LuckyMD
Copy link
Collaborator
LuckyMD commented Jan 21, 2021

@martaint you can merge once you're happy with this... but please update the wording in the description a bit.

Copy link
Collaborator
@LuckyMD LuckyMD left a comment

Choose a reason for hiding this comment

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

Minor wording updates needed and ideally a separation of the mapping of headings from this code into a separately loaded file.

Comment on lines +60 to +78
methods_pal <- c(
"BBKNN" = "#5A5156",
"Conos" = "#E4E1E3",
"trVAE" = "#F6222E",
"scVI" = "#FE00FA",
"ComBat" = "#16FF32",
"Harmony" = "#3283FE",
"LIGER" = "#FEAF16",
"Scanorama" = "#B00068",
"Seurat v3 CCA" = "#1CFFCE",
"Seurat v3 RPCA" = "#90AD1C",
"MNN" = "#2ED9FF",
"fastMNN" = "#DEA0FD",
"scGen*" = "#AA0DFE",
"scANVI*" = "#F8A19F",
"DESC" = "#325A9B",
"SAUCIE" = "#C4451C",
"Unintegrated" = "#66B0FF"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could just be added to a separate mapping file that is loaded, like the tool name conversions above.

@ilibarra
Copy link
Member

Hello. I recently invested several hours trying to test / run the plotSingleAtlas.R function. It turned out to be a very slow process, and it required multiple manual installations, sometimes not described here (ggimage/dynutils/magick conflicts).

I would like to test this PR to help debugging in case useful. Which is the branch I should clone locally in order to do it? A git clone command to do it would be helpful. Then I can tell you if I see the same issues or those are handled.

Thanks!

@LuckyMD
Copy link
Collaborator
LuckyMD commented Jan 26, 2021

the branch would be martaint-patch-2.

@LuckyMD
Copy link
Collaborator
LuckyMD commented Jan 26, 2021

required multiple manual installations, sometimes not described here (ggimage/dynutils/magick conflicts).

@martaint could you take a look at this?

@lazappi
Copy link
Member
lazappi commented Feb 8, 2021

Where are we at with this? I'd like to tick off uploading a couple of my scripts but I think it's probably best if this is merged first.

@LuckyMD
Copy link
Collaborator
LuckyMD commented Feb 8, 2021

@martaint ?

@martaint
Copy link
Collaborator Author

Took care of all comments! Thanks :)

@martaint martaint merged commit 5bda5d0 into master Feb 16, 2021
@mumichae mumichae deleted the martaint-patch-2 branch September 16, 2021 13:40
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.

4 participants
0