... | ... |
@@ -3,29 +3,17 @@ |
3 | 3 |
\name{AGGREGATES-Object} |
4 | 4 |
\alias{AGGREGATES-Object} |
5 | 5 |
\alias{SUM} |
6 |
-\alias{AGGREGATES-Object} |
|
7 | 6 |
\alias{COUNT} |
8 |
-\alias{AGGREGATES-Object} |
|
9 | 7 |
\alias{COUNTSAMP} |
10 |
-\alias{AGGREGATES-Object} |
|
11 | 8 |
\alias{MIN} |
12 |
-\alias{AGGREGATES-Object} |
|
13 | 9 |
\alias{MAX} |
14 |
-\alias{AGGREGATES-Object} |
|
15 | 10 |
\alias{AVG} |
16 |
-\alias{AGGREGATES-Object} |
|
17 | 11 |
\alias{MEDIAN} |
18 |
-\alias{AGGREGATES-Object} |
|
19 | 12 |
\alias{STD} |
20 |
-\alias{AGGREGATES-Object} |
|
21 | 13 |
\alias{BAG} |
22 |
-\alias{AGGREGATES-Object} |
|
23 | 14 |
\alias{BAGD} |
24 |
-\alias{AGGREGATES-Object} |
|
25 | 15 |
\alias{Q1} |
26 |
-\alias{AGGREGATES-Object} |
|
27 | 16 |
\alias{Q2} |
28 |
-\alias{AGGREGATES-Object} |
|
29 | 17 |
\alias{Q3} |
30 | 18 |
\title{AGGREGATES object class constructor} |
31 | 19 |
\usage{ |
... | ... |
@@ -4,15 +4,10 @@ |
4 | 4 |
\alias{DISTAL-Object} |
5 | 5 |
\alias{DL} |
6 | 6 |
\alias{DG} |
7 |
-\alias{DISTAL-Object} |
|
8 | 7 |
\alias{DLE} |
9 |
-\alias{DISTAL-Object} |
|
10 | 8 |
\alias{DGE} |
11 |
-\alias{DISTAL-Object} |
|
12 | 9 |
\alias{MD} |
13 |
-\alias{DISTAL-Object} |
|
14 | 10 |
\alias{UP} |
15 |
-\alias{DISTAL-Object} |
|
16 | 11 |
\alias{DOWN} |
17 | 12 |
\title{DISTAL object class constructor} |
18 | 13 |
\usage{ |
... | ... |
@@ -46,7 +46,8 @@ from filtering. |
46 | 46 |
} |
47 | 47 |
\details{ |
48 | 48 |
This function works only with datatset or GRangesList all whose samples or |
49 |
-Granges have the same region coordinates (chr, ranges, strand) |
|
49 |
+Granges have the same region coordinates (chr, ranges, strand) ordered in |
|
50 |
+the same way for each sample |
|
50 | 51 |
|
51 | 52 |
In case of GRangesList data input, the function searches for metadata |
52 | 53 |
into metadata() function associated to GRangesList. |
... | ... |
@@ -61,10 +62,14 @@ test_path <- system.file("example", "DATASET", package = "RGMQL") |
61 | 62 |
filter_and_extract(test_path, region_attributes = c("pvalue", "peak")) |
62 | 63 |
|
63 | 64 |
## This statement imports a GMQL dataset as GRangesList and filters it |
64 |
-## including at output only "pvalue" and "peak" region attributes |
|
65 |
+## including at output only "pvalue" and "peak" region attributes, the sort |
|
66 |
+## function makes sure that the region coordinates (chr, ranges, strand) |
|
67 |
+## of all samples are ordered correctly |
|
68 |
+ |
|
65 | 69 |
|
66 | 70 |
grl = import_gmql(test_path, TRUE) |
67 |
-filter_and_extract(grl, region_attributes = c("pvalue", "peak")) |
|
71 |
+sorted_grl = sort(grl) |
|
72 |
+filter_and_extract(sorted_grl, region_attributes = c("pvalue", "peak")) |
|
68 | 73 |
|
69 | 74 |
|
70 | 75 |
} |
... | ... |
@@ -4,8 +4,8 @@ |
4 | 4 |
\alias{init_gmql} |
5 | 5 |
\title{Init GMQL server} |
6 | 6 |
\usage{ |
7 |
-init_gmql(output_format = "GTF", remote_processing = FALSE, url = NULL, |
|
8 |
- username = NULL, password = NULL) |
|
7 |
+init_gmql(output_format = "GTF", remote_processing = FALSE, |
|
8 |
+ url = NULL, username = NULL, password = NULL) |
|
9 | 9 |
} |
10 | 10 |
\arguments{ |
11 | 11 |
\item{output_format}{string that identifies the output format of all sample |
... | ... |
@@ -22,3 +22,12 @@ After logout the authentication token will be invalidated. |
22 | 22 |
The authentication token is removed from R Global environment. |
23 | 23 |
If error occurs, a specific error is printed |
24 | 24 |
} |
25 |
+\examples{ |
|
26 |
+ |
|
27 |
+## Login to GMQL REST services suite as guest, then logout |
|
28 |
+ |
|
29 |
+remote_url = "http://www.gmql.eu/gmql-rest/" |
|
30 |
+login_gmql(remote_url) |
|
31 |
+logout_gmql(remote_url) |
|
32 |
+ |
|
33 |
+} |
... | ... |
@@ -4,13 +4,13 @@ |
4 | 4 |
\name{map} |
5 | 5 |
\alias{map} |
6 | 6 |
\alias{map,GMQLDataset-method} |
7 |
-\alias{map} |
|
8 | 7 |
\alias{map-method} |
9 | 8 |
\title{Method map} |
10 | 9 |
\usage{ |
11 | 10 |
map(x, y, ...) |
12 | 11 |
|
13 |
-\S4method{map}{GMQLDataset}(x, y, ..., joinBy = conds(), count_name = "") |
|
12 |
+\S4method{map}{GMQLDataset}(x, y, ..., joinBy = conds(), |
|
13 |
+ count_name = "") |
|
14 | 14 |
} |
15 | 15 |
\arguments{ |
16 | 16 |
\item{x}{GMQLDataset class object} |
... | ... |
@@ -6,8 +6,9 @@ |
6 | 6 |
\alias{merge,GMQLDataset,GMQLDataset-method} |
7 | 7 |
\title{Method merge} |
8 | 8 |
\usage{ |
9 |
-\S4method{merge}{GMQLDataset,GMQLDataset}(x, y, genometric_predicate = NULL, |
|
10 |
- region_output = "CAT", joinBy = conds(), reg_attr = c("")) |
|
9 |
+\S4method{merge}{GMQLDataset,GMQLDataset}(x, y, |
|
10 |
+ genometric_predicate = NULL, region_output = "CAT", |
|
11 |
+ joinBy = conds(), reg_attr = c("")) |
|
11 | 12 |
} |
12 | 13 |
\arguments{ |
13 | 14 |
\item{x}{GMQLDataset class object} |