Convert coordinates to tab separated values. Useful for copy/paste to Seatable
Source:R/utils.R
tabify_coords.Rd
tabify_coords
can be used to convert a comma separated
value on the clipboard e.g. from neuroglancer to tab separated values
needed by Seatable when coordinates are stored in 3 separate columns. It
also words for multiple coordinates.
Arguments
- xyz
3D Coordinates in any form compatible with
xyzmatrix
. When missing these are read from the clipboard.- FUN
a transformer function to apply to the incoming coordinates. As a convenience if
FUN
is missing andxyz
is a function then that function will be applied to coordinates on the clipboard.- write_clip
Whether to write the result to the clipboard. When missing (the default) will write to clipboard only if coordinates were read from the clipboard because
xyz=NULL
.