From e00b6602eb7de9bcc8b1b2a1846cbee17f841487 Mon Sep 17 00:00:00 2001
From: LTLA Lun A (2024).
wobbegong: Cheap-ass Range Requests on Assay Data.
-R package version 0.2.0.
+R package version 0.2.1.
Citation
@Manual{,
title = {wobbegong: Cheap-ass Range Requests on Assay Data},
author = {Aaron Lun},
year = {2024},
- note = {R package version 0.2.0},
+ note = {R package version 0.2.1},
}
diff --git a/index.html b/index.html
index fe16472..f8183d6 100644
--- a/index.html
+++ b/index.html
@@ -33,7 +33,7 @@
@@ -75,8 +75,12 @@ Quick startwobbegongify() function on our SummarizedExperiment of interest:
library(wobbegong)
-wobbegongify(my_se, "/my/server/directory")
This will dump a whole bunch of files at the specified directory, which can be accessed with wobbegong.js.
+wobbegongify(my_se, "/my/server/directory/se") +This will dump a whole bunch of files at the specified directory, which can be accessed with wobbegong.js. We can also directly wobbegongify()
a DataFrame:
+library(S4Vectors)
+my_df <- DataFrame(a = 1:5, b = LETTERS[1:5])
+wobbegongify(my_df, "/my/server/directory/df")
Check out the reference documentation for more details.
{DIR}
) has a number of files and subdirectories. The most important is {DIR}/summary.json
, which provides a summary of the SummarizedExperiment’s components. This will have the following properties:
object
: string, one of "summarized_experiment"
or "single_cell_experiment"
.row_count
: integer, the number of rows.column_count
: integer, the number of columns.assay_names
: array of strings, the assay names.
reduced_dimension_names
: array of strings, the names of the reduced dimensions. Only available for SingleCellExperiment
objects.reduced_dimension_names
: array of strings, the names of the reduced dimensions. Only available when object
is "single_cell_experiment"
.
If has_row_data = true
, a {DIR}/row_data
subdirectory will be present, containing the row annotations in the DataFrame directory layout.
If has_column_data = true
, a {DIR}/column_data
subdirectory will be present, containing the column annotations in the DataFrame directory layout.
summary.json
file and a content
file. The summary.json
file has the following properties:
object
: string, set to "data_frame"
.byte_order
: string, the byte order used for encoding.row_count
: integer, the number of rows in the DataFrame.byte_order
: string, the byte order used for encoding.row_count
: integer, the number of rows in the matrix.Dump a SummarizedExperiment to disk
Convert an object to the wobbegong format
wobbegongify.Rd
Dump a SummarizedExperiment (or one of its subclasses) to disk in the wobbegong format for easy HTTP range requests.
+Dump an object to disk in the wobbegong format for easy HTTP range requests.
wobbegongify(x, path, dense.assays = TRUE, sparse.assays = TRUE)
wobbegongify(x, path, ...)
+
+# S4 method for class 'SummarizedExperiment'
+wobbegongify(x, path, dense.assays = TRUE, sparse.assays = TRUE, ...)
+
+# S4 method for class 'SingleCellExperiment'
+wobbegongify(x, path, dense.assays = TRUE, sparse.assays = TRUE, ...)
+
+# S4 method for class 'DataFrame'
+wobbegongify(x, path, ...)
A SummarizedExperiment or an instance of one of its subclasses.
A supported R object, typically a SummarizedExperiment or an instance of one of its subclasses.
String containing a path to the directory to dump x
.
Additional arguments for specific methods.
Logical scalar indicating whether to save dense assays.
If FALSE
, dense assays are skipped.