Skip to content

Instantly share code, notes, and snippets.

@jeffreypullin
Created April 9, 2024 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffreypullin/02c12f0f5fa880473c7d7235c709246f to your computer and use it in GitHub Desktop.
Save jeffreypullin/02c12f0f5fa880473c7d7235c709246f to your computer and use it in GitHub Desktop.
# BiocManager::install("edgeR")
library(edgeR)
library(readr)
library(janitor)
library(dplyr)
data <- read_delim(
"~/Downloads/270324_DRIX082_pg.matrix.tsv",
name_repair = make_clean_names,
show_col_types = FALSE
)
mat <- data |>
select(c(7, 10, 11)) |>
as.matrix()
colnames(mat) <- c("HC2", "PD2", "PD8")
rownames(mat) <- data$genes
fit <- lmFit(mat, design=c(1,-1,-1))
fit <- eBayes(fit)
topTable(fit, number = 10, sort.by = "t")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment