Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrunqin committed Oct 22, 2024
1 parent c1940ac commit 83440e8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ Meta
.vscode
debug
docs
/doc/
/Meta/
9 changes: 5 additions & 4 deletions R/spicy.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ spicy <- function(cells,

spicyResult = list()


comparisons <- data.frame(from = m1,
to = m2,
labels = labels)

## Find pairwise associations

Expand All @@ -185,16 +189,13 @@ spicy <- function(cells,
)
pairwiseAssoc <- as.data.frame(pairwiseAssoc)
pairwiseAssoc <- pairwiseAssoc[labels]

}


if (!is.null(alternateResult)) {
pairwiseAssoc <- alternateResult

comparisons <- data.frame(from = m1,
to = m2,
labels = labels)

# Checking if Kontextual result.
if (isTRUE(attr(alternateResult, "kontextualResult"))) {
pairwiseAssoc <- alternateResult
Expand Down
3 changes: 1 addition & 2 deletions vignettes/spicyR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ library(ggplot2)
library(SpatialExperiment)
library(SpatialDatasets)
library(imcRtools)
library(tidyverse)
library(dplyr)
library(survival)
library(ggsurvfit)
```


Expand Down

0 comments on commit 83440e8

Please sign in to comment.