diff --git a/docs/articles/getting-started-with-SEraster_files/figure-html/gexp-2.png b/docs/articles/getting-started-with-SEraster_files/figure-html/gexp-2.png deleted file mode 100644 index 59df76e..0000000 Binary files a/docs/articles/getting-started-with-SEraster_files/figure-html/gexp-2.png and /dev/null differ diff --git a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-10-1.png b/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-10-1.png deleted file mode 100644 index 82bcbd5..0000000 Binary files a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-10-1.png and /dev/null differ diff --git a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-12-1.png b/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-12-1.png deleted file mode 100644 index 57ae4d0..0000000 Binary files a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-12-1.png and /dev/null differ diff --git a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-13-1.png b/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-13-1.png deleted file mode 100644 index cd12a92..0000000 Binary files a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-13-1.png and /dev/null differ diff --git a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-16-1.png b/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-16-1.png deleted file mode 100644 index ccd1e59..0000000 Binary files a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-16-1.png and /dev/null differ diff --git a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-19-1.png b/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-19-1.png deleted file mode 100644 index d773db9..0000000 Binary files a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-19-1.png and /dev/null differ diff --git a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-21-1.png b/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-21-1.png deleted file mode 100644 index d8c9428..0000000 Binary files a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-21-1.png and /dev/null differ diff --git a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-22-1.png b/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-22-1.png deleted file mode 100644 index 7e3ef0f..0000000 Binary files a/docs/articles/getting-started-with-SEraster_files/figure-html/unnamed-chunk-22-1.png and /dev/null differ diff --git a/docs/reference/merfish_mousePOA.html b/docs/reference/merfish_mousePOA.html index df8dfa6..ca11643 100644 --- a/docs/reference/merfish_mousePOA.html +++ b/docs/reference/merfish_mousePOA.html @@ -1,7 +1,9 @@ -Preprocessed MERFISH dataset of the mouse preoptic area for a bregma -0.29 slice from a female naive animal (Animal ID = 1). — merfish_mousePOA • SErasterPreprocessed MERFISH dataset of the mouse preoptic area for a bregma -0.29 slice from a female naive animal (Animal ID = 1, Animal Sex = "Female", # Behavior = "Naive", Bregma = "-0.29"). — merfish_mousePOA • SEraster @@ -53,14 +55,15 @@

Preprocessed MERFISH dataset of the mouse preoptic area for a bregma -0.29 slice -from a female naive animal (Animal ID = 1).

+from a female naive animal (Animal ID = 1, Animal Sex = "Female", +# Behavior = "Naive", Bregma = "-0.29").

diff --git a/docs/reference/permutateByRotation.html b/docs/reference/permutateByRotation.html index f7de709..257733d 100644 --- a/docs/reference/permutateByRotation.html +++ b/docs/reference/permutateByRotation.html @@ -134,7 +134,8 @@

Examples
data("merfish_mousePOA")
 
 # create a list of 3 permutated datasets rotated at 0 (original), 120, and 240 degrees
-# this output can directly be fed into rasterizeGeneExpression or rasterizeCellType functions to rasterize all 3 permutations at once with the same pixel coordinates
+# this output can directly be fed into rasterizeGeneExpression or rasterizeCellType 
+# functions to rasterize all 3 permutations at once with the same pixel coordinates
 spe_list <- permutateByRotation(merfish_mousePOA, n_perm = 3)
 
 # create a list of 5 permutated datasets rotated at 0 (original), 72, 144, 216, 288 degrees
diff --git a/docs/reference/plotRaster.html b/docs/reference/plotRaster.html
index 7e3dcee..b161da4 100644
--- a/docs/reference/plotRaster.html
+++ b/docs/reference/plotRaster.html
@@ -148,34 +148,32 @@ 

Examples # rasterize gene expression out <- rasterizeGeneExpression(merfish_mousePOA, assay_name = "volnorm", fun = "mean") +#> Error in 0:nx: NA/NaN argument -# plot total rasterized gene expression per pixel (there is only one assay_name in out and default for feature_name argument is "sum"; therefore, these arguments are not specified) +# plot total rasterized gene expression per pixel (there is only one assay_name +# in out and default for feature_name argument is "sum"; therefore, these arguments +# are not specified) plotRaster(out, name = "total rasterized gexp") -#> Coordinate system already present. Adding new coordinate system, which will -#> replace the existing one. - +#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'assay': object 'out' not found # plot rasterized expression of a specific gene/feature per pixel plotRaster(out, feature_name = "Esr1", name = "Esr1") -#> Coordinate system already present. Adding new coordinate system, which will -#> replace the existing one. - +#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'assay': object 'out' not found # rasterize cell-type labels with user-defined resolution and hexagonal pixels out <- rasterizeCellType(merfish_mousePOA, col_name = "celltype", resolution = 50, square = FALSE, fun = "sum") +#> Error in seq.default(xlim[1] - dx, xlim[2] + 2 * dx, dx): 'from' must be a finite number -# plot total cell counts per pixel (there is only one assay_name in out and default for feature_name argument is "sum"; therefore, these arguments are not specified) -# here, let's use additional parameters for ggplot2::scale_fill_viridis_c so that it would have a different color scheme from gene expression plots +# plot total cell counts per pixel (there is only one assay_name in out and default +# for feature_name argument is "sum"; therefore, these arguments are not specified) +# here, let's use additional parameters for ggplot2::scale_fill_viridis_c so +# that it would have a different color scheme from gene expression plots plotRaster(out, name = "total cell counts", option = "inferno") -#> Coordinate system already present. Adding new coordinate system, which will -#> replace the existing one. - +#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'assay': object 'out' not found # plot specific cell type's cell counts per pixel plotRaster(out, feature_name = "Inhibitory", name = "Inhibitory neuron counts", option = "inferno") -#> Coordinate system already present. Adding new coordinate system, which will -#> replace the existing one. - +#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'assay': object 'out' not found

diff --git a/docs/reference/rasterizeCellType.html b/docs/reference/rasterizeCellType.html index a8f74bc..8202462 100644 --- a/docs/reference/rasterizeCellType.html +++ b/docs/reference/rasterizeCellType.html @@ -232,7 +232,8 @@

Examples data("merfish_mousePOA") -# check assay names for this particular SpatialExperiment object (you can see that cell-type labels are stored in the "celltype" column) +# check assay names for this particular SpatialExperiment object (you can see +# that cell-type labels are stored in the "celltype" column) head(colData(merfish_mousePOA)) #> DataFrame with 6 rows and 4 columns #> bregma celltype neurontype @@ -255,13 +256,17 @@

Examples# rasterize a single SpatialExperiment object # make sure to specify the col_name argument out <- rasterizeCellType(merfish_mousePOA, col_name = "celltype", fun = "sum") +#> Error in 0:nx: NA/NaN argument # rasterize a single SpatialExperiment object with user-defined resolution and hexagonal pixels out <- rasterizeCellType(merfish_mousePOA, col_name = "celltype", resolution = 200, square = FALSE, fun = "sum") +#> Error in seq.default(xlim[1] - dx, xlim[2] + 2 * dx, dx): 'from' must be a finite number -# rasterize a list of SpatialExperiment objects (in this case, permutated datasets with 3 different rotations) +# rasterize a list of SpatialExperiment objects (in this case, permutated datasets +# with 3 different rotations) spe_list <- permutateByRotation(merfish_mousePOA, n_perm = 3) out_list <- rasterizeCellType(spe_list, col_name = "celltype", resolution = 100, square = TRUE, fun = "sum") +#> Error in 0:nx: NA/NaN argument

diff --git a/docs/reference/rasterizeGeneExpression.html b/docs/reference/rasterizeGeneExpression.html index e4e1428..040649d 100644 --- a/docs/reference/rasterizeGeneExpression.html +++ b/docs/reference/rasterizeGeneExpression.html @@ -177,15 +177,20 @@

Examples#> [1] "volnorm" # rasterize a single SpatialExperiment object -# make sure to specify the assay_name argument when the input SpatialExperiment object has multiple assay names (assay_name is used here as an example) +# make sure to specify the assay_name argument when the input SpatialExperiment +# object has multiple assay names (assay_name is used here as an example) out <- rasterizeGeneExpression(merfish_mousePOA, assay_name = "volnorm", fun = "mean") +#> Error in 0:nx: NA/NaN argument # rasterize a single SpatialExperiment object with user-defined resolution and hexagonal pixels out <- rasterizeGeneExpression(merfish_mousePOA, assay_name = "volnorm", resolution = 200, square = FALSE, fun = "mean") +#> Error in seq.default(xlim[1] - dx, xlim[2] + 2 * dx, dx): 'from' must be a finite number -# rasterize a list of SpatialExperiment objects (in this case, permutated datasets with 3 different rotations) +# rasterize a list of SpatialExperiment objects (in this case, permutated datasets +# with 3 different rotations) spe_list <- permutateByRotation(merfish_mousePOA, n_perm = 3) out_list <- rasterizeGeneExpression(spe_list, assay_name = "volnorm", resolution = 100, square = TRUE, fun = "mean") +#> Error in 0:nx: NA/NaN argument diff --git a/docs/reference/rasterizeMatrix.html b/docs/reference/rasterizeMatrix.html index 7bc9450..16876a0 100644 --- a/docs/reference/rasterizeMatrix.html +++ b/docs/reference/rasterizeMatrix.html @@ -178,8 +178,10 @@

Examples)) # rasterize with mean as the aggregation function out_mean <- rasterizeMatrix(data, pos, bbox, resolution = resolution, fun = "mean") +#> Error in 0:nx: NA/NaN argument # rasterize with sum as the aggregation function out_sum <- rasterizeMatrix(data, pos, bbox, resolution = resolution, fun = "sum") +#> Error in 0:nx: NA/NaN argument # rasterize with user-defined resolution and hexagonal pixels # in this case, you need to update the bbox as well resolution <- 200 @@ -190,6 +192,7 @@

Examples ymax = ceiling(max(pos[,2])+resolution/2) )) out_hex <- rasterizeMatrix(data, pos, bbox, resolution = resolution, square = FALSE, fun = "mean") +#> Error in seq.default(xlim[1] - dx, xlim[2] + 2 * dx, dx): 'from' must be a finite number