Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
adamd3 committed Jun 12, 2024
2 parents e58ec08 + 1efd220 commit 536c755
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/functional_enrichment_topGO.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ down_col <- "#7FC97F"
## ------------------------------------------------------------------------------
## Read + process data
## ------------------------------------------------------------------------------
dge_files <- dir(path = "./", pattern = "\\.tsv$")
dge_files <- dir(path = "./", pattern = "^DGE_.*\\.tsv$")


in_dat <- read_csv(annot_f, show_col_types = FALSE)
Expand Down Expand Up @@ -96,14 +96,15 @@ names(term_genes_list) <- all_terms
## ------------------------------------------------------------------------------

lapply(dge_files, function(res_f) {
print(res_f)
# print(res_f)

res_tab <- na.omit(read_tsv(res_f))

all_genes <- res_tab[["feature_id"]]


label <- sub(pattern = "(.*)\\..*$", replacement = "\\1", basename(file.path(res_f)))
label <- sub(
pattern = "(.*)\\..*$", replacement = "\\1", basename(file.path(res_f)))

## get up/down-regulated genes
padj_col <- colnames(res_tab)[grepl("padj", colnames(res_tab))]
Expand Down

0 comments on commit 536c755

Please sign in to comment.