Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
df1f9a1
refactor: viz, proposal gen, gt gen functional
Feb 20, 2026
c0d0b36
bug: gt structure consistent
Feb 20, 2026
1001a5d
simplified
Feb 20, 2026
9905cce
bug: fixed gt generation
Feb 21, 2026
36d57ca
removed test printouts
Feb 21, 2026
62790fd
refactor: removed unnecesary routines
Feb 21, 2026
408719c
bug: fixed gt generation
Feb 21, 2026
efb46be
removed test block
Feb 21, 2026
863665e
refactor: updated proposal trimming
Feb 22, 2026
37a47db
remove old graph class
Feb 22, 2026
58b975a
refactor: updated doubles filtering
Feb 23, 2026
ed1ec39
updated doc
Feb 23, 2026
389a958
bug: path length
Feb 23, 2026
605b8e4
feat: leaf-branch proposals
Feb 23, 2026
9de1722
refactor: updated feature generation
Feb 24, 2026
141c943
refactor: updated feature extraction
Feb 26, 2026
8d464c9
refactor: updated subgraph sampler
Feb 27, 2026
7acfe7b
minor updates
Feb 27, 2026
d02317e
removed seeded sampler from train
Feb 27, 2026
88a4ff0
bug: subgraph sampler
Feb 27, 2026
887eaea
refactor: updated graph writer
Feb 28, 2026
3c3d720
refactor: soma reconnect and inference
Mar 3, 2026
cd9d38b
bug: soma loading
Mar 8, 2026
972af33
bug: branch trimming
Mar 10, 2026
4403611
lint proposal gen
Mar 10, 2026
858d383
remove test printouts
Mar 10, 2026
e6dc33d
bug: proposal near branching
Mar 12, 2026
8bcc16d
bug: leaf to leaf proposal gen
Mar 12, 2026
28faee8
refactor: updated add soma nodes
Mar 25, 2026
4a51d7d
refactor: integrate leaf-branch proposals in pipeline
Mar 25, 2026
5668821
bug: add soma nodes
Mar 25, 2026
6d42a85
refactor: renamed allow_nonleaf_proposals
Mar 26, 2026
1e00965
bug: variable name change
Mar 26, 2026
3210315
bug: graph label with singletons
Mar 26, 2026
79ae84c
bug: proposals with singleton
Mar 30, 2026
5dc26c8
proposal results saved
Mar 30, 2026
cb71f9a
bug: single proposal
Mar 30, 2026
d227190
bug: try-catch directionals
Mar 31, 2026
b212f02
bug: compute tangents
Mar 31, 2026
7279081
bug: empty path
Apr 1, 2026
892c900
debugging
Apr 1, 2026
f627e2f
refactor: swc write
Apr 1, 2026
56a4e03
bug: duplicate swc ids
Apr 2, 2026
ce8fa1b
minor upd
Apr 2, 2026
faa2eb9
bug: soma component swc id
Apr 2, 2026
3544832
Merge branch 'main' into feat-leafbranch-proposals
anna-grim Apr 2, 2026
fca524a
bug: zip file conflicts
Apr 2, 2026
1b247d4
merge conflict
Apr 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/neuron_proofreader/proposal_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def add_soma_nodes(self, soma_centroids):

# Add attributes
self.add_node(node_id)
self.component_id_to_swc_id[cnt + i] = "soma-component-{cnt}"
self.component_id_to_swc_id[cnt + i] = f"soma-component-{i}"
self.node_component_id[node_id] = cnt + i
self.node_radius[node_id] = 10
self.node_xyz[node_id] = xyz
Expand Down
8 changes: 5 additions & 3 deletions src/neuron_proofreader/skeleton_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,11 +356,12 @@ def create_job(batch, i):

# Submit last batch
if batch:
threads.append(create_job(batch, i + 1))
threads.append(create_job(list(batch), i + 1))

# Watch progress
pbar = tqdm(total=len(threads), desc="Write SWCs")
for _ in as_completed(threads):
for thread in as_completed(threads):
thread.result()
pbar.update(1)

def _batch_to_zipped_swcs(self, nodes_list, zip_path, preserve_radius):
Expand Down Expand Up @@ -423,7 +424,8 @@ def write_entry(node, parent):
write_entry(j, i)

# Finish
zip_writer.writestr(self.node_swc_id(i), text_buffer.getvalue())
filename = self.node_swc_id(root)
zip_writer.writestr(filename, text_buffer.getvalue())

# --- Helpers ---
def branching_nodes(self):
Expand Down
4 changes: 2 additions & 2 deletions src/neuron_proofreader/split_proofreading/split_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ def reconfigure_node_radius(self):

def save_connections(self, round_id=None):
"""
Writes the accepted proposals from the graph to a text file. Each line
contains the two swc ids as comma separated values.
Writes the accepted proposals to a text file. Each line contains the
two SWC IDs as comma separated values.
"""
suffix = f"-{round_id}" if round_id else ""
path = os.path.join(self.output_dir, f"connections{suffix}.txt")
Expand Down
Loading