-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNAMESPACE
129 lines (95 loc) · 2.8 KB
/
NAMESPACE
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
import(methods)
importFrom(stats, setNames)
importFrom(Matrix, sparseMatrix)
import(BiocGenerics)
import(S4Vectors)
import(IRanges)
import(graph) # for generic functions numNodes(), numEdges(), nodes(),
# edges(), degree(), adjacencyMatrix(), etc... (but ideally
# these should be defined in BiocGenerics or maybe in a
# GraphGenerics package)
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export S4 classes
###
exportClasses(
## AnnotatedIDs-class.R:
AnnotatedIDs,
## Graph-class.R:
Graph,
## NodesAndEdges-class.R:
NodesAndEdges,
## DGraph-class.R:
DGraph, DGraphNodes,
## UGraph-class.R:
UGraph
)
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export S3 methods
###
S3method(as.data.frame, Graph)
S3method(summary, DGraph)
S3method(summary, DGraphNodes)
### We also export them thru the export() directive so that (a) they can be
### called directly, (b) tab-completion on the name of the generic shows them,
### and (c) methods() doesn't asterisk them.
export(
as.data.frame.Graph,
summary.DGraph,
summary.DGraphNodes
)
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export S4 methods for generics not defined in this package
###
exportMethods(
## Methods for generics defined in the base package:
names, "names<-",
as.vector,
summary,
xtfrm,
## Methods for generics defined in the methods package:
show, coerce,
## Methods for generics defined in the BiocGenerics package:
as.data.frame, match, t,
## Methods for generics defined in the S4Vectors package:
showAsCell, vertical_slot_names,
elementMetadata, "elementMetadata<-",
pcompare, selfmatch,
from, to, nLnode, nRnode, nnode, countLnodeHits, countRnodeHits,
## Methods for generics defined in the graph package:
numNodes, numEdges, nodes, "nodes<-", edges, degree,
isDirected, edgemode, "edgemode<-", edgeMatrix,
adjacencyMatrix, connComp, isConnected
)
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export non-generic functions
###
export(
## AnnotatedIDs-class.R:
AnnotatedIDs,
## DGraph-class.R:
DGraph,
## DGraphNodes-class.R:
DGraphNodes,
## UGraph-class.R:
UGraph,
## makeDGraphFromGO.R:
makeDGraphFromGO
)
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export S4 generics defined in DelayedArray + export corresponding methods
###
export(
## AnnotatedIDs-class.R:
ID,
## Graph-class.R:
fromNode, toNode,
outDegree, inDegree,
dropNodes
)
### Exactly the same list as above.
exportMethods(
ID,
fromNode, toNode,
outDegree, inDegree,
dropNodes
)