Fix preset bug when filtering species

This commit is contained in:
Elias Projahn 2022-06-20 14:30:51 +02:00
parent 2529f35660
commit fddd0c3fa0

View file

@ -41,7 +41,7 @@ preset <- function(reference_gene_ids,
]
# Count included genes per species.
species_n_genes <- geposan::distances[, .(n_genes = .N), by = "species"]
species_n_genes <- distances[, .(n_genes = .N), by = "species"]
# Filter out species that have too few of the genes.
species_ids_filtered <- species_n_genes[