Mercurial > repos > yhoogstrate > edger_with_design_matrix
comparison edgeR_Differential_Gene_Expression.xml @ 121:6c90a67a13fa draft
planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools/raw/master/edger_with_design_matrix commit 275a72ec0424e4e5d658d1bc8227077ea46f0fdc
author | yhoogstrate |
---|---|
date | Mon, 14 Dec 2015 05:10:49 -0500 |
parents | 5c94a732bd62 |
children | 7bb87a6bc4d5 |
comparison
equal
deleted
inserted
replaced
120:5c94a732bd62 | 121:6c90a67a13fa |
---|---|
206 | 206 |
207 colnames(design_matrix) <- make.names(colnames(design_matrix)) | 207 colnames(design_matrix) <- make.names(colnames(design_matrix)) |
208 | 208 |
209 for(i in 1:ncol(design_matrix)) { | 209 for(i in 1:ncol(design_matrix)) { |
210 old <- design_matrix[,i] | 210 old <- design_matrix[,i] |
211 design_matrix[,i] <- make.names(design_matrix[,i]) | 211 |
212 if(paste(design_matrix[,i],collapse="\t") != paste(old,collapse="\t")) { | 212 if(any(grepl("^[0-9]+$", old, perl=TRUE) == FALSE)){ |
213 print("Renaming of factors:") | 213 # Convert invalid names |
214 print(old) | 214 design_matrix[,i] <- make.names(design_matrix[,i]) |
215 print("To:") | 215 |
216 print(design_matrix[,i]) | 216 # Print if names have been converted |
217 } | 217 if(paste(design_matrix[,i],collapse="\t") != paste(old,collapse="\t")) { |
218 ## The following line seems to malfunction the script: | 218 print("Renamed of factors:") |
219 ##design_matrix[,i] <- as.factor(design_matrix[,i]) | 219 print(old) |
220 print("To:") | |
221 print(design_matrix[,i]) | |
222 } | |
223 } else { | |
224 # Only numerical factors: these are blocking / pairing factors | |
225 design_matrix[,i] <- as.numeric(design_matrix[,i]) | |
226 } | |
220 } | 227 } |
221 | 228 |
222 ## 1) In the expression matrix, you only want to have the samples described in the design matrix | 229 ## 1) In the expression matrix, you only want to have the samples described in the design matrix |
223 columns <- match(rownames(design_matrix),colnames(expression_matrix)) | 230 columns <- match(rownames(design_matrix),colnames(expression_matrix)) |
224 columns <- columns[!is.na(columns)] | 231 columns <- columns[!is.na(columns)] |
718 <param name="analysis_report_genes" value="significant"/> | 725 <param name="analysis_report_genes" value="significant"/> |
719 <param name="fdr" value="0.05" /> | 726 <param name="fdr" value="0.05" /> |
720 | 727 |
721 <output name="output_count_edgeR" file="Differential_Gene_Expression/differentially_expressed_genes.significant.tabular.txt" /> | 728 <output name="output_count_edgeR" file="Differential_Gene_Expression/differentially_expressed_genes.significant.tabular.txt" /> |
722 </test> | 729 </test> |
730 <test> | |
731 <param name="analysis_select" value="multi_factor" /> | |
732 | |
733 <param name="expression_matrix" value="Differential_Gene_Expression/expression_matrix.tabular.txt" /> | |
734 <param name="design_matrix" value="Differential_Gene_Expression/design_matrix.tabular.batch-effects.txt" /> | |
735 | |
736 <param name="contrast" value="E-C"/> | |
737 | |
738 <param name="analysis_report_genes" value="all"/> | |
739 <param name="fdr" value="0.01" /> | |
740 | |
741 <output name="output_count_edgeR" file="Differential_Gene_Expression/differentially_expressed_genes.batch-effects.tabular.txt" /> | |
742 </test> | |
723 </tests> | 743 </tests> |
724 | 744 |
725 <help> | 745 <help> |
726 edgeR: Differential Gene(Expression) Analysis | 746 edgeR: Differential Gene(Expression) Analysis |
727 ############################################# | 747 ############################################# |