Skip to content

Commit 5cfdf78

Browse files
authored
Merge branch 'drieslab:dev' into dev
2 parents e0a4e7a + dcc6e4e commit 5cfdf78

96 files changed

Lines changed: 4561 additions & 2210 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/staging_branch_workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ jobs:
164164
quiet = FALSE,
165165
clean = FALSE,
166166
branch = "staging",
167-
type = c("tests"),
167+
type = c("tests", "examples", "vignettes"),
168168
combine_types = TRUE,
169-
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package", auth_token = Sys.getenv("GITHUB_PAT"))
169+
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
170170
)
171171
shell: Rscript {0}
172172
env:

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inst/doc
66
.git_old
77
.vscode/*
88
.Rprofile
9-
docs
109
codecov.yml
11-
pkgdown
1210
cell_rna*
11+
docs
12+
pkgdown

DESCRIPTION

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: GiottoClass
22
Title: Giotto Suite Object Definitions and Framework
3-
Version: 0.4.10
3+
Version: 0.5.0
44
Authors@R: c(
55
person("Ruben", "Dries", email = "rubendries@gmail.com",
66
role = c("aut", "cre"), comment = c(ORCID = "0000-0001-7650-7754")),
@@ -42,7 +42,8 @@ Imports:
4242
reticulate (>= 1.25),
4343
stats,
4444
terra (>= 1.8-21)
45-
Suggests:
45+
Suggests:
46+
GiottoDB,
4647
Biobase,
4748
chihaya,
4849
DelayedArray,
@@ -80,13 +81,20 @@ Suggests:
8081
Remotes: drieslab/GiottoUtils
8182
Config/testthat/edition: 3
8283
Collate:
84+
'classes-virtuals.R'
85+
'classes-utils.R'
86+
'classes-images.R'
87+
'classes-overlaps.R'
88+
'classes-points.R'
89+
'classes-polygons.R'
8390
'package_imports.R'
8491
'classes.R'
8592
'generics.R'
8693
'NN_network.R'
8794
'aggregate.R'
8895
'auxilliary.R'
8996
'buffer.R'
97+
'classes-binpoints.R'
9098
'combine_metadata.R'
9199
'slot_accessors.R'
92100
'create.R'

NAMESPACE

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ S3method(.DollarNames,processParam)
88
S3method(.DollarNames,spatEnrObj)
99
S3method(.DollarNames,spatLocsObj)
1010
S3method(.DollarNames,terraVectData)
11+
S3method(as.data.frame,overlapIntensityDT)
12+
S3method(as.data.frame,overlapPointDT)
1113
S3method(as.data.table,SpatVector)
14+
S3method(as.data.table,giottoBinPoints)
1215
S3method(as.data.table,giottoPoints)
1316
S3method(as.data.table,giottoPolygon)
1417
S3method(print,ghistory)
@@ -28,6 +31,7 @@ export(addNetworkLayout)
2831
export(addSpatialCentroidLocations)
2932
export(addSpatialCentroidLocationsLayer)
3033
export(add_img_array_alpha)
34+
export(aggregateFeatures)
3135
export(aggregateStacks)
3236
export(aggregateStacksExpression)
3337
export(aggregateStacksLocations)
@@ -72,6 +76,7 @@ export(createCellMetaObj)
7276
export(createDimObj)
7377
export(createExprObj)
7478
export(createFeatMetaObj)
79+
export(createGiottoBinPoints)
7580
export(createGiottoImage)
7681
export(createGiottoInstructions)
7782
export(createGiottoLargeImage)
@@ -292,11 +297,13 @@ exportClasses(exprObj)
292297
exportClasses(featMetaObj)
293298
exportClasses(featureNetwork)
294299
exportClasses(giotto)
300+
exportClasses(giottoBinPoints)
295301
exportClasses(giottoImage)
296302
exportClasses(giottoLargeImage)
297303
exportClasses(giottoPoints)
298304
exportClasses(giottoPolygon)
299305
exportClasses(nnNetObj)
306+
exportClasses(overlapPointDT)
300307
exportClasses(processParam)
301308
exportClasses(spatEnrObj)
302309
exportClasses(spatLocsObj)
@@ -349,6 +356,7 @@ exportMethods(ext)
349356
exportMethods(featIDs)
350357
exportMethods(featType)
351358
exportMethods(flip)
359+
exportMethods(head)
352360
exportMethods(hist)
353361
exportMethods(hull)
354362
exportMethods(instructions)
@@ -377,6 +385,7 @@ exportMethods(splitGeom)
377385
exportMethods(subset)
378386
exportMethods(symdif)
379387
exportMethods(t)
388+
exportMethods(tail)
380389
exportMethods(union)
381390
exportMethods(vect)
382391
exportMethods(wrap)
@@ -402,7 +411,16 @@ importFrom(methods,show)
402411
importFrom(methods,slot)
403412
importFrom(methods,slotNames)
404413
importFrom(methods,validObject)
405-
importFrom(utils,.DollarNames)
414+
importMethodsFrom(Matrix,"%*%")
415+
importMethodsFrom(Matrix,as.matrix)
416+
importMethodsFrom(Matrix,coerce)
417+
importMethodsFrom(Matrix,colMeans)
418+
importMethodsFrom(Matrix,colSums)
419+
importMethodsFrom(Matrix,diag)
420+
importMethodsFrom(Matrix,dim)
421+
importMethodsFrom(Matrix,rowMeans)
422+
importMethodsFrom(Matrix,rowSums)
423+
importMethodsFrom(Matrix,summary)
406424
importMethodsFrom(Matrix,t)
407425
importMethodsFrom(terra,"ext<-")
408426
importMethodsFrom(terra,as.data.frame)
@@ -415,6 +433,7 @@ importMethodsFrom(terra,density)
415433
importMethodsFrom(terra,erase)
416434
importMethodsFrom(terra,ext)
417435
importMethodsFrom(terra,flip)
436+
importMethodsFrom(terra,head)
418437
importMethodsFrom(terra,hist)
419438
importMethodsFrom(terra,hull)
420439
importMethodsFrom(terra,intersect)
@@ -427,6 +446,7 @@ importMethodsFrom(terra,snap)
427446
importMethodsFrom(terra,spin)
428447
importMethodsFrom(terra,symdif)
429448
importMethodsFrom(terra,t)
449+
importMethodsFrom(terra,tail)
430450
importMethodsFrom(terra,union)
431451
importMethodsFrom(terra,vect)
432452
importMethodsFrom(terra,wrap)

NEWS.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
# GiottoClass 0.5.0
2+
3+
## changes
4+
- added superseded note to `createGiottoImage()` documentation
5+
- `calculateOverlap()` and `overlapToMatrix()` param harmonization
6+
- refactor of `saveGiotto()` and `loadGiotto()`
7+
- code reorganization for `classes.R`
8+
9+
## new
10+
- `aggregateFeatures()` giotto object wrapper function for running `calculateOverlap()` and `overlapToMatrix()`
11+
- `overlapPointDT()` and `overlapIntensityDT()` classes to store overlaps relationships efficiently and help with aggregation pipeline
12+
- `giottoBinPoints` class for efficient binned spatial points
13+
- `rbind` method for `giottoPoints`
14+
15+
## bug fixes
16+
- `overlaps()` will now properly find image overlaps
17+
- fix a naming bug when exporting images during save
18+
19+
20+
21+
# GiottoClass 0.4.12 (2025/12/12)
22+
23+
## enhancements
24+
- automatic checking for `"count"` column in feature info
25+
26+
27+
## new
28+
- `misc` slot for storing unstructured data
29+
30+
## enhancements
31+
- escape hatch for gobject initialize checking. Set option `"giotto.init_check_severity"` to `"stop"` (default), or `"warning"` depending on needs.
32+
133
# GiottoClass 0.4.10 (2025/09/30)
234

335
## bug fixes

0 commit comments

Comments
 (0)