-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcover-param-class.Rd
executable file
·61 lines (51 loc) · 1.83 KB
/
cover-param-class.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/S3Cover-Param.R
\name{Cover-Param}
\alias{Cover-Param}
\alias{ALL}
\alias{ANY}
\title{PARAM object class constructor}
\usage{
ALL()
ANY()
}
\value{
Param object
}
\description{
This class constructor is used to create instances of PARAM object
to be used in GMQL cover method
}
\details{
\itemize{
\item{ALL: It represents the number of samples in the input dataset.}
\item{ANY: It represents any amount of overlapping regions to be
considered.}
}
}
\examples{
## This statement initializes and runs the GMQL server for local execution
## and creation of results on disk. Then, with system.file() it defines
## the path to the file "DATASET" in the subdirectory "example"
## of the package "RGMQL" and opens such file as a GMQL dataset named "exp"
## using CustomParser
init_gmql()
test_path <- system.file("example", "DATASET", package = "RGMQL")
exp = read_gmql(test_path)
## The following statement produces an output dataset with a single
## output sample. The COVER operation considers all areas defined by
## a minimum of two overlapping regions in the input samples,
## up to maximum amount of overlapping regions equal to the number
## of input samples.
res = cover(exp, 2, ALL())
## The following statement produces an output dataset with a single
## output sample. The COVER operation considers all areas defined by
## a minimum of two overlapping regions in the input samples,
## up to any amount of overlapping regions.
res = cover(exp, 2, ANY())
## The following statement produces an output dataset with a single
## output sample. The COVER operation considers all areas defined by
## minimum of overlapping regions in the input samples equal to half of
## the number of input samples, up to any amount of overlapping regions.
res = cover(exp, ALL()/2, ANY())
}