Description Usage Arguments Value Author(s) See Also Examples
Summary of the results Create a data.frame that displays every gene significant in any comparison and the p-value for each comparison.
1 | results_summary(results, topTable3, adjust = "no")
|
expr.matrix |
A matrix of standardized data. Columns = samples, rows = genes,transcripts,CpG... |
resultsSummary |
A matrix of data from every gene that is significanlty different |
The significant rows of the initial expression matrix between at least two groups. Columns = samples, rows = genes,transcripts,CpG...
Simon J Pelletier
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | #Example with expression matrix
expr.matrix <- readRDS("data/expr_matrix_LGVD.rds")
type = "ensembl_gene_id"
design <- design_contrasts(get_names(colnames(expr.matrix)))
lm2 <- lm2Contrast(expr.matrix,design)
lm2.contrast = lm2[[1]]
contrasts=lm2[[2]]
contrast.matrix=lm2[[3]]
names <- get_names(expr.matrix)[[1]]
specie = "rnorvegicus"
attribute <- "ensembl_gene_id"
externalSymbol <- "rgd_symbol"
annotationFile <- paste0("annotations/databases/",specie,"_ensembl_",attribute,".csv")
#ensemblTable <- annotation_biomart(rownames(expr.matrix),specie,attribute)
ensemblTable <- read.csv(annotationFile)
genes <- ensemblTable[as.character(ensemblTable[,attribute]) != "",]
annotation <- annotate_ensembl(genes[,1],type)
annotations <- annotation[[1]]
go <- annotation[[2]]
genes_annotation_unique <- annotation[[3]]
design <- design_contrasts(get_names(colnames(expr.matrix)))
lm2 <- lm2Contrast(expr.matrix,design)
lm2.contrast = lm2[[1]]
contrasts=lm2[[2]]
contrast.matrix=lm2[[3]]
names <- get_names(expr.matrix)[[1]]
comparisons <- get_comparisons(names)
pvalue = 0.05
logFC = c(-1.3,1.3)
type <- "ensembl_gene_id"
results_list <- results_topTable(lm2.contrast,expr.toBind,pvalue,logFC,type,genes_annotation_unique,annotations,"BH",ensemblTable)
results = results_list[[1]]
topTable3 = results_list[[2]]
resultsSummary <- results_summary(results,topTable3,adjust="BH")
#Example with online dataset
gset <- getGEO("GSE54839", GSEMatrix =TRUE)
exprset <- gset[[1]]
type <- "ensembl_gene_id"
expr.matrix <- exprs(exprset)
names1 <- get_names(sampleNames(exprset))
comparisons <- comparisonsPheno(exprset)[[1]]
comparisonsTable <- comparisonsPheno(exprset)[[2]]
specie = "hsapiens"
attribute <- "illumina_humanht_12_v3"
externalSymbol <- "hgnc_symbol"
annotationFile <- paste0("annotations/databases/",specie,"_ensembl_",attribute,".csv")
#ensemblTable <- annotation_biomart(rownames(expr.matrix),specie,attribute)
ensemblTable <- read.csv(annotationFile)
genes <- ensemblTable[as.character(ensemblTable[,attribute]) != "",]
annotation <- annotate_ensembl(genes[,1],type)
annotations <- annotation[[1]]
go <- annotation[[2]]
genes_annotation_unique <- annotation[[3]]
pvalue = 0.05
expr.toBind <- NULL
logFC = c(-1,1)
selectedVariables = names(comparisons)[1]
namesTable <- comparisonsTable
names2 <- namesSelectedComparisons(as.data.frame(as.character(namesTable[,2])))
design = design_contrasts(names2)
bnet = readRDS('data/modules_characteristics_ch1.rds')
expr.toBind = exprToBind(bnet,voom.matrix)
lm2=lm2Contrast(expr.matrix,design)
lm2.contrast = lm2[[1]]
contrasts=lm2[[2]]
contrast.matrix=lm2[[3]]
results_list = results_topTable(lm2.contrast,expr.toBind,pvalue,logFC,type,genes_annotation_unique,annotations,adjust="none",ensemblTable)
results = results_list[[1]]
topTable3 = results_list[[2]]
resultsSummary = results_summary(results,topTable3,"no")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.