Skip to content

Commit bd4e032

Browse files
authored
multi-entity proximity and neighborhood analysis
2 parents 5c19f45 + 0243dd8 commit bd4e032

File tree

15 files changed

+831
-314
lines changed

15 files changed

+831
-314
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,21 +170,13 @@ jobs:
170170
# All Other dependencies
171171
- name: Install Suggested dependencies
172172
run: |
173-
# BiocManager::install(c('DelayedArray'))
174-
# BiocManager::install(c('DelayedMatrixStats'))
175-
# BiocManager::install(c('HDF5Array'))
176-
# remotes::install_github('bnprks/BPCells/[email protected]')
177-
# devtools::install_github("Huber-group-EMBL/Rarr")
178-
# devtools::install_github('BIMSBbioinfo/ImageArray')
179-
# devtools::install_github('BIMSBbioinfo/HDF5DataFrame')
180-
# devtools::install_github('BIMSBbioinfo/ZarrDataFrame')
181173
devtools::install_github('BIMSBbioinfo/VoltRonStore')
182174
install.packages("Seurat")
183175
BiocManager::install("glmGamPoi")
184176
install.packages('arrow')
185177
BiocManager::install('RBioFormats')
186178
BiocManager::install('ComplexHeatmap')
187-
devtools::install_github('dmcable/spacexr')
179+
BiocManager::install('spacexr')
188180
devtools::install_github('xuranw/MuSiC')
189181
BiocManager::install('SingleCellExperiment')
190182
BiocManager::install('SpatialExperiment')
@@ -195,7 +187,7 @@ jobs:
195187
devtools::install_github('vitessce/vitessceR')
196188
BiocManager::install('TOAST')
197189
devtools::install_github('xuranw/MuSiC')
198-
devtools::install_github('scverse/anndataR')
190+
BiocManager::install('anndataR')
199191
devtools::install_github('drieslab/Giotto')
200192
shell: Rscript {0}
201193

Dockerfile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ RUN R CMD javareconf -e
3939
USER rstudio
4040

4141
# Install Suggested dependencies
42-
# RUN R -e "BiocManager::install(c('DelayedArray'))"
43-
# RUN R -e "BiocManager::install(c('DelayedMatrixStats'))"
44-
# RUN R -e "BiocManager::install(c('HDF5Array'))"
45-
# RUN R -e "devtools::install_github('Huber-group-EMBL/Rarr')"
46-
# RUN R -e "options(timeout = 600000000); remotes::install_github('bnprks/BPCells/[email protected]')"
47-
# RUN R -e "options(timeout = 600000000); remotes::install_github('BIMSBbioinfo/ImageArray')"
48-
# RUN R -e "options(timeout = 600000000); remotes::install_github('BIMSBbioinfo/HDF5DataFrame')"
49-
# RUN R -e "options(timeout = 600000000); remotes::install_github('BIMSBbioinfo/ZarrDataFrame')"
5042
RUN R -e "options(timeout = 600000000); remotes::install_github('BIMSBbioinfo/VoltRonStore')"
5143
RUN R -e "options(timeout = 600000000); install.packages('Seurat')"
5244
RUN R -e "BiocManager::install('glmGamPoi')"
@@ -83,7 +75,8 @@ USER root
8375

8476
# Install spacexr
8577
RUN apt-get install -y libgsl-dev
86-
RUN R -e "options(timeout = 600000000); devtools::install_github(\"dmcable/spacexr\")"
78+
# RUN R -e "options(timeout = 600000000); devtools::install_github(\"dmcable/spacexr\")"
79+
RUN R -e "options(timeout = 600000000); BiocManager::install(\"spacexr\")"
8780

8881
# increase cache disk size for ImageMagick
8982
RUN sed -i 's/2GiB/10GiB/g' /etc/ImageMagick-6/policy.xml

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ importFrom(igraph,graph_from_adjacency_matrix)
269269
importFrom(igraph,induced_subgraph)
270270
importFrom(igraph,make_empty_graph)
271271
importFrom(igraph,neighborhood)
272+
importFrom(igraph,set_edge_attr)
272273
importFrom(igraph,simplify)
273274
importFrom(igraph,subgraph)
274275
importFrom(igraph,union)

R/objects.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,10 +879,11 @@ getBlockConnectivity <- function(object, assay) {
879879
split(names(components$membership), components$membership)
880880
)
881881
} else {
882-
assay_list <- c(assay_list, cur_assaynames)
882+
assay_list <- c(assay_list, split(cur_assaynames, cur_sections))
883883
}
884884
}
885-
885+
names(assay_list) <- NULL
886+
886887
# return list
887888
assay_list
888889
}
@@ -1082,7 +1083,8 @@ subsetVoltRon <- function(
10821083
# subset graphs
10831084
graph_list <- subset_graphs(
10841085
object,
1085-
spatialpoints = vrSpatialPoints(metadata, assay = vrAssayNames(object))
1086+
spatialpoints = vrSpatialPoints(metadata,
1087+
assay = vrAssayNames(object, assay = "all"))
10861088
)
10871089

10881090
# set VoltRon class

0 commit comments

Comments
 (0)