mirror of
https://github.com/johrpan/geposanui.git
synced 2025-10-26 19:27:24 +01:00
Allow using all species for processing
This commit is contained in:
parent
b69b3e9d2d
commit
3fd8ef6269
4 changed files with 83 additions and 26 deletions
10
process.R
10
process.R
|
|
@ -7,16 +7,10 @@ library(rlog)
|
|||
#' account when regarding them as TPE-OLD candidates.
|
||||
#'
|
||||
#' @param input Data from [`load_input()`].
|
||||
process_input <- function(input) {
|
||||
#' @param species_ids IDs of species to include in the analysis.
|
||||
process_input <- function(input, species_ids) {
|
||||
results <- data.table(gene = input$genes$id)
|
||||
|
||||
# Exclude species with naturally or artificially short chromosomes as well
|
||||
# as non-replicatively aging species.
|
||||
species_ids <- input$species[
|
||||
median_distance >= 7500000 & group == "replicative",
|
||||
id
|
||||
]
|
||||
|
||||
gene_ids <- input$genes[, id]
|
||||
gene_count <- length(gene_ids)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue