mirror of
https://github.com/johrpan/geposan.git
synced 2025-10-26 18:57:25 +01:00
Properly access distance data
This commit is contained in:
parent
c0a1d965d7
commit
21a5817988
5 changed files with 12 additions and 18 deletions
|
|
@ -2,9 +2,9 @@
|
|||
#
|
||||
# A score will be given to each gene such that 0.0 corresponds to the maximal
|
||||
# mean distance across all genes and 1.0 corresponds to a distance of 0.
|
||||
proximity <- function(distances, preset, progress = NULL) {
|
||||
proximity <- function(preset, progress = NULL) {
|
||||
# Prefilter distances by species and gene.
|
||||
distances <- distances[
|
||||
distances <- geposan::distances[
|
||||
species %chin% preset$species_ids & gene %chin% preset$gene_ids
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue