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
|
|
@ -36,11 +36,11 @@ clusteriness_priv <- function(data, height = 1000000) {
|
|||
}
|
||||
|
||||
# Process genes clustering their distance to telomeres.
|
||||
clusteriness <- function(distances, preset, progress = NULL) {
|
||||
clusteriness <- function(preset, progress = NULL) {
|
||||
results <- data.table(gene = preset$gene_ids)
|
||||
|
||||
# Prefilter the input data by species.
|
||||
distances <- distances[species %chin% preset$species_ids]
|
||||
distances <- geposan::distances[species %chin% preset$species_ids]
|
||||
|
||||
# Add an index for quickly accessing data per gene.
|
||||
setkey(distances, gene)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue