TileDBGroup | R Documentation |
Base class for interacting with TileDB groups
Upon initialization a new group is created if one does not already exist at
the specified uri
.
A named list of group members.
The array object.
tiledbsc::TileDBObject
-> TileDBGroup
members
Named list of members in the group
new()
Create a new TileDBGroup object.
TileDBGroup$new(uri, verbose = TRUE, config = NULL, ctx = NULL)
uri
TileDB array URI
verbose
Print status messages
config
optional configuration
ctx
optional tiledb context
print()
Print summary of the group.
TileDBGroup$print()
group_exists()
Check if the group exists.
TileDBGroup$group_exists()
TRUE if the group exists, FALSE otherwise.
tiledb_group()
Return a tiledb_group
object
TileDBGroup$tiledb_group(...)
...
Optional arguments to pass to tiledb::tiledb_array()
A tiledb::tiledb_group
object.
list_objects()
List the TileDB objects within the group.
TileDBGroup$list_objects(type = NULL)
type
The type of object to list, either "ARRAY"
, or "GROUP"
.
By default all object types are listed.
A data.frame
with columns URI
and TYPE
.
list_object_uris()
List URIs for TileDB objects within the group.
TileDBGroup$list_object_uris(type = NULL, prefix = NULL)
type
The type of object to list, either "ARRAY"
, or "GROUP"
.
By default all object types are listed.
prefix
Filter URIs whose basename contain an optional prefix.
A character vector of object URIs with names corresponding to the basename of the object.
add_member()
Add new member to the group.
TileDBGroup$add_member(object, name = NULL, relative = NULL)
object
The TileDBArray
or TileDBGroup
object to add.
name
The name to use for the member. By default the base name of the object's URI is used.
relative
A logical value indicating whether the new member's URI is relative to the group's URI.
remove_member()
Remove member from the group.
TileDBGroup$remove_member(name)
name
The name of the member to remove.
count_members()
Count the number of members in the group.
TileDBGroup$count_members()
Integer count of members in the group.
list_members()
List the members of the group.
TileDBGroup$list_members(type = NULL)
type
The type of member to list, either "ARRAY"
, or "GROUP"
.
By default all member types are listed.
A data.frame
with columns URI
, TYPE
, and NAME
.
list_member_uris()
List URIs for group members
TileDBGroup$list_member_uris(type = NULL, prefix = NULL)
type
The type of member to list, either "ARRAY"
, or "GROUP"
.
By default all member types are listed.
prefix
Filter for members whose name contains an optional prefix.
A character vector of member URIs, named for the group member
get_members()
Retrieve arrays within the group that meet the specified criteria.
TileDBGroup$get_members(type = NULL, prefix = NULL)
type
The type of group members to list, either "ARRAY"
, or
"GROUP"
.
prefix
String prefix to filter the member names.
get_member()
Retrieve a group member.
TileDBGroup$get_member(name)
name
The name of the array to retrieve.
get_metadata()
Retrieve metadata from the TileDB group.
TileDBGroup$get_metadata(key = NULL, prefix = NULL)
key
The name of the metadata attribute to retrieve.
prefix
Filter metadata using an optional prefix. Ignored if key
is not NULL.
A list of metadata values.
add_metadata()
Add list of metadata to the TileDB group.
TileDBGroup$add_metadata(metadata, prefix = "")
metadata
Named list of metadata to add.
prefix
Optional prefix to add to the metadata attribute names.
NULL
clone()
The objects of this class are cloneable with this method.
TileDBGroup$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.