... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Package: RGMQL |
2 | 2 |
Type: Package |
3 | 3 |
Title: GenoMetric Query Language for R/Bioconductor |
4 |
-Version: 0.99.22 |
|
4 |
+Version: 0.99.23 |
|
5 | 5 |
Author: Simone Pallotta, Marco Masseroli |
6 | 6 |
Maintainer: Simone Pallotta <simonepallotta@hotmail.com> |
7 | 7 |
Description: This RGMQL package brings the GenoMetric Query Language (GMQL) functionalities |
... | ... |
@@ -55,7 +55,7 @@ LazyData: true |
55 | 55 |
RoxygenNote: 6.0.1 |
56 | 56 |
Imports: httr, rJava,GenomicRanges, rtracklayer, data.table, utils, plyr, xml2, |
57 | 57 |
methods, S4Vectors, dplyr, stats |
58 |
-Depends: R(<= 3.4.2) |
|
58 |
+Depends: R(>= 3.4.2) |
|
59 | 59 |
VignetteBuilder: knitr |
60 | 60 |
Suggests: BiocStyle, knitr, rmarkdown |
61 | 61 |
biocViews: Software,Infrastructure,DataImport,Network |
... | ... |
@@ -114,8 +114,8 @@ init_gmql <- function(output_format = "gtf", remote_processing = FALSE, |
114 | 114 |
#' r = read_dataset(test_path,"ANNParser") |
115 | 115 |
#' |
116 | 116 |
#' ## read remote public dataset stored into GMQL system repository |
117 |
-#' init_gmql() |
|
118 |
-#' r = read_dataset("public.HG19_TCGA_dnaseq",is_local = FALSE) |
|
117 |
+#' |
|
118 |
+#' r2 = read_dataset("public.HG19_TCGA_dnaseq",is_local = FALSE) |
|
119 | 119 |
#' |
120 | 120 |
#' } |
121 | 121 |
#' |
... | ... |
@@ -18,7 +18,7 @@ if(getRversion() >= "3.1.0") |
18 | 18 |
#' @param username string name used during signup |
19 | 19 |
#' @param password string password used during signup |
20 | 20 |
#' |
21 |
-#' @seealso \code{\link{register_gmql}} \code{\link{logout_gmql}} |
|
21 |
+#' @seealso \code{\link{logout_gmql}} |
|
22 | 22 |
#' |
23 | 23 |
#' @details |
24 | 24 |
#' if both username and password are NULL you will be logged as guest |
... | ... |
@@ -84,7 +84,7 @@ login_gmql <- function(url, username = NULL, password = NULL) |
84 | 84 |
#' @param url string url of server: It must contain the server address |
85 | 85 |
#' and base url; service name is added automatically |
86 | 86 |
#' |
87 |
-#' @seealso \code{\link{register_gmql}} \code{\link{login_gmql}} |
|
87 |
+#' @seealso \code{\link{login_gmql}} |
|
88 | 88 |
#' |
89 | 89 |
#' @details |
90 | 90 |
#' After logout the authentication token will be invalidated. |
... | ... |
@@ -120,65 +120,5 @@ logout_gmql <- function(url) |
120 | 120 |
} |
121 | 121 |
} |
122 | 122 |
|
123 |
-#' Sign up to GMQL |
|
124 |
-#' |
|
125 |
-#' Sign up to GMQL REST services suite |
|
126 |
-#' using the proper GMQL web service available on a remote server |
|
127 |
-#' |
|
128 |
-#' @import httr |
|
129 |
-#' |
|
130 |
-#' @param url string url of server: It must contain the server address |
|
131 |
-#' and base url; service name will be added automatically |
|
132 |
-#' @param name string name of the user (can contain space) |
|
133 |
-#' @param lastname string last name of the user (can contain space) |
|
134 |
-#' @param mail string email (as spacified in RFC format) |
|
135 |
-#' @param username string name you want to authenticate with |
|
136 |
-#' @param password string password you want to authenticate with |
|
137 |
-#' |
|
138 |
-#' @seealso \code{\link{login_gmql}} \code{\link{logout_gmql}} |
|
139 |
-#' |
|
140 |
-#' @details |
|
141 |
-#' After registration you receive an authentication token, |
|
142 |
-#' (i.e you are logged in after sing up, no need to subsequent |
|
143 |
-#' calling of login function) |
|
144 |
-#' As token remains vaild on server (until the next login / registration) |
|
145 |
-#' a user can safely use a token for a previous session as a convenience, |
|
146 |
-#' this token is saved in Global environment to perform subsequent REST call |
|
147 |
-#' even on complete R restart (if is environemnt has been saved, of course ...) |
|
148 |
-#' If error occures a specific error is printed |
|
149 |
-#' |
|
150 |
-#' @return None |
|
151 |
-#' |
|
152 |
-#' @examples |
|
153 |
-#' |
|
154 |
-#' ### this user already exist, it's a test account, don't use it!!! |
|
155 |
-#' |
|
156 |
-#' remote_url = "http://130.186.13.219/gmql-rest" |
|
157 |
-#' register_gmql(remote_url, "jonh", "Doe", "jonh@doe.com", "JD", "JD46") |
|
158 |
-#' |
|
159 |
-#' @export |
|
160 |
-#' |
|
161 |
-register_gmql <- function(url, name, lastname, mail, username, password) |
|
162 |
-{ |
|
163 |
- info <- list('firstName'=name, |
|
164 |
- 'lastName'=lastname, |
|
165 |
- 'username'=username, |
|
166 |
- 'email'=mail, |
|
167 |
- 'password'=password) |
|
168 |
- URL <- paste0(url,"/register") |
|
169 |
- h <- c('Accept' = 'Application/json','Content-Type' = 'Application/json') |
|
170 |
- req <- httr::POST(URL,body = info ,httr::add_headers(h),encode = "json") |
|
171 |
- |
|
172 |
- content <- httr::content(req) |
|
173 |
- |
|
174 |
- if(req$status_code !=200) |
|
175 |
- stop(content) |
|
176 |
- else |
|
177 |
- { |
|
178 |
- assign("authToken",content$authToken,.GlobalEnv) |
|
179 |
- print(paste("your Token is",authToken)) |
|
180 |
- } |
|
181 |
-} |
|
182 |
- |
|
183 | 123 |
|
184 | 124 |
|
... | ... |
@@ -72,7 +72,7 @@ show_datasets_list <- function(url) |
72 | 72 |
#' |
73 | 73 |
#' remote_url <- "http://130.186.13.219/gmql-rest" |
74 | 74 |
#' login_gmql(remote_url) |
75 |
-#' list <- show_samples_list(remote_url, "public.GRCh38_ENCODE_BROAD_MAY_2017") |
|
75 |
+#' list <- show_samples_list(remote_url, "public.HG19_BED_ANNOTATION") |
|
76 | 76 |
#' |
77 | 77 |
#' @export |
78 | 78 |
#' |
... | ... |
@@ -118,7 +118,7 @@ show_samples_list <- function(url,datasetName) |
118 | 118 |
#' ### show schema of public dataset |
119 | 119 |
#' remote_url <- "http://130.186.13.219/gmql-rest" |
120 | 120 |
#' login_gmql(remote_url) |
121 |
-#' list <- show_schema(remote_url, "public.GRCh38_ENCODE_BROAD_MAY_2017") |
|
121 |
+#' list <- show_schema(remote_url, "public.HG19_BED_ANNOTATION") |
|
122 | 122 |
#' |
123 | 123 |
#' @export |
124 | 124 |
#' |
... | ... |
@@ -58,8 +58,8 @@ test_path <- system.file("example", "DATASET", package = "RGMQL") |
58 | 58 |
r = read_dataset(test_path,"ANNParser") |
59 | 59 |
|
60 | 60 |
## read remote public dataset stored into GMQL system repository |
61 |
-init_gmql() |
|
62 |
-r = read_dataset("public.HG19_TCGA_dnaseq",is_local = FALSE) |
|
61 |
+ |
|
62 |
+r2 = read_dataset("public.HG19_TCGA_dnaseq",is_local = FALSE) |
|
63 | 63 |
|
64 | 64 |
} |
65 | 65 |
|
66 | 66 |
deleted file mode 100644 |
... | ... |
@@ -1,50 +0,0 @@ |
1 |
-% Generated by roxygen2: do not edit by hand |
|
2 |
-% Please edit documentation in R/authOp.R |
|
3 |
-\name{register_gmql} |
|
4 |
-\alias{register_gmql} |
|
5 |
-\title{Sign up to GMQL} |
|
6 |
-\usage{ |
|
7 |
-register_gmql(url, name, lastname, mail, username, password) |
|
8 |
-} |
|
9 |
-\arguments{ |
|
10 |
-\item{url}{string url of server: It must contain the server address |
|
11 |
-and base url; service name will be added automatically} |
|
12 |
- |
|
13 |
-\item{name}{string name of the user (can contain space)} |
|
14 |
- |
|
15 |
-\item{lastname}{string last name of the user (can contain space)} |
|
16 |
- |
|
17 |
-\item{mail}{string email (as spacified in RFC format)} |
|
18 |
- |
|
19 |
-\item{username}{string name you want to authenticate with} |
|
20 |
- |
|
21 |
-\item{password}{string password you want to authenticate with} |
|
22 |
-} |
|
23 |
-\value{ |
|
24 |
-None |
|
25 |
-} |
|
26 |
-\description{ |
|
27 |
-Sign up to GMQL REST services suite |
|
28 |
-using the proper GMQL web service available on a remote server |
|
29 |
-} |
|
30 |
-\details{ |
|
31 |
-After registration you receive an authentication token, |
|
32 |
-(i.e you are logged in after sing up, no need to subsequent |
|
33 |
-calling of login function) |
|
34 |
-As token remains vaild on server (until the next login / registration) |
|
35 |
-a user can safely use a token for a previous session as a convenience, |
|
36 |
-this token is saved in Global environment to perform subsequent REST call |
|
37 |
-even on complete R restart (if is environemnt has been saved, of course ...) |
|
38 |
-If error occures a specific error is printed |
|
39 |
-} |
|
40 |
-\examples{ |
|
41 |
- |
|
42 |
-### this user already exist, it's a test account, don't use it!!! |
|
43 |
- |
|
44 |
-remote_url = "http://130.186.13.219/gmql-rest" |
|
45 |
-register_gmql(remote_url, "jonh", "Doe", "jonh@doe.com", "JD", "JD46") |
|
46 |
- |
|
47 |
-} |
|
48 |
-\seealso{ |
|
49 |
-\code{\link{login_gmql}} \code{\link{logout_gmql}} |
|
50 |
-} |
... | ... |
@@ -35,6 +35,6 @@ If error occures a specific error is printed |
35 | 35 |
|
36 | 36 |
remote_url <- "http://130.186.13.219/gmql-rest" |
37 | 37 |
login_gmql(remote_url) |
38 |
-list <- show_samples_list(remote_url, "public.GRCh38_ENCODE_BROAD_MAY_2017") |
|
38 |
+list <- show_samples_list(remote_url, "public.HG19_BED_ANNOTATION") |
|
39 | 39 |
|
40 | 40 |
} |
... | ... |
@@ -35,6 +35,6 @@ If error occures a specific error is printed |
35 | 35 |
### show schema of public dataset |
36 | 36 |
remote_url <- "http://130.186.13.219/gmql-rest" |
37 | 37 |
login_gmql(remote_url) |
38 |
-list <- show_schema(remote_url, "public.GRCh38_ENCODE_BROAD_MAY_2017") |
|
38 |
+list <- show_schema(remote_url, "public.HG19_BED_ANNOTATION") |
|
39 | 39 |
|
40 | 40 |
} |