$VAR1 = { 'D9' => [ 'D9_01', 'D9_02', 'D9_03', 'D9_04', 'D9_05', 'D9_06', 'D9_07', 'D9_08', 'D9_09' ], 'D26' => [ 'D26_01', 'D26_02', 'D26_03', 'D26_04', 'D26_05', 'D26_06' ] }; CMD: R --no-save --no-restore --no-site-file --no-init-file -q < salmon.gene.counts.matrix.D26_vs_D9.D26.vs.D9.EdgeR.Rscript > if (! require(edgeR)) { + source("https://bioconductor.org/biocLite.R") + biocLite("edgeR") + library(edgeR) + } > > data = read.table("/gscratch/scrubbed/samwhite/outputs/20200422_cbai_DEG_basic_comparisons/D9-D26/salmon.gene.counts.matrix", header=T, row.names=1, com='') > col_ordering = c(8,9,10,11,12,13,1,2,3,4,5,6,7,14,15) > rnaseqMatrix = data[,col_ordering] > rnaseqMatrix = round(rnaseqMatrix) > rnaseqMatrix = rnaseqMatrix[rowSums(cpm(rnaseqMatrix) > 1) >= 2,] > conditions = factor(c(rep("D26", 6), rep("D9", 9))) > > exp_study = DGEList(counts=rnaseqMatrix, group=conditions) > exp_study = calcNormFactors(exp_study) > exp_study = estimateDisp(exp_study) Design matrix not provided. Switch to the classic mode. > et = exactTest(exp_study, pair=c("D26", "D9")) > tTags = topTags(et,n=NULL) > result_table = tTags$table > result_table = data.frame(sampleA="D26", sampleB="D9", result_table) > result_table$logFC = -1 * result_table$logFC > write.table(result_table, file='salmon.gene.counts.matrix.D26_vs_D9.edgeR.DE_results', sep=' ', quote=F, row.names=T) > write.table(rnaseqMatrix, file='salmon.gene.counts.matrix.D26_vs_D9.edgeR.count_matrix', sep=' ', quote=F, row.names=T) > source("/gscratch/srlab/programs/trinityrnaseq-v2.9.0/Analysis/DifferentialExpression/R/rnaseq_plot_funcs.R") > pdf("salmon.gene.counts.matrix.D26_vs_D9.edgeR.DE_results.MA_n_Volcano.pdf") > plot_MA_and_Volcano(rownames(result_table), result_table$logCPM, result_table$logFC, result_table$FDR) > dev.off() null device 1 >