% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/web-services.R
\name{download_dataset}
\alias{download_dataset}
\alias{download_as_GRangesList}
\title{Download Dataset}
\usage{
download_dataset(url, datasetName, path = getwd())

download_as_GRangesList(url, datasetName)
}
\arguments{
\item{url}{string url of server: It must contain the server address 
and base url; service name is added automatically}

\item{datasetName}{string name of dataset to download}

\item{path}{string local path folder where to store dataset,
by default it is R working directory}
}
\value{
None

GRangesList containing all GMQL samples in dataset
}
\description{
It donwloads private dataset as zip file from remote repository to local 
path, or donwloads and saves it into R environment as GRangesList, using 
the proper GMQL web service available on a remote server
}
\details{
If error occurs, a specific error is printed
}
\examples{

## Download dataset in R working directory
## In this case we try to download a dataset of the user 
## (public datasets from remote repository cannot be downloaded)

\dontrun{

remote_url = "http://www.gmql.eu/gmql-rest/"
login_gmql(remote_url)
download_dataset(remote_url, "Example_Dataset_1", path = getwd())

## Create GRangesList from user dataset Example_Dataset1 got 
## from repository

download_as_GRangesList(remote_url, "Example_Dataset_1")
}

}