In addition to Harvard's fantastic list, we list some other convenient SLURM commands.
Useful for letting other enqueued jobs run without having to kill/re-run already running jobs. To delay for 7 days:
| ## GOAL: | |
| ## re-create a figure similar to Fig. 2 in Wilson et al. (2018), | |
| ## Nature 554: 183-188. Available from: | |
| ## https://www.nature.com/articles/nature25479#s1 | |
| ## | |
| ## combines a boxplot (or violin) with the raw data, by splitting each | |
| ## category location in two (box on left, raw data on right) | |
| # initial set-up ---------------------------------------------------------- |
| #install UMAP from https://github.com/lmcinnes/umap | |
| #install.packages("rPython") | |
| umap <- function(x,n_neighbors=10,n_components=2,min_dist=0.1,metric="euclidean"){ | |
| x <- as.matrix(x) | |
| colnames(x) <- NULL | |
| rPython::python.exec( c( "def umap(data,n,d,mdist,metric):", | |
| "\timport umap" , | |
| "\timport numpy", | |
| "\tembedding = umap.UMAP(n_neighbors=n,n_components=d,min_dist=mdist,metric=metric).fit_transform(data)", |
In addition to Harvard's fantastic list, we list some other convenient SLURM commands.
Useful for letting other enqueued jobs run without having to kill/re-run already running jobs. To delay for 7 days: