AnnotationHub (version 2.4.2)

serve: Serve an AnnotationHub resource

Description

Serves an AnnotationHub resource for download.

Usage

serve(path)

Arguments

path
A relative path to the resource to be downloaded.

Value

  • A WebResult object describing the file to be returned. If the file cannot be found, the content of this object will be an empty JSON array ([]).

Endpoint

/ah/resources/

Example: http://annotationhub.bioconductor.org/ah/2.13/1.3.1/resources/goldenpath/xenTro3/database/tRNAs_0.0.1.RData

Details

This function is normally run within the context of FastRWeb which sets the variable 'root' to the root FastRWeb directory (usually /var/FastRWeb).

Examples

Run this code
root <- "/var/FastRWeb"
AnnotationHubServer:::serve("goldenpath/xenTro3/database/tRNAs_0.0.1.RData")

Run the code above in your browser using DataCamp Workspace