Skip to content

Instantly share code, notes, and snippets.

View GenevieveBuckley's full-sized avatar

Genevieve Buckley GenevieveBuckley

  • Monash University
  • Melbourne
View GitHub Profile
@conradry
conradry / download_cellmap.py
Last active January 22, 2024 18:58
Script to download cellmap ground truth data
import os
import numpy as np
from fibsem_tools import io
from skimage.io import imsave
from scipy.ndimage import zoom
datasets = [
'jrc_hela-2',
'jrc_hela-3',
'jrc_jurkat-1',
@maweigert
maweigert / downsample_gpu.py
Created July 29, 2021 21:19
Average-Downsampling example in OpenCL (via gputools)
# Average-Downsampling example in OpenCL (via gputools)
# please install it first via
# pip install gputools
import numpy as np
from gputools import OCLProgram, OCLArray, get_device
from timeit import default_timer
from skimage.transform import downscale_local_mean
# opencl kernel
""" first try at cellpose plugin for napari"""
from enum import Enum
import sys, pathlib
import numpy as np
import napari
from napari import Viewer, gui_qt
from napari.layers import Image
from napari.qt.threading import thread_worker
from napari_plugin_engine import napari_hook_implementation
from magicgui import magicgui, magic_factory
@eric-czech
eric-czech / gwas_simulation.ipynb
Created November 19, 2020 15:15
Representative GWAS workflow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@m-albert
m-albert / affine_transform_dask.py
Created October 9, 2020 10:59
Affine transformation for dask arrays: Wrapper around `ndimage.affine_transform`
#!/usr/bin/env python
"""
Affine transformation for dask arrays: Wrapper around `ndimage.affine_transform`
"""
__author__ = "Marvin Albert"
__email__ = "marvin.albert@gmail.com"
@ChriRas
ChriRas / readme.md
Last active June 25, 2024 15:26
Set up default audio device on Ubuntu 20.04 LTS

Problem

I have a notebook connected to a port replicator. I want to use the build-in speakers and microfone and not the external ones. If I boot my notebook in my port replicator Ubuntu changes the devices to external.

Solution

  1. Find your internal speaker
pactl list short sinks
#!/usr/bin/env python3
"""
quicky script that compares two conda environments
can be handy for debugging differences between two environments
This could be made much cleaner and more flexible -- but it does the job.
Please let me know if you extend or improve it.
@andrewdhicks
andrewdhicks / dask-median.ipynb
Created March 13, 2019 23:04
median() for a dask-backed xarray
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ekatrukha
ekatrukha / 3D_tilt_stack_v1.ijm
Created February 7, 2019 18:03
ImageJ macro making a tilted movie out of Z-stack
//ImageJ macro making a tilted movie out of stack
//uses shear transform + rotation
//Eugene Katrukha katpyxa at gmail.com
requires("1.48h");
sTitle=getTitle();
sMovieTitle=sTitle+"_tilt_movie";
setBatchMode(true);
//Dialog