conda create --name tmp python=3.10
mamba install scvi-tools=1.1.2 jaxlib=0.4.16 jax=0.4.16 -c conda-forge
mamba install conda-forge::flax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Successfully imported ttreis helper functions") | |
def rgb2hex(r,g,b): | |
return "#{:02x}{:02x}{:02x}".format(r,g,b) | |
somsault_1 = rgb2hex( 0, 0, 0) # black | |
somsault_2 = rgb2hex( 0, 73, 73) # dark grey | |
somsault_3 = rgb2hex( 0, 146, 146) #009999, approx. "Persian Green" | |
somsault_4 = rgb2hex(255, 109, 182) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env Rscript | |
args = commandArgs(trailingOnly = TRUE) | |
get_all_tests = function(file_path) { | |
txt = base::paste(base::readLines(file_path, warn = FALSE), collapse = "\n") | |
matches = base::gregexpr("testthat::test_that\\(\\\"(.+?)\"", txt) | |
return(matches) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library("visR") | |
get_legend_title <- function(gg) { | |
ggb <- ggplot2::ggplot_build(gg) | |
ggt <- ggplot2::ggplot_gtable(ggb) | |
legend_grob_id <- which(sapply(ggt$grobs, function(x) x$name) == "guide-box") | |
legend_grob <- ggt$grobs[[legend_grob_id]] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pass |