-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
…specification 11 automate spatial feature specification
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Type: Package | ||
Package: SpaceMarkers | ||
Title: Spatial Interaction Markers | ||
Version: 0.99.8 | ||
Version: 1.11.1 | ||
Authors@R: c( | ||
person(given = "Atul", family = "Deshpande", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID="0000-0001-5144-6924")), | ||
person(given = "Ludmila", family = "Danilova", email = "[email protected]", role = "ctb"), | ||
|
@@ -54,5 +54,5 @@ Config/testthat/edition: 3 | |
Encoding: UTF-8 | ||
LazyData: false | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.3.1 | ||
RoxygenNote: 7.3.2 | ||
License: MIT + file LICENSE |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# SoaceMarkers development version | ||
|
||
* `getSpatialFeatures`: add default method to infer the object passed to it. | ||
|
||
# SpaceMarkers 0.1.0 | ||
|
||
* Added a `NEWS.md` file to track changes to the package. |
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from bayestme import data, synthetic_data | ||
stdata = synthetic_data.generate_demo_dataset() | ||
|
||
from bayestme import deconvolution | ||
from bayestme.common import InferenceType | ||
best_spatial_smoothing_parameter = 1000.0 | ||
best_n_components = 3 | ||
|
||
deconvolution_result = deconvolution.sample_from_posterior( | ||
data=stdata, | ||
n_components=best_n_components, | ||
spatial_smoothing_parameter=best_spatial_smoothing_parameter, | ||
n_samples=100, | ||
n_svi_steps=10_000, | ||
expression_truth=None, | ||
use_spatial_guide=True) | ||
|
||
data.add_deconvolution_results_to_dataset( | ||
stdata, deconvolution_result | ||
) | ||
|
||
stdata.save('btme.h5ad') |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
library(CoGAPS) | ||
data(GIST) | ||
cg <- CoGAPS(GIST.data_frame, nPatterns = 3 , nIterations = 100) | ||
saveRDS(cg, "cogaps.rds") | ||
|