File: NAMESPACE

package info (click to toggle)
r-bioc-s4arrays 1.6.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 476 kB
  • sloc: ansic: 730; makefile: 2
file content (221 lines) | stat: -rw-r--r-- 4,695 bytes parent folder | download
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
useDynLib(S4Arrays)

import(methods)
importFrom(stats, setNames)
importClassFrom(Matrix, CsparseMatrix, dgCMatrix, lgCMatrix, ngCMatrix,
                        RsparseMatrix, dgRMatrix, lgRMatrix, ngRMatrix,
                        TsparseMatrix, dgTMatrix, lgTMatrix, ngTMatrix)

importFrom(crayon, make_style)
importFrom(abind, abind)

import(BiocGenerics)
import(S4Vectors)
import(IRanges)


### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export S4 classes
###

exportClasses(
    ## Array-class.R:
    Array,

    ## ArrayGrid-class.R:
    ArrayViewport, DummyArrayViewport, SafeArrayViewport,
    ArrayGrid, DummyArrayGrid, ArbitraryArrayGrid, RegularArrayGrid
)


### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export S3 methods
###

S3method(aperm, DummyArrayGrid)
S3method(aperm, ArbitraryArrayGrid)
S3method(aperm, RegularArrayGrid)

S3method(as.array, Array)

S3method(as.character, Array)
S3method(as.character, ArrayGrid)

S3method(as.complex, Array)

S3method(as.data.frame, Array)

S3method(as.integer, Array)

S3method(as.logical, Array)

S3method(as.matrix, Array)

S3method(as.numeric, Array)

S3method(as.raw, Array)

S3method(as.vector, Array)

S3method(t, Array)

### 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(
    aperm.DummyArrayGrid,
    aperm.ArbitraryArrayGrid,
    aperm.RegularArrayGrid,

    as.array.Array,

    as.character.Array,
    as.character.ArrayGrid,

    as.complex.Array,

    as.data.frame.Array,

    as.integer.Array,

    as.logical.Array,

    as.matrix.Array,

    as.numeric.Array,

    as.raw.Array,

    as.vector.Array,

    t.Array
)


### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export S4 methods for generics not defined in S4Arrays
###

exportMethods(
    ## Methods for generics defined in the base package:
    length,
    dim, "dim<-", dimnames,
    drop,
    "[", "[<-",
    "[[",
    lengths,
    as.array, as.matrix, as.data.frame, as.vector,
    as.logical, as.integer, as.numeric, as.complex, as.character, as.raw,
    which,
    min, max, range, sum, prod, any, all,   # "Summary" group generic
    mean,
    anyNA,
    var,
    nchar,

    ## Methods for generics defined in the methods package:
    coerce, show,

    ## Methods for generics defined in the BiocGenerics package:
    cbind, rbind,
    t, aperm,
    dims,
    type,

    ## Methods for generics defined in the S4Vectors package:
    bindROWS,
    showAsCell, isEmpty,

    ## Methods for generics defined in the IRanges package:
    ranges, start, end, width
)


### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export non-generic functions
###

export(
    ## aperm2.R:
    aperm2,

    ## array_selection.R:
    Lindex2Mindex, Mindex2Lindex,

    ## ArrayGrid-class.R:
    DummyArrayViewport, ArrayViewport, makeNindexFromArrayViewport,
    DummyArrayGrid, ArbitraryArrayGrid, RegularArrayGrid,

    ## read_block.R:
    read_block
)


### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export S4 generics defined in S4Arrays, and corresponding methods
###

export(
    ## rowsum.R:
    rowsum,            # no rowsum() method defined in S4Arrays!
    colsum,

    ## abind.R:
    abind, arbind, acbind,

    ## dim-tuning-utils.R:
    tune_Array_dims,   # no tune_Array_dims() method defined in S4Arrays!

    ## Array-subsetting.R:
    subset_Array_by_logical_array,
    subset_Array_by_Lindex,
    subset_Array_by_Mindex,
    subset_Array_by_Nindex,

    ## Array-subassignment.R:
    subassign_Array_by_logical_array,
    subassign_Array_by_Lindex,
    subassign_Array_by_Mindex,
    subassign_Array_by_Nindex,

    ## ArrayGrid-class.R:
    refdim, maxlength, downsample,

    ## mapToGrid.R:
    mapToGrid, mapToRef,

    ## extract_array.R:
    extract_array,

    ## is_sparse.R:
    is_sparse,
    "is_sparse<-",     # no "is_sparse<-" method defined in S4Arrays!

    ## read_block.R:
    read_block_as_dense,

    ## write_block.R:
    write_block
)

### Same list as above.
exportMethods(
    colsum,
    abind, arbind, acbind,
    subset_Array_by_logical_array,
    subset_Array_by_Lindex,
    subset_Array_by_Mindex,
    subset_Array_by_Nindex,
    subassign_Array_by_logical_array,
    subassign_Array_by_Lindex,
    subassign_Array_by_Mindex,
    subassign_Array_by_Nindex,
    refdim, maxlength, downsample,
    mapToGrid, mapToRef,
    extract_array,
    is_sparse,
    read_block_as_dense,
    write_block
)