Skip to content

Commit

Permalink
readable disabled when keytype is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseCorCab committed Oct 29, 2024
1 parent 7a49817 commit 02ad9ea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions inst/scripts/clusters_to_enrichment.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ org_db <- get_org_db(current_organism_info)

#Load universe
readable <-TRUE
if (is.null(opt$universe) || length(opt$universe) == 0){
if (opt$gene_keytype == "")
readable <-FALSE

if (is.null(opt$universe) || length(opt$universe) == 0){
universe <- opt$universe
}else if (file.exists(opt$universe)){
universe <- read.table(opt$universe)[,1]
Expand All @@ -110,8 +113,6 @@ readable <-TRUE
output_id="ENTREZID",
org_db = org_db,
just_output_ids=TRUE)
} else {
readable <- FALSE
}
}

Expand Down

0 comments on commit 02ad9ea

Please sign in to comment.