Skip to content

Instantly share code, notes, and snippets.

window.webknossos.apiReady(3).then(async(api) => {
const welcomeMessage =
`edgeMode (version 17.02.2021)
[6] Adds "Yes" to current tree name
[5] Adds "Maybe" to current tree name
[4] Adds "No" to current tree name`;
/*
Edge Annotation Tool
Easily label edge tracings with a single key stroke.
Note: User must create a new node for this script to work.
@heikowissler
heikowissler / edgeMode2
Last active April 1, 2021 08:43
edgeMode2
window.webknossos.apiReady(3).then(async(api) => {
const welcomeMessage =
`edgeMode (version 17.02.2021)
[6] Adds "Yes" to current tree name
[5] Adds "Maybe" to current tree name
[4] Adds "No" to current tree name`;
/*
Edge Annotation Tool
Easily label edge tracings with a single key stroke.
webknossos.apiReady(2).then(async (api) => {
console.log("starting jumpy queries");
window.collection = [];
window.starter = [];
window.taskCounter = 0;
window.done = false;
api.utils.showToast("info", 'Press "7" to automatically place a comment for unsolved tracing (means: mistracing, glia, unsure) and "9" to finish and get next task', 6000);
async function createNodeOverwrite(store, call, action) {
const taskCounterHere = window.taskCounter;
call(action);
webknossos.apiReady(2).then(async (api) => {
console.log("starting jumpy queries");
window.collection = [];
window.starter = [];
window.taskCounter = 0;
window.done = false;
api.utils.showToast("info", 'Press "7" to automatically place a comment for unsolved tracing (means: mistracing, glia, unsure) and "9" to finish and get next task', 6000);
async function createNodeOverwrite(store, call, action) {
const taskCounterHere = window.taskCounter;
call(action);
webknossos.apiReady(2).then(async (api) => {
console.log("starting spine task");
window.taskID = 0;
window.done = [];
window.done[window.taskID] = false;
api.utils.showToast("info", 'Press "7" to automatically place a comment for unsolved tracing (means: mistracing, glia, unsure) and "9" to finish and get next task', 3000);
async function wKReadyOverwrite(store, call, action) {
window.taskID += 1;
const taskIDhere = window.taskID;
window.done[taskIDhere] = false;
@heikowissler
heikowissler / settings.json
Created May 22, 2017 13:49
settings.json example
{
"name": "2012-09-28_ex145_07x2_ROI2017",
"scale": [11.24, 11.24, 28],
"priority": 0,
"layers": [
{
"name": "color",
"typ": "color",
"class": "uint8",
"resolutions": [