Skip to contents

Find generic URL to image stack for download from VFB based on VFB ID

Usage

vfb_download_url_from_vfbid(x)

Arguments

x

A VFB id (either numeric or character)

Value

A character vector containing download URLs

Details

This function expects the VFB id which has been designated for e.g. a GAL4 line image. You can find these on the VFB webpages as VFB_XXXXXXXX. In contrast to gmr_stack_urls_for_ids, this should work for the image data associated with any VFB id.

Examples

# \donttest{
vfb_download_url_from_vfbid("VFB_00029638")
#> [1] "http://www.virtualflybrain.org/data/VFB/i/0002/9638/volume.nrrd"
vfb_download_url_from_vfbid(29638)
#> [1] "http://www.virtualflybrain.org/data/VFB/i/0002/9638/volume.nrrd"

# find ids for a VT line
vtids=vfb_solr_query(filterquery="VFB_*",query="label:VT017929*")$short_form
# and then get the download URLs
vfb_download_url_from_vfbid(vtids)
#> character(0)

# find ids for a GMR line and then get the download URL
vfb_download_url_from_vfbid(gmr_vfbid("13E10"))
#> [1] "http://www.virtualflybrain.org/data/VFB/i/NA/NA/volume.nrrd"
# }