upload_dataset: Upload dataset

Description Usage Arguments Details Value Examples

View source: R/web-services.R

Description

It uploads a folder (GMQL or not) containing sample files using the proper GMQL web service available on a remote server: a new dataset is created on remote repository

Usage

1
2
upload_dataset(url, datasetName, folderPath, schemaName = NULL,
  isGMQL = TRUE)

Arguments

url

string url of server: It must contain the server address and base url; service name is added automatically

datasetName

name of dataset to create in repository

folderPath

string local path to the folder containing the samples files

schemaName

string name of schema used to parse the samples; schemaName available are:

  • NARROWPEAK

  • BROADPEAK

  • VCF

  • BED

  • BEDGRAPH

if schemaName is NULL, it looks for a XML schema file to read in the folderPath

isGMQL

logical value indicating whether it is uploaded a GMQL dataset or not

Details

If no error occurs, it prints "Upload Complete", otherwise a specific error is printed

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 

## This statement defines the path to the folder "DATASET_GDM" in the 
## subdirectory "example" of the package "RGMQL"

test_path <- system.file("example", "DATASET_GDM", package = "RGMQL")

## Login to GMQL REST services suite at remote url

remote_url <- "http://www.gmql.eu/gmql-rest/"
login_gmql(remote_url)

## Upload of GMQL dataset with "dataset1" as name, without specifying any 
## schema 

upload_dataset(remote_url, "dataset1", folderPath = test_path)


## End(Not run)

RGMQL documentation built on Nov. 8, 2020, 5:59 p.m.