Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
krokicki committed Oct 14, 2021
1 parent b671f8a commit dd328ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

lb_id = np.unique(lb[lb != 0])
z, y, x = lb.shape
s=[0.92,0.92,0.84] ## voxel size in segmentation image
s=[0.92,0.92,0.84] ## TODO: get voxel size of segmentation image from original pixelResolution * s2 downsamplingFactors
count = pd.DataFrame(np.empty([len(lb_id), 0]), index=lb_id)

for f in fx:
Expand Down
5 changes: 3 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ workflow {
channels
)

// Take moving subpath (e.g. /c0/s2) extract the components (e.g. c0, s2) and add them to the end of the tuple
def extended_registration_results = registration_results | map {
// extract the channel from the registration results
def moving_subpath_components = it[3].tokenize('/')
Expand Down Expand Up @@ -569,7 +570,7 @@ workflow {
| concat(expected_segmentation_results)
| unique {
"${it[0]}"
} // [ stitched_n5_immage, labels_tiff_image]
} // [ stitched_n5_image, labels_tiff_image]

// prepare intensities measurements inputs
def expected_registrations_for_intensities = Channel.fromList(labeled_spots_acq_names)
Expand Down Expand Up @@ -608,7 +609,7 @@ workflow {

def intensities_inputs_for_fixed = expected_registrations_for_intensities
| filter {
it[9] == it[10] // filter the expected registration that have the same fixed and moving sourcec
it[9] == it[10] // filter the expected registration that have the same fixed and moving source
} | map {
[ it[0], it[7], it[8] ] // [ fixed_image, ch, deformation_scale ]
} | combine(labeled_acquisitions) | map {
Expand Down

0 comments on commit dd328ba

Please sign in to comment.