Skip to content

Instantly share code, notes, and snippets.

View tsikup's full-sized avatar
☀️

Nikos Tsiknakis tsikup

☀️
View GitHub Profile
@tsikup
tsikup / !Making Measurements in QuPath
Created September 22, 2021 09:16 — forked from Svidro/!Making Measurements in QuPath
Making Measurements in QuPath
Collections of scripts harvested mainly from Pete, but also picked up from the forums
TOC
Accessing dynamic measurements.groovy - Most annotation measurements are dynamically created when you click on the annotation, and
are not accessible through the standard getMeasurement function. This is a way around that.
Affine transformation.groovy - access more accurate measurements for the affine transformation used in the image alignment (m5/m6+)
Alignment of local cells.groovy - check neighborhood for similarly aligned cells
@tsikup
tsikup / args_script_template.sh
Created April 29, 2022 16:02 — forked from rragundez/args_script_template.sh
Template of bash script with mandatory and optional arguments
#!/bin/bash
set -e
usage="$(basename "$0") [-h] [-i PROJECT] [-v VM] [-p PYTHON] [-d NOTEBOOKS]
Make a user provide SSH key and jupyter notebooks (in roles/bootstrap/files/notebooks) to each user listed in var/common.yml
where:
-h show this help text
-i google cloud project id
-v name of instance/virtual machine
-p python path
@tsikup
tsikup / !QuPath groovy scripts + Python (paquo) scripts
Last active September 22, 2023 09:32
A collection of groovy and python (paquo) scripts used for image analysis in QuPath.
A collection of groovy and python (paquo) scripts used for image analysis in QuPath.
@tsikup
tsikup / create_virtual_hdf5.py
Created March 23, 2023 09:09
Combine several hdf5 files into one by craeting a virtual dataset.
import argparse
import glob
import os
import h5py
import numpy as np
from natsort import natsorted
from tqdm import tqdm
@tsikup
tsikup / convert_geojson_to_json.py
Created September 19, 2023 14:11
Convert QuPath's GeoJson annotations to Json for WholeSlideData library
import os
import glob
import json
import numpy as np
LABELS = {
'Tissue': 1,
'Tumor': 2
}