Skip to content

Commit 262e88c

Browse files
committed
added latest user feedback and provided a link to live demo
1 parent 40f7f3b commit 262e88c

5 files changed

Lines changed: 22 additions & 17 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# SynAnno
22

3+
## Live Demo
4+
A demo is available [here](http://16.170.214.77/)
5+
6+
## Table of Contents
7+
38
SynAnno is a tool designed for proofreading and correcting synaptic polarity annotation from electron microscopy (EM) volumes - specifically the [H01](https://h01-release.storage.googleapis.com/landing.html) dataset. SynAnno is aimed for integration with CAVE (Connectome Annotation Versioning Engine).
49

510
- [Key Components and Subjects](#key-components-and-subjects)

synanno/static/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
.unsure,
2828
.card>.unsure {
29-
background: #d7dbdd;
29+
background: #f6f699;
3030
}
3131

3232
.card {

synanno/static/viewer.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ window.onload = async () => {
4141
processSwcFile(swcTxt, sectionArrays, activeNeuronSection, activeSynapseIDs);
4242

4343
if (synapsePointCloud) {
44-
updateLoadingBar(parseInt(synapsePointCloud.length / 3), activeSynapseIDs);
4544
processSynapseCloudData(synapsePointCloud, maxVolumeSize, activeSynapseIDs, initialLoad);
45+
updateLoadingBar(parseInt(synapsePointCloud.length / 3), activeSynapseIDs);
4646
} else {
4747
console.error("No synapse cloud path provided.");
4848
}
@@ -176,7 +176,7 @@ function processSynapseCloudData(data, maxVolumeSize, activeSynapseIDs, initialL
176176
colors[i * 4 + 3] = 1.0;
177177

178178
if (activeSynapseIDs.length > 0) {
179-
sizes[i] = activeSynapseIDs.includes(i) ? maxVolumeSize : 10;
179+
sizes[i] = activeSynapseIDs.includes(i) ? maxVolumeSize*maxVolumeSize : 10;
180180

181181
alphas[i] = window.synapseColors[i] === "green" || window.synapseColors[i] === "red" ? 0.8 : 0.4;
182182
alphas[i] = activeSynapseIDs.includes(i) ? 1.0 : 0.4;
@@ -613,16 +613,17 @@ function createMetadataElement(metadata, colors, activeNeuronSection) {
613613
}
614614

615615

616-
function updateLoadingBar(synapse_count, activeSynapseIDs) {
617-
if (!Array.isArray(activeSynapseIDs)) {
618-
console.error("activeSynapseIDs is not an array!", activeSynapseIDs);
619-
activeSynapseIDs = [];
616+
function updateLoadingBar(synapse_count) {
617+
if (!window.synapseColors || typeof window.synapseColors !== "object") {
618+
console.error("synapseColors is not defined or invalid!", window.synapseColors);
619+
return;
620620
}
621621

622-
if (activeSynapseIDs.length === 0) return;
622+
const highlightedSynapseCount = Object.values(window.synapseColors).filter(
623+
(color) => color === "green" || color === "red"
624+
).length;
623625

624-
const lowestDisplayedSectionIdx = Math.min(...activeSynapseIDs);
625-
const progressPercent = (lowestDisplayedSectionIdx / synapse_count) * 100;
626+
const progressPercent = (highlightedSynapseCount / synapse_count) * 100;
626627

627628
document.getElementById("loading_progress").style.width = `${progressPercent}%`;
628629
}

synanno/templates/export_annotate.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{% extends "templatebase.html" %} {% block help_content %}
22
<p class="text-muted">
33
The export annotations view lets you download the JSON file containing
4-
instance metadata by clicking `Download JSON`, redraw masks with the `Revise
5-
Dataset` workflow by clicking `Redraw Masks`, or start a new process by
4+
instance metadata by clicking `Download JSON`, redraw masks with the `Error Correction` workflow by clicking `Error Correction`, or start a new process by
65
clicking `Start New Process`.
76
</p>
87
{% endblock %} {% block content %}
@@ -24,7 +23,7 @@ <h2 class="mb-1">You finalized the proofreading of your data!</h2>
2423
type="button"
2524
class="btn btn-secondary ml-2"
2625
href="{{ url_for('manual_annotate.draw')}}"
27-
>Redraw Masks</a
26+
>Error Correction</a
2827
>
2928
<a
3029
id="resetButton"

synanno/templates/landingpage.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
{% block content %}
2828
<div class="container-fluid vh-100 w-75">
2929
<div class="pt-5 text-center">
30-
<h2 class="mb-2">Welcome to SynAnno Annotation Tool</h2>
30+
<h2 class="mb-2">Welcome to SynAnno</h2>
3131
<p>
32-
Choose your workflow: annotate a newly acquired dataset or proofread existing annotations.
32+
Choose your workflow: Proofread a newly acquired dataset or correct existing masks and markers.
3333
</p>
3434
</div>
3535
<div class="row justify-content-center h-50">
3636
<div class="col my-auto">
3737
<div class="card text-center border-primary">
38-
<h4 class="card-title">Revise Dataset</h4>
38+
<h4 class="card-title">Error Correction</h4>
3939
<div class="card-body">
4040
<a class="btn" href="{{ url_for('open_data.open_data_task', task='draw') }}">
4141
<h2><i class="fa fa-object-group fa-5x" style="color: rgb(80, 80, 80)"></i></h2>
@@ -45,7 +45,7 @@ <h2><i class="fa fa-object-group fa-5x" style="color: rgb(80, 80, 80)"></i></h2>
4545
</div>
4646
<div class="col my-auto">
4747
<div class="card text-center border-primary">
48-
<h4 class="card-title">Proofread Annotations</h4>
48+
<h4 class="card-title">Error Detection</h4>
4949
<div class="card-body">
5050
<a class="btn" href="{{ url_for('open_data.open_data_task', task='annotate') }}">
5151
<h2><i class="fa fa-arrows fa-5x" style="color: rgb(80, 80, 80)"></i></h2>

0 commit comments

Comments
 (0)