Entering edit mode
2.1 years ago
prithvi.mastermind
▴
50
I'm interested in paired t-test for obtaining p-values for each gene. I used the t.test function in R, but it only gives one single p-value. How do I get p-value for all genes? I have 46 pairs of tumor and normal samples.
####Load necessary packages######
library(NOISeq)
library(edgeR)
library(DESeq2)
library(stats)
library(limma)
library(Rsamtools)
####Load the data #####
LIMS <- read.delim(file.choose(), row.names=1)
#####Perform paired t-test between tumor and normal samples####
Tumor <- unlist(LIMS[, 1:46])
Normal <- unlist(LIMS[, 47:92])
y <- t.test(Tumor, Normal, paired = TRUE)
I think you would need to run a 2-way ANOVA to get p-values for all genes. However, it's my understanding that false discovery rate (FDR) is the gold standard for RNA-seq.
Following the DESeq2 pipeline, you directly get the adjusted p-values for all genes.
Actually all my samples are paired and hence I want to apply paired t-test. I guess DESeq2 only offers unpaired two-sample t-test and not paired t-test.
Want to make sure you saw ATpoint's post. You would include that information into the design by adding another column to your
colData