mirror of
https://github.com/johrpan/geposan.git
synced 2025-10-26 18:57:25 +01:00
adjacency: Fix bug in density computation
This commit is contained in:
parent
8aafcb7555
commit
207fc753a7
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ adjacency <- function(preset, progress = NULL) {
|
|||
cached("adjacency", c(species_ids, gene_ids, reference_gene_ids), {
|
||||
# Get the virtual distance value with the highest density.
|
||||
compute_densest_distance <- function(distances) {
|
||||
if (length(distances <= 2)) {
|
||||
if (length(distances) <= 2) {
|
||||
mean(distances)
|
||||
} else {
|
||||
d <- stats::density(distances)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue