In [2]:
 
#we load the library for the DESeq analysis
library("DESeq2")
library(scales)
options(repr.plot.width=4, repr.plot.height=3)
Loading required package: S4Vectors
Loading required package: stats4
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: ‘BiocGenerics’

The following objects are masked from ‘package:parallel’:

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following object is masked from ‘package:stats’:

    xtabs

The following objects are masked from ‘package:base’:

    anyDuplicated, append, as.data.frame, as.vector, cbind, colnames,
    do.call, duplicated, eval, evalq, Filter, Find, get, intersect,
    is.unsorted, lapply, Map, mapply, match, mget, order, paste, pmax,
    pmax.int, pmin, pmin.int, Position, rank, rbind, Reduce, rep.int,
    rownames, sapply, setdiff, sort, table, tapply, union, unique,
    unlist, unsplit

Creating a generic function for ‘nchar’ from package ‘base’ in package ‘S4Vectors’
Loading required package: IRanges
Loading required package: GenomicRanges
Loading required package: GenomeInfoDb
Loading required package: Rcpp
Loading required package: RcppArmadillo
Warning message:
: replacing previous import ‘S4Vectors::Position’ by ‘ggplot2::Position’ when loading ‘DESeq2’
In [3]:
 
setwd(path.expand("/mnt/storage/r0611267/work"))
In [4]:
 
#we organize the data in a matrix (countDataSmoker and countDataCancer)
matrixFileSmoker = path.expand("/mnt/storage/r0611267/work/all.smoker.counts")
In [5]:
 
matrixFileCancer = path.expand("/mnt/storage/r0611267/work/all.cancer.counts")
In [6]:
 
countDataSmoker <- as.matrix(read.csv(matrixFileSmoker, header=TRUE, sep="\t", row.names="Geneid"))
head(countDataSmoker)
NS1_sorted.bamNS2_sorted.bamS1_sorted.bamS2_sorted.bam
MIR1302-11 0 0 0 0
FAM138A 0 0 0 0
OR4F5 0 0 0 0
RP11-34P13.7 0 0 0 0
RP11-34P13.8 0 0 0 0
AL627309.191736270
In [7]:
 
countDataCancer <- as.matrix(read.csv(matrixFileCancer, header=TRUE, sep="\t", row.names="Geneid"))
head(countDataCancer)
NC1_sorted.bamNC2_sorted.bamC1_sorted.bamC2_sorted.bam
MIR1302-11 0 0 0 0
FAM138A 0 0 0 0
OR4F5 0 0 0 0
RP11-34P13.7 0 0 3 3
RP11-34P13.8 0 0 0 0
AL627309.110910185 74
In [8]:
 
#change name of column
colnames(countDataSmoker) <- c("NS1", "NS2", "S1", "S2") 
head(countDataSmoker)
NS1NS2S1S2
MIR1302-11 0 0 0 0
FAM138A 0 0 0 0
OR4F5 0 0 0 0
RP11-34P13.7 0 0 0 0
RP11-34P13.8 0 0 0 0
AL627309.191736270
In [9]:
 
colnames(countDataCancer) <- c("NC1", "NC2", "C1", "C2") 
head(countDataCancer)
NC1NC2C1C2
MIR1302-11 0 0 0 0
FAM138A 0 0 0 0
OR4F5 0 0 0 0
RP11-34P13.7 0 0 3 3
RP11-34P13.8 0 0 0 0
AL627309.110910185 74
In [10]:
 
#we define the experimental condition
conditionS <- factor(c("NS", "NS", "S", "S"))
print(conditionS)
[1] NS NS S  S 
Levels: NS S
In [11]:
 
conditionC <- factor(c("NC", "NC", "C", "C"))
print(conditionC)
[1] NC NC C  C 
Levels: C NC
In [12]:
 
colDataS <- data.frame(sampleName = colnames(countDataSmoker),
                      conditionS = conditionS)
colDataS
sampleNameconditionS
NS1NS
NS2NS
S1 S
S2 S
In [13]:
 
#we create the DESeqDataSet from the countData matrix
dds <- DESeqDataSetFromMatrix(countData = countDataSmoker,
                              colData = colDataS,
                              design = ~ conditionS)
colnames(dds) <- colnames(countDataSmoker)
In [14]:
 
dds
class: DESeqDataSet 
dim: 41863 4 
exptData(0):
assays(1): counts
rownames(41863): MIR1302-11 FAM138A ... AC007965.1 RNU6-1314P
rowRanges metadata column names(0):
colnames(4): NS1 NS2 S1 S2
colData names(2): sampleName conditionS
In [15]:
 
colDataC <- data.frame(sampleName = colnames(countDataCancer),
                      conditionC = conditionC)
colDataC
sampleNameconditionC
NC1NC
NC2NC
C1 C
C2 C
In [16]:
 
ddsC <- DESeqDataSetFromMatrix(countData = countDataCancer,
                              colData = colDataC,
                              design = ~ conditionC)
colnames(ddsC) <- colnames(countDataCancer)
In [17]:
 
ddsC
class: DESeqDataSet 
dim: 41863 4 
exptData(0):
assays(1): counts
rownames(41863): MIR1302-11 FAM138A ... AC007965.1 RNU6-1314P
rowRanges metadata column names(0):
colnames(4): NC1 NC2 C1 C2
colData names(2): sampleName conditionC
In [18]:
 
#we run DESeq giving in input the DESeqDataSet 
dds <- DESeq(dds)
estimating size factors
estimating dispersions
gene-wise dispersion estimates
mean-dispersion relationship
final dispersion estimates
fitting model and testing
In [19]:
 
ddsC <- DESeq(ddsC)
estimating size factors
estimating dispersions
gene-wise dispersion estimates
mean-dispersion relationship
final dispersion estimates
fitting model and testing
In [23]:
 
#barplot to visualize the library size. We create the plot using the DESeq2 function because less 
#sensitive to outliers (for example sequencing errors)
​
options(repr.plot.width=4, repr.plot.height=4)
barplot(sizeFactors(dds))
In [38]:
 
options(repr.plot.width=4, repr.plot.height=4)
barplot(sizeFactors(ddsC))
In [20]:
 
#for the sample vs sample scatter plot we performed a normalization of the library size and a 
#logarithmic transformation of the data to reduce the noise 
rld <- rlogTransformation(dds, blind=TRUE)
In [21]:
 
rldC <- rlogTransformation(ddsC, blind=TRUE)
In [39]:
 
options(repr.plot.width=5, repr.plot.height=5)
plot(data.frame(assay(rld)), cex=0.1, col=alpha("green", 0.4))
In [40]:
 
options(repr.plot.width=5, repr.plot.height=5)
plot(data.frame(assay(rldC)), cex=0.1, col=alpha("purple", 0.4))
In [54]:
 
#we performed a Principal Component ANalysis (PCA) to assess the inter and intra variation in the sample pairs. 
plotPCA(rld, intgroup=c("conditionS"))
In [55]:
 
plotPCA(rldC, intgroup=c("conditionC"))
In [31]:
 
#Mean expression plot of NS vs S (red dots correspond to the significantly differentially expressed genes)
options(repr.plot.width=5, repr.plot.height=4)
plotMA(dds,ylim=c(-3,3))
In [32]:
 
#Mean expression plot of NC vs C
options(repr.plot.width=5, repr.plot.height=4)
plotMA(ddsC,ylim=c(-3,3))
In [22]:
 
#finally we calculate the fold change values for each sample pair
resS <- results(dds)
resSmoker <- resS[order(resS$padj),]
head(resSmoker)
log2 fold change (MAP): conditionS S vs NS 
Wald test p-value: conditionS S vs NS 
DataFrame with 6 rows and 6 columns
         baseMean log2FoldChange      lfcSE      stat    pvalue      padj
        <numeric>      <numeric>  <numeric> <numeric> <numeric> <numeric>
AKR1C2   3761.924       2.777623 0.06681309  41.57303         0         0
MSMB    48581.378       1.165930 0.02933429  39.74631         0         0
MUC2     9824.192       2.972631 0.04594035  64.70631         0         0
MUC5AC 128464.852       2.461839 0.02760349  89.18578         0         0
MUC5B   10823.286      -2.195854 0.04448879 -49.35746         0         0
H19     13527.571       2.262322 0.04012958  56.37543         0         0
In [23]:
 
resC <- results(ddsC)
resCancer <- resC[order(resC$padj),]
head(resCancer)
log2 fold change (MAP): conditionC NC vs C 
Wald test p-value: conditionC NC vs C 
DataFrame with 6 rows and 6 columns
         baseMean log2FoldChange      lfcSE      stat        pvalue
        <numeric>      <numeric>  <numeric> <numeric>     <numeric>
HBB      9080.079       1.949972 0.04536499  42.98407  0.000000e+00
SCGB1A1 35992.576      -1.355185 0.03355716 -40.38436  0.000000e+00
IL1B     3333.114      -3.984654 0.07968356 -50.00598  0.000000e+00
SCGB3A1 45747.168      -1.736593 0.02977550 -58.32290  0.000000e+00
FCGBP    7514.564      -1.740610 0.04827356 -36.05722 1.062904e-284
MUC5B    8200.255      -1.460402 0.04655793 -31.36742 5.631710e-216
                padj
           <numeric>
HBB      0.00000e+00
SCGB1A1  0.00000e+00
IL1B     0.00000e+00
SCGB3A1  0.00000e+00
FCGBP   3.79159e-281
MUC5B   1.67412e-212
In [60]:
 
#number of differentially expressed genes between NS and S
resSmoker.sign <- resSmoker[(!is.na(resSmoker$padj)) & (resSmoker$padj < 0.05),]
dim(resSmoker.sign)
  1. 6400
  2. 6
In [36]:
 
#number of differentially expressed genes between NC and C
resCancer.sign <- resCancer[(!is.na(resCancer$padj)) & (resCancer$padj < 0.05),]
dim(resCancer.sign)
  1. 3072
  2. 6
In [67]:
 
#check the expression trend of S100A8 in non-smoker vs smoker
options(repr.plot.width=4, repr.plot.height=4)
barplot(assay(rld)["S100A8",])
In [24]:
 
#check the expression trend of CYP1A1 in non-smoker vs smoker
options(repr.plot.width=4, repr.plot.height=4)
barplot(assay(rld)["CYP1A1",])
In [64]:
 
#check the expression trend of CCL20 in non-cancer vs cancer
options(repr.plot.width=4, repr.plot.height=4)
barplot(assay(rldC)["CCL20",])
In [70]:
#fold change of MUC5AC in non-smoker vs smoker 
options(repr.plot.width=4, repr.plot.height=4)
barplot(assay(rld)["MUC5AC",])
In [71]:
 
#fold change of MUC5AC in non-cancer vs cancer
options(repr.plot.width=4, repr.plot.height=4)
barplot(assay(rldC)["MUC5AC",])
In [25]:
x
#fold change of NFKBIA in non-cancer vs cancer
options(repr.plot.width=4, repr.plot.height=4)
barplot(assay(rldC)["NFKBIA",])
In [74]:
 
#we export the data for the functional analysis
write.table(resS, "deseq.smoker.tsv", sep="\t", col.names=NA, quote=FALSE)
write.table(resC, "deseq.cancer.tsv", sep="\t", col.names=NA, quote=FALSE)
 
**Microarray**

Microarray

In [1]:
setwd(path.expand("/mnt/storage/r0611267/work/Microarray_cancer"))
In [2]:
 
#load the libraries required for microarray data analysis:
#the affy package is necessary to work with Affymetrix microarray data
#the limma package will be used for differential expression analysis
library(affy)
library(limma)
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: ‘BiocGenerics’

The following objects are masked from ‘package:parallel’:

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following object is masked from ‘package:stats’:

    xtabs

The following objects are masked from ‘package:base’:

    anyDuplicated, append, as.data.frame, as.vector, cbind, colnames,
    do.call, duplicated, eval, evalq, Filter, Find, get, intersect,
    is.unsorted, lapply, Map, mapply, match, mget, order, paste, pmax,
    pmax.int, pmin, pmin.int, Position, rank, rbind, Reduce, rep.int,
    rownames, sapply, setdiff, sort, table, tapply, union, unique,
    unlist, unsplit

Loading required package: Biobase
Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.


Attaching package: ‘limma’

The following object is masked from ‘package:BiocGenerics’:

    plotMA

In [3]:
#the CEL files are downloaded in the directory Microarray_cancer
cancer_files = Sys.glob("/mnt/storage/r0611267/work/Microarray_cancer/*.gz")
In [32]:
 
#the variable cancer_files contains a list of names of CEL files, however the data is not loaded yet
cancer_files
  1. '/mnt/storage/r0611267/work/Microarray_cancer/GSM714147.CEL.gz'
  2. '/mnt/storage/r0611267/work/Microarray_cancer/GSM714148.CEL.gz'
  3. '/mnt/storage/r0611267/work/Microarray_cancer/GSM714149.CEL.gz'
  4. '/mnt/storage/r0611267/work/Microarray_cancer/GSM714150.CEL.gz'
  5. '/mnt/storage/r0611267/work/Microarray_cancer/GSM714151.CEL.gz'
  6. '/mnt/storage/r0611267/work/Microarray_cancer/GSM714152.CEL.gz'
  7. '/mnt/storage/r0611267/work/Microarray_cancer/GSM714153.CEL.gz'
  8. '/mnt/storage/r0611267/work/Microarray_cancer/GSM714154.CEL.gz'
  9. '/mnt/storage/r0611267/work/Microarray_cancer/GSM714155.CEL.gz'
  10. '/mnt/storage/r0611267/work/Microarray_cancer/GSM714156.CEL.gz'
  11. '/mnt/storage/r0611267/work/Microarray_cancer/GSM714157.CEL.gz'
  12. '/mnt/storage/r0611267/work/Microarray_cancer/GSM714158.CEL.gz'
  13. '/mnt/storage/r0611267/work/Microarray_cancer/GSM714159.CEL.gz'
In [4]:
#ReadAffy is used to load the files 
cancer_raw <- ReadAffy(filenames=cancer_files)
In [34]:
 
#the cancer_files object only knows the filenames
sampleNames(cancer_raw)
  1. 'GSM714147.CEL.gz'
  2. 'GSM714148.CEL.gz'
  3. 'GSM714149.CEL.gz'
  4. 'GSM714150.CEL.gz'
  5. 'GSM714151.CEL.gz'
  6. 'GSM714152.CEL.gz'
  7. 'GSM714153.CEL.gz'
  8. 'GSM714154.CEL.gz'
  9. 'GSM714155.CEL.gz'
  10. 'GSM714156.CEL.gz'
  11. 'GSM714157.CEL.gz'
  12. 'GSM714158.CEL.gz'
  13. 'GSM714159.CEL.gz'
In [5]:
#we create a vector (NC = no cancer, C = cancer)
cancer_status = c("NC",
                 "NC",
                 "NC",
                 "NC",
                 "NC",
                 "C",
                 "C",
                 "C",
                 "C",
                 "C",
                 "C",
                 "C",
                 "C")
In [6]:
#we create a data frame with the cancer status and the sample names
pd <- data.frame(cancer_status = cancer_status)
rownames(pd) <- sampleNames(cancer_raw)
pd
cancer_status
GSM714147.CEL.gzNC
GSM714148.CEL.gzNC
GSM714149.CEL.gzNC
GSM714150.CEL.gzNC
GSM714151.CEL.gzNC
GSM714152.CEL.gzC
GSM714153.CEL.gzC
GSM714154.CEL.gzC
GSM714155.CEL.gzC
GSM714156.CEL.gzC
GSM714157.CEL.gzC
GSM714158.CEL.gzC
GSM714159.CEL.gzC
In [7]:
#we convert the data frame to an AnnotatedDataFrame and assign it to the cancer_raw object
library(Biobase) #this library contains the AnnotatedDataFrame:
​
phenoData(cancer_raw) <- AnnotatedDataFrame(data=pd)
In [8]:
#we load the frma library which is necessary for the robust multichip average (rma) normalization
library(frma)
Creating a generic function for ‘nchar’ from package ‘base’ in package ‘S4Vectors’
In [9]:
 
#we use frma to normalize
eset <- frma(cancer_raw, verbose=TRUE)
save(eset, file="/mnt/storage/r0611267/work/Microarray_cancer/GSE28835.eset")
Background Correcting ...


Normalizing ...

Summarizing ...

In [41]:
 
#the object eset contains the normalized data per probe and some experimental annotation
eset
ExpressionSet (storageMode: lockedEnvironment)
assayData: 22277 features, 13 samples 
  element names: exprs, se.exprs 
protocolData: none
phenoData
  sampleNames: GSM714147.CEL.gz GSM714148.CEL.gz ... GSM714159.CEL.gz
    (13 total)
  varLabels: cancer_status
  varMetadata: labelDescription
featureData: none
experimentData: use 'experimentData(object)'
Annotation: hgu133a2 
In [42]:
 
sampleNames(eset)
  1. 'GSM714147.CEL.gz'
  2. 'GSM714148.CEL.gz'
  3. 'GSM714149.CEL.gz'
  4. 'GSM714150.CEL.gz'
  5. 'GSM714151.CEL.gz'
  6. 'GSM714152.CEL.gz'
  7. 'GSM714153.CEL.gz'
  8. 'GSM714154.CEL.gz'
  9. 'GSM714155.CEL.gz'
  10. 'GSM714156.CEL.gz'
  11. 'GSM714157.CEL.gz'
  12. 'GSM714158.CEL.gz'
  13. 'GSM714159.CEL.gz'
In [10]:
#the sample names are not informative, therefore we assign names manually
eset.labels <- c("BT13.NC",
                 "BT16.NC",
                 "BT18.NC",
                 "BT3.NC",
                 "BT10.NC",
                 "Squamous cell carcinoma1.C",
                 "Adenocarcinoma1.C",
                 "Large cell carcinoma.C",
                 "Adenocarcinoma2.C",
                 "Adenocarcinoma3.C",
                 "Adenocarcinoma4.C",
                 "Non-small cell carcinoma.C",
                 "Squamous cell carcinoma2.C")
sampleNames(eset) <- eset.labels
In [11]:
pData(phenoData(eset))
cancer_status
BT13.NCNC
BT16.NCNC
BT18.NCNC
BT3.NCNC
BT10.NCNC
Squamous cell carcinoma1.CC
Adenocarcinoma1.CC
Large cell carcinoma.CC
Adenocarcinoma2.CC
Adenocarcinoma3.CC
Adenocarcinoma4.CC
Non-small cell carcinoma.CC
Squamous cell carcinoma2.CC
In [12]:
#we check the normalized expression levels (on a probe by probe basis)
probe.counts <- exprs(eset)
head(probe.counts)
BT13.NCBT16.NCBT18.NCBT3.NCBT10.NCSquamous cell carcinoma1.CAdenocarcinoma1.CLarge cell carcinoma.CAdenocarcinoma2.CAdenocarcinoma3.CAdenocarcinoma4.CNon-small cell carcinoma.CSquamous cell carcinoma2.C
1007_s_at10.03526410.35523810.22330210.39457110.43986910.23964110.53984510.20091510.64866810.3685179.778627 10.70360410.411238
1053_at 5.968453 6.103300 5.894756 5.615571 5.937565 6.171853 5.573828 6.024394 6.103040 5.4968096.231837 5.847723 5.795588
117_at 5.510164 5.265550 5.082805 5.015298 5.059865 4.832597 5.108494 4.841948 5.026273 5.1982295.372553 4.688761 4.837927
121_at 7.876670 7.807024 7.760307 7.662805 7.482189 7.496351 7.982291 7.744984 7.638114 8.0090667.674637 7.943902 7.885183
1255_g_at 3.446086 3.510196 3.382967 3.427161 3.550295 3.480925 3.564238 3.511019 3.635815 3.5002753.522912 3.555544 3.565176
1294_at 7.244135 7.570563 7.376746 7.948884 7.161229 7.248867 7.662852 7.625770 7.342478 6.9971828.255282 7.781724 7.931158
In [13]:
#we load two libraries more
library(annotate)
library(hgu133a2.db) #this library contains the annotation for the microarray platform
Loading required package: AnnotationDbi
Loading required package: stats4
Loading required package: GenomeInfoDb
Loading required package: S4Vectors
Loading required package: IRanges
Loading required package: XML
Loading required package: org.Hs.eg.db


In [14]:
#we use the getSYMBOL function to create a mapping from probe to gene
probe.names <- rownames(probe.counts)
gene.symbols <- getSYMBOL(probe.names, "hgu133a2")
head(gene.symbols)
1007_s_at
'NA'
1053_at
'RFC2'
117_at
'HSPA6'
121_at
'PAX8'
1255_g_at
'GUCA1A'
1294_at
'NA'
In [147]:
 
#number of probes. one gene can have more than one probe
length(gene.symbols)
22277
In [15]:
#we add the gene symbols as an extra column to the data frame 
probe.counts.genesymbol <- as.data.frame(cbind(as.data.frame(probe.counts), gene.symbols))
In [16]:
#we remove all probes for which there is no gene symbol (=correspondence in the probe column) 
#and we ensure that the gene symbol column contains only strings
probe.counts.genesymbol = probe.counts.genesymbol[complete.cases(probe.counts.genesymbol),]
probe.counts.genesymbol$gene.symbols <- as.character(probe.counts.genesymbol$gene.symbols)
In [17]:
 
#we will have multiple probes per gene and we will take the median expression in this case
#we use the reshape2 package to group the probes per gene
library(reshape2)
In [18]:
 
#we convert the probe expression table into a gene count table using melt and dcast
m <- melt(probe.counts.genesymbol, id.vars = c("gene.symbols"))
In [19]:
 
counts <- dcast(m, gene.symbols ~ variable, fun.aggregate=median)
In [20]:
 
#we convert the column 'gene.symbols' into the row names
rownames(counts) <- counts$gene.symbols
counts$gene.symbols <- NULL
In [21]:
 
#we save this count table
write.table(counts, 'GSE19638.counts.tsv', sep="\t", quote=FALSE, col.names=NA)
In [22]:
 
#we use an MDS plot to check the quality of the data
#we checked other dimensions 
options(repr.plot.width=10, repr.plot.height=10)
plotMDS(eset)
In [23]:
 
#we made the same selection as reported in the paper
cancer_and_no_cancer <-counts[c("BT13.NC",
                 "BT16.NC",
                 "BT3.NC",
                 "Adenocarcinoma4.C",
                 "Squamous cell carcinoma2.C")]
In [24]:
 
options(repr.plot.width=10, repr.plot.height=10)
plotMDS(cancer_and_no_cancer)
In [31]:
#we check the expression of CCL20 and NFKBIA that we found differentially expressed in the RNAseq 
#analysis, and of SCGB1A1 that is mentioned in the paper
goi <- c("CCL20", "SCGB1A1", "NFKBIA")
cancer_and_no_cancer[goi,]
BT13.NCBT16.NCBT3.NCAdenocarcinoma4.CSquamous cell carcinoma2.C
CCL20 7.744807 4.824343 4.536135 5.742865 4.697469
SCGB1A113.62029212.73459413.66714113.62360913.804451
NFKBIA11.64280410.01616210.39458011.26011510.358824
In [26]:
 
#we define the experimental conditions along which we will do differential expression analysis
status <- factor(c('NC',
                 'NC',
                 'NC',
                 'C',
                 'C'),
                levels=c('NC', 'C'))
status
  1. NC
  2. NC
  3. NC
  4. C
  5. C
In [261]:
 
#we build a model matrix because limma uses a linear model in the background
design <- model.matrix(~status)
design
(Intercept)statusC
110
210
310
411
511
In [262]:
 
#we run limma
#the function lmFit fits a linear model and eBayes calculates probabilities
fit <- eBayes(lmFit(cancer_and_no_cancer, design))
In [263]:
 
#In order to gain insight into the spread of differential expression, 
#we create an MA plot which shows the log ratio change of expression (M) vs the average expression (A)
limma::plotMA(fit, 2)
abline(0,0,col='purple')
In [264]:
 
#we extract the top diffentially expressed genes
topTable(fit, coef=2)
logFCAveExprtP.Valueadj.P.ValB
CTGF-1.4778458 10.020638 -8.892926 0.00022179610.8352914 -4.097344
MUC5B 2.2583690 7.418195 8.161453 0.00034022110.8352914 -4.105017
TRBC1-1.2382637 7.423001 -6.296194 0.00120206020.8352914 -4.135972
SULT2B1 1.6828206 6.350630 6.008073 0.00150038090.8352914 -4.142998
YWHAH-0.9635883 8.412023 -5.934377 0.00159004130.8352914 -4.144930
DHRS9-0.9003811 10.737130 -5.908601 0.00162286440.8352914 -4.145620
PCDH17 0.8931522 6.033947 5.859020 0.00168824730.8352914 -4.146967
MFN1-0.8096636 6.908531 -5.830371 0.00172742500.8352914 -4.147758
FERMT2 1.0104603 5.735007 5.726658 0.00187838200.8352914 -4.150702
KLF4-1.3528950 7.649514 -5.709256 0.00190519020.8352914 -4.151208
In [265]:
 
#we correct for multiple testing
select = p.adjust(fit[,2]$p.value, method="BH") < 0.05
In [267]:
 
#we obtain an overview of how many genes are differentially expressed (TRUE)
summary(select)
   Mode   FALSE    NA's 
logical   12434       0