Skip to content

Instantly share code, notes, and snippets.

View FloWuenne's full-sized avatar
💻

Florian Wuennemann FloWuenne

💻
  • Seqera
  • Barcelona | Montreal
  • 00:43 (UTC -04:00)
  • X @FloWuenne
View GitHub Profile
@opub
opub / animate.py
Created August 11, 2022 19:44
Generates an animated GIF for set of images in a directory
from PIL import Image
import glob
import math
#
# This script will take all of the images that match a pattern in the local
# directory and generate an animated GIF with each image as a frame. Useful
# for capturing all of your NFTs into a single file for sharing.
#
# One time setup assuming you already have python and pip installed.
@FloWuenne
FloWuenne / build_custom_kb_ref.sh
Last active February 25, 2021 23:31
Building a custom reference for kb-python in a virtual environment
## This is only on compute canada clusters where modules are available!
module load python/3.7.4
## Create virtual environment using python
python3 -m venv ./kb_python_env
## activate environment
source ./kb_python_env/bin/activate
## Install kb-python inside environment
@FloWuenne
FloWuenne / cluster_module_shiny_ALL_renamed.R
Last active April 26, 2018 14:12
Create shiny cluster modules for renamed datasets
library(dplyr)
library(tidyr)
## Define S4 object with required components
Clustering_info <- setClass("clustering_module",slots=c(tsne="data.frame",
metadata="data.frame",
norm_exprs="data.frame",
marker_list="data.frame"))
@FloWuenne
FloWuenne / extract_shiny_data_Full_dataset.R
Last active April 26, 2018 14:31
Create an Rds file for the full heart maturation dataset
library(dplyr)
library(tidyr)
## Define S4 object with required components
Clustering_info <- setClass("clustering_module",slots=c(tsne="data.frame",
metadata="data.frame",
norm_exprs="data.frame",
marker_list="data.frame"))
@FloWuenne
FloWuenne / Run_clustering_module_Rds.R
Last active April 27, 2018 13:53
Run certain gists in R from GithubGist
library(devtools)
#### Specific datasets
## Specific time point Rds
source_gist("https://gist.github.com/FloWuenne/df2dca6804f562ed90db26a04508af31", filename = "Create_clustering_module_Rds.R")
## Specific time point .Rdata
source_gist("https://gist.github.com/FloWuenne/dfd1e00c198b2ae1adeb16720a844441",, filename = "Create_clustering_module_Rds.R")
#### All datasets