catmaid_parse_url: Parse a CATMAID URL to extract parameters including xyz...

View source: R/catmaid_urls.R

catmaid_parse_urlR Documentation

Parse a CATMAID URL to extract parameters including xyz location

Description

Parse a CATMAID URL to extract parameters including xyz location

Usage

catmaid_parse_url(x)

Arguments

x

One or more catmaid urls

Value

A data.frame containing parsed parameters. The columns will be named according to CATMAID's convention except for the x, y and z location (named as such rather than xp, yp, zp as returned by CATMAID).

Examples

u=paste0("https://neuropil.janelia.org/tracing/fafb/v12/?pid=1&zp=177100&",
  "yp=166068&xp=373086&tool=tracingtool&sid0=7&s0=1.000000")
catmaid_parse_url(u)

## Not run: 
cpu=catmaid_parse_url(u)
n=read.neuron.catmaid(cpu$active_skeleton_id)
plot3d(n)
spheres3d(xyzmatrix(cpu), r=1000, col='magenta')

## End(Not run)

jefferis/rcatmaid documentation built on Aug. 16, 2022, 8:52 p.m.