Skip to content
Snippets Groups Projects
Commit 27cf4bff authored by Constantin Pape's avatar Constantin Pape
Browse files

Update neuron trace extraction

parent c4ff87ad
Branches segmentation_sources
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ from glob import glob ...@@ -4,7 +4,7 @@ from glob import glob
import numpy as np import numpy as np
import h5py import h5py
import elf.skeletion.io as skio import elf.skeleton.io as skio
from skimage.draw import circle from skimage.draw import circle
from pybdv import convert_to_bdv from pybdv import convert_to_bdv
...@@ -96,7 +96,7 @@ def make_seg_and_scale(traces, reference_vol_path, reference_scale, seg_out_path ...@@ -96,7 +96,7 @@ def make_seg_and_scale(traces, reference_vol_path, reference_scale, seg_out_path
res = get_resolution(reference_scale) res = get_resolution(reference_scale)
# the circle radius we write out # the circle radius we write out
radius = 10 radius = 5
max_id = np.iinfo('int16').max max_id = np.iinfo('int16').max
......
...@@ -9,7 +9,7 @@ def run_workflow(): ...@@ -9,7 +9,7 @@ def run_workflow():
target = 'slurm' target = 'slurm'
use_curated_affs = False use_curated_affs = False
use_lmc = False use_lmc = True
workflow(use_curated_affs, use_lmc, target) workflow(use_curated_affs, use_lmc, target)
......
...@@ -3,13 +3,13 @@ from scripts.export import extract_neuron_traces ...@@ -3,13 +3,13 @@ from scripts.export import extract_neuron_traces
def export_test_traces(): def export_test_traces():
folder = '' folder = '/g/kreshuk/data/arendt/platyneris_v1/tracings'
ref_path = '' ref_path = '../data/rawdata/sbem-6dpf-1-whole-raw.h5'
seg_out_path = '' seg_out_path = './sbem-6dpf-1-whole-traces.xml'
table_out_path = '' table_out_path = './sbem-6dpf-1-whole-traces-table-default.xml'
tmp_folder = './tmp_traces' tmp_folder = './tmp_traces'
extract_neuron_traces(folder, ref_path, seg_out_path, table_out_path, tmp_folder) extract_neuron_traces(folder, ref_path, seg_out_path, table_out_path, tmp_folder)
if __name__ == '__main__': if __name__ == '__main__':
export_test_traces export_test_traces()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment