Skip to content

Instantly share code, notes, and snippets.

View wrightdw's full-sized avatar

Derek Wright wrightdw

View GitHub Profile
@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
@brian-bot
brian-bot / knit2synapse.R
Last active November 23, 2020 18:37
A function to allow users to leverage knitr functionality when constructing Synapse wiki content.
#####
## AUTHOR: BRIAN M. BOT
## ORGANIZATION: SAGE BIONETWORKS
##
## ALLOW USERS TO LEVERAGE KNITR WHEN CONSTRUCTING SYNAPSE WIKI CONTENT
#####
## PARAMETERS:
## file: path to a local .Rmd file which to knit
## owner: a Synapse object which will own the resulting WikiPage (usually a Project, Folder, or File)
## parentWikiId (optional): if the resulting WikiPage is to be a subpage of another WikiPage, this is the id for the parent WikiPage (NOTE: owner is still required)