... | ... |
@@ -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.43 |
|
4 |
+Version: 0.99.44 |
|
5 | 5 |
Author: Simone Pallotta, Marco Masseroli |
6 | 6 |
Maintainer: Simone Pallotta <simonepallotta@hotmail.com> |
7 | 7 |
Description: This package brings the GenoMetric Query Language (GMQL) |
... | ... |
@@ -155,9 +155,10 @@ gmql_join <- function(left_data, right_data, genometric_predicate, joinBy, |
155 | 155 |
else |
156 | 156 |
reg_attributes <- .jarray(reg_attributes, dispatch = TRUE) |
157 | 157 |
|
158 |
- ouput <- toupper(region_output) |
|
159 |
- if(ouput %in% c("CAT","INT")) |
|
160 |
- stop("reg_attributes is defined: output cannot be INT or CAT") |
|
158 |
+ if(is.null(genometric_predicate) && length(reg_attributes)) |
|
159 |
+ if(ouput %in% c("CAT","INT")) |
|
160 |
+ stop("Both reg_attributes and genometric_predicate are defined: |
|
161 |
+ output cannot be INT or CAT") |
|
161 | 162 |
} |
162 | 163 |
else |
163 | 164 |
reg_attributes <- .jnull("java/lang/String") |
... | ... |
@@ -168,6 +169,7 @@ gmql_join <- function(left_data, right_data, genometric_predicate, joinBy, |
168 | 169 |
stop("region_output must be cat, left, right, right_dist, left_dist |
169 | 170 |
or int (intersection)") |
170 | 171 |
|
172 |
+ |
|
171 | 173 |
WrappeR <- J("it/polimi/genomics/r/Wrapper") |
172 | 174 |
response <- WrappeR$join(genomatrix, join_matrix, ouput,reg_attributes, |
173 | 175 |
left_data, right_data) |
... | ... |
@@ -47,9 +47,14 @@ execute <- function() |
47 | 47 |
{ |
48 | 48 |
if(remote_proc) |
49 | 49 |
{ |
50 |
+ isGTF <- FALSE |
|
51 |
+ outformat <- WrappeR$outputMaterialize() |
|
52 |
+ if(identical(outformat, "gtf")) |
|
53 |
+ isGTF <- TRUE |
|
54 |
+ |
|
50 | 55 |
url <- WrappeR$get_url() |
51 | 56 |
.download_or_upload() |
52 |
- res <- serialize_query(url,FALSE,val) |
|
57 |
+ res <- serialize_query(url,isGTF,val) |
|
53 | 58 |
} |
54 | 59 |
} |
55 | 60 |
} |