Skip to content

Instantly share code, notes, and snippets.

@DanaCase
DanaCase / .vimrc
Last active August 13, 2018 21:52
.vimrc
"for allowing vundles
set nocompatible
filetype plugin indent on
syntax on
set backspace=2
set clipboard=unnamed
set t_Co=256
set background=dark
let g:solarized_temrcolors=256
@DanaCase
DanaCase / points_to_patches.groovy
Created February 27, 2018 19:17
Convert a list of patch coordinates to qupath annotations
import qupath.lib.scripting.QP
import qupath.lib.roi.RectangleROI
import qupath.lib.objects.PathAnnotationObject
points_list = [[0,0]]
def hierarchy = QP.getCurrentHierarchy()
points_list.each {
@DanaCase
DanaCase / AperioToQuPath.groovy
Last active May 6, 2023 09:05
Convert Exported Aperio Image Scope Annotations to QuPath Annotations
import qupath.lib.scripting.QP
import qupath.lib.geom.Point2
import qupath.lib.roi.PolygonROI
import qupath.lib.objects.PathAnnotationObject
import qupath.lib.images.servers.ImageServer
//Aperio Image Scope displays images in a different orientation
def rotated = true