Searches atlas and returns the region name that matches the specified coordinates in the specified atlas. Coordinates are in mm in MNI space.

nv_atlas_voxel(
  x,
  y,
  z,
  collection_name,
  atlas_name,
  verbose = TRUE,
  secure = TRUE,
  ...
)

Arguments

x

x-coordinate to query

y

y-coordinate to query

z

z-coordinate to query

collection_name

Collection name of the atlas

atlas_name

Name of the atlas

verbose

print diagnostic messages

secure

passed to nv_base_url for https

...

additional options to pass to GET

Value

List of the result of the GET call and the content

Examples

res = nv_atlas_voxel(x = 30, y= 30, z = 30, collection_name = "Harvard-Oxford cortical and subcortical structural atlases", atlas_name = "HarvardOxford cort maxprob thr25 1mm")
#> GET command is:
#> Response [https://neurovault.org/api/atlases/atlas_query_voxel/?x=30&y=30&z=30&collection=Harvard-Oxford%20cortical%20and%20subcortical%20structural%20atlases&atlas=HarvardOxford%20cort%20maxprob%20thr25%201mm] #> Date: 2020-03-18 16:22 #> Status: 200 #> Content-Type: application/json; charset=utf-8 #> Size: 22 B #>
head(res$content$voxels)
#> NULL