Mercurial > repos > yhoogstrate > edger_with_design_matrix
comparison edgeR_Differential_Gene_Expression.xml @ 45:f710e5ed7cea draft
Uploaded
author | yhoogstrate |
---|---|
date | Wed, 28 May 2014 05:42:17 -0400 |
parents | 261b997b241f |
children | b89788eead3c |
comparison
equal
deleted
inserted
replaced
44:261b997b241f | 45:f710e5ed7cea |
---|---|
153 print("Renaming of factors:") | 153 print("Renaming of factors:") |
154 print(old) | 154 print(old) |
155 print("To:") | 155 print("To:") |
156 print(design_matrix[,i]) | 156 print(design_matrix[,i]) |
157 } | 157 } |
158 design_matrix[,i] <- as.factor(design_matrix[,i]) | 158 ## The following line seems to malfunction the script: |
159 ##design_matrix[,i] <- as.factor(design_matrix[,i]) | |
159 } | 160 } |
160 | 161 |
161 ## 1) In the expression matrix, you only want to have the samples described in the design matrix | 162 ## 1) In the expression matrix, you only want to have the samples described in the design matrix |
162 columns <- match(rownames(design_matrix),colnames(expression_matrix)) | 163 columns <- match(rownames(design_matrix),colnames(expression_matrix)) |
163 columns <- columns[!is.na(columns)] | 164 columns <- columns[!is.na(columns)] |