Changelog
Source:NEWS.md
fishr 0.3.0
Several new features including a L/R-side classifier, soma-position helpers and a unified xyz coordinate converter, plus DVID body lookup at points.
What’s Changed
- Add
fish_point_side()to predict the L/R/M side of points in fish2 space by applyingmirror_fish()and measuring the signed y displacement across the midline; supportsunits = "nm" / "raw" / "emraw" / "microns", a configurable midlinethresholdandrval = "side" / "distance". By @jefferis in https://github.com/flyconnectome/fishr/pull/4 - Add
fish_somapos()andfish_soma_side()for soma queries against fish2 metadata.fish_somapos()returns an Nx3 matrix of soma positions (preferringsomaLocation, falling back row-wise totosomaLocation) in the requested units;fish_soma_side()classifies the logical side of each body viaauto/instance(_L/_R/_M/_Usuffix) /position(fish_point_side()on the soma), withmanualreserved for a futuresomaSidecolumn. By @jefferis in https://github.com/flyconnectome/fishr/pull/4 - Add
fish_coords()as a single public converter between fish2’s voxel scales: nm, raw (the (16, 16, 15) nm grid stored in neuprint’ssomaLocationand accepted by the DVIDsegmentation/labelsendpoint), emraw (the (8, 8, 30) nm acquisition grid used in Clio / Neuroglancer URLs) and microns.as_character = TRUEreturns"x,y,z"strings vianat::xyzmatrix2str(). By @jefferis in https://github.com/flyconnectome/fishr/pull/7 - Add
fish_xyz2bodyid()to look up the segmentation body id at each 3D point viamalevnc::manc_xyz2bodyid(), returning character ids. Defaultunits = "emraw"matches the typical interactive case of pasting coordinates from a fish2 neuroglancer URL;raw,nmandmicronsare also accepted. By @jefferis in https://github.com/flyconnectome/fishr/pull/7 - Fix
fish_neuprint_meta(NULL)to return the same soma-related columns (somaLocation,nsoma,somaSide, …) asfish_neuprint_meta(ids)by passing the fullpossibleFieldslist toneuprintr::neuprint_get_meta()on the all-bodies code path. By @jefferis in https://github.com/flyconnectome/fishr/pull/4 - Refactor
fish_point_side()andfish_somapos()to delegate unit conversion tofish_coords()(and both gain"emraw"as aunitsvalue).fish_somapos()now returns matrices with natverse-standard uppercaseX/Y/Zcolumn names. By @jefferis in https://github.com/flyconnectome/fishr/pull/7
fishr 0.2.0
First versioned release with a NEWS file.
What’s Changed
- Add
fish_clio_annotations()to read live Clio body annotations for fish2 (wrapsmalevnc::manc_body_annotations()) by @jefferis in https://github.com/flyconnectome/fishr/pull/2 - Add
mirror_fish()and the underlyingfish2_mirror_regthin plate spline registration for mirroring across the fish2 midline. Ported from Philipp Schlegel’s navis-fishbrains landmarks;data-raw/fish2_mirror_reg.Rrecreates the registration from the upstream CSV. Verified againstnavis.mirror_brain(template = "Fish2", mirror_axis = "y")to sub-nanometre precision. By @jefferis in https://github.com/flyconnectome/fishr/pull/3 - Stylise the dataset name as lowercase
fish2throughout docs and titles - Doc polishing and pkgdown reference index cleanup