Skip to content

Instantly share code, notes, and snippets.

@mikrkilk
mikrkilk / omero_figure_channel_names.js
Last active April 18, 2022 17:39
Omero utility scripts
javascript:(function(){
let infotab = document.getElementById('infoTab').children[0].children[2];
let channels = infotab.children[0].children[1].children[0].lastElementChild.textContent.trim().split(', ');
let channelsliders = document.getElementById('channel_sliders').children[0];
for(i=0;i<channels.length;i++) {
let p = document.createTextNode(channels[i]);
let br = document.createElement('br');
channelsliders.children[i].insertBefore(br,channelsliders.children[i].firstChild);
channelsliders.children[i].insertBefore(p,channelsliders.children[i].firstChild);
}

Exemplar - modified batch script for running ASHLAR

  1. Download FIJI and put it in C:\Users\Public\Downloads\

  2. Save the imagej_basic_ashlar.py to C:\Users\Public\Downloads\Fiji.app\plugins\

  3. Launch command prompt

  4. In command prompt, change directory to the data folder