Mercurial > repos > yhoogstrate > edger_with_design_matrix
comparison edgeR_Differential_Gene_Expression.xml @ 5:bde663b872d9 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 11:01:38 -0500 |
parents | 5d38abf7e4b6 |
children | 31a23ae7c61e |
comparison
equal
deleted
inserted
replaced
4:5d38abf7e4b6 | 5:bde663b872d9 |
---|---|
34 description="LOCALE has not been set correctly" /> | 34 description="LOCALE has not been set correctly" /> |
35 </stdio> | 35 </stdio> |
36 | 36 |
37 <version_command>echo $(R --version | grep version | grep -v GNU)", EdgeR version" $(R --vanilla --slave -e "library(edgeR) ; cat(sessionInfo()\$otherPkgs\$edgeR\$Version)" 2> /dev/null | grep -v -i "WARNING: ")</version_command> | 37 <version_command>echo $(R --version | grep version | grep -v GNU)", EdgeR version" $(R --vanilla --slave -e "library(edgeR) ; cat(sessionInfo()\$otherPkgs\$edgeR\$Version)" 2> /dev/null | grep -v -i "WARNING: ")</version_command> |
38 | 38 |
39 <command> | 39 <command><![CDATA[ |
40 #if $analysis_type.analysis_select == "multi_factor" | |
41 #set $expression_matrix = $analysis_type.expression_matrix | |
42 #set $design_matrix = $analysis_type.design_matrix | |
43 #set $contrast = $analysis_type.contrast | |
44 #else | |
45 ## Design and Expression matrices do not exist - create them | |
46 #set $expression_matrix = "expression_matrix.txt" | |
47 #set $design_matrix = "design_matrix.txt" | |
48 #set $contrast = str($analysis_type.factorLevel_condition)+"-"+str($analysis_type.factorLevel_control) | |
49 | |
50 ## -- Create expression matrix | |
51 cut -f 1 "$analysis_type.countsFile_control[1]" > gene_ids.column.txt && | |
52 #for $file in $analysis_type.countsFile_control: | |
53 cut -f 2 "${file}" > "${file}.expression_column.txt" && | |
54 #end for | |
55 #for $file in $analysis_type.countsFile_condition: | |
56 cut -f 2 "${file}" > "${file}.expression_column.txt" && | |
57 #end for | |
58 | |
59 paste | |
60 gene_ids.column.txt | |
61 #for $file in $analysis_type.countsFile_control: | |
62 "${file}.expression_column.txt" | |
63 #end for | |
64 #for $file in $analysis_type.countsFile_condition: | |
65 "${file}.expression_column.txt" | |
66 #end for | |
67 > "${expression_matrix}" && | |
68 | |
69 ## -- Create design matrix matrix | |
70 echo "sample-name Condition" >> ${design_matrix} && | |
71 #for $file in $analysis_type.countsFile_control: | |
72 echo "${file.name} ${analysis_type.factorLevel_control}" >> ${design_matrix} && | |
73 #end for | |
74 #for $file in $analysis_type.countsFile_condition: | |
75 echo "${file.name} ${analysis_type.factorLevel_condition}" >> ${design_matrix} && | |
76 #end for | |
77 #end if | |
78 | |
40 R --vanilla --slave -f $R_script '--args | 79 R --vanilla --slave -f $R_script '--args |
41 $expression_matrix | 80 $expression_matrix |
42 $design_matrix | 81 $design_matrix |
43 $contrast | 82 $contrast |
44 | 83 |
84 $analysis_report_genes | |
45 $fdr | 85 $fdr |
46 | 86 |
47 $output_count_edgeR | 87 $output_count_edgeR |
48 $output_cpm | 88 $output_cpm |
49 | 89 |
50 /dev/null <!-- Calculation of FPKM/RPKM should come here --> | 90 /dev/null ### Calculation of FPKM/RPKM should come here |
51 | 91 |
52 #if $output_raw_counts: | 92 #if $output_raw_counts: |
53 $output_raw_counts | 93 $output_raw_counts |
54 #else: | 94 #else: |
55 /dev/null | 95 /dev/null |
115 /dev/null | 155 /dev/null |
116 #end if | 156 #end if |
117 | 157 |
118 $output_format_images | 158 $output_format_images |
119 ' | 159 ' |
160 ]]> | |
120 </command> | 161 </command> |
121 | 162 |
122 <configfiles> | 163 <configfiles> |
123 <configfile name="R_script"> | 164 <configfile name="R_script"> |
124 <![CDATA[ | 165 <![CDATA[ |
132 | 173 |
133 expression_matrix_file <- args[1] | 174 expression_matrix_file <- args[1] |
134 design_matrix_file <- args[2] | 175 design_matrix_file <- args[2] |
135 contrast <- args[3] | 176 contrast <- args[3] |
136 | 177 |
137 fdr <- args[4] | 178 truncate_table_by_fdr <- args[4] |
138 | 179 fdr <- as.double(args[5]) |
139 output_count_edgeR <- args[5] | 180 |
140 output_cpm <- args[6] | 181 output_count_edgeR <- args[6] |
141 | 182 output_cpm <- args[7] |
142 output_xpkm <- args[7] ##FPKM file - to be implemented | 183 |
143 | 184 output_xpkm <- args[8] ##FPKM file - to be implemented |
144 output_raw_counts <- args[8] | 185 |
145 | 186 output_raw_counts <- args[9] |
146 output_MDSplot_logFC <- args[9] | 187 |
147 output_MDSplot_logFC_coordinates <- args[10] | 188 output_MDSplot_logFC <- args[10] |
148 | 189 output_MDSplot_logFC_coordinates <- args[11] |
149 output_MDSplot_bcv <- args[11] | 190 |
150 output_MDSplot_bcv_coordinates <- args[12] | 191 output_MDSplot_bcv <- args[12] |
151 | 192 output_MDSplot_bcv_coordinates <- args[13] |
152 output_BCVplot <- args[13] | 193 |
153 output_MAplot <- args[14] | 194 output_BCVplot <- args[14] |
154 output_PValue_distribution_plot <- args[15] | 195 output_MAplot <- args[15] |
155 output_hierarchical_clustering_plot <- args[16] | 196 output_PValue_distribution_plot <- args[16] |
156 output_heatmap_plot <- args[17] | 197 output_hierarchical_clustering_plot <- args[17] |
157 output_RData_obj <- args[18] | 198 output_heatmap_plot <- args[18] |
158 output_format_images <- args[19] | 199 output_RData_obj <- args[19] |
200 output_format_images <- args[20] | |
159 | 201 |
160 | 202 |
161 ## Obtain read-counts | 203 ## Obtain read-counts |
162 expression_matrix <- read.delim(expression_matrix_file,header=T,stringsAsFactors=F,row.names=1,check.names=FALSE,na.strings=c("")) | 204 expression_matrix <- read.delim(expression_matrix_file,header=T,stringsAsFactors=F,row.names=1,check.names=FALSE,na.strings=c("")) |
163 design_matrix <- read.delim(design_matrix_file,header=T,stringsAsFactors=F,row.names=1,check.names=FALSE,na.strings=c("")) | 205 design_matrix <- read.delim(design_matrix_file,header=T,stringsAsFactors=F,row.names=1,check.names=FALSE,na.strings=c("")) |
164 | 206 |
165 colnames(design_matrix) <- make.names(colnames(design_matrix)) | 207 colnames(design_matrix) <- make.names(colnames(design_matrix)) |
166 | 208 |
167 for(i in 1:ncol(design_matrix)) { | 209 for(i in 1:ncol(design_matrix)) { |
168 old <- design_matrix[,i] | 210 old <- design_matrix[,i] |
169 design_matrix[,i] <- make.names(design_matrix[,i]) | 211 |
170 if(paste(design_matrix[,i],collapse="\t") != paste(old,collapse="\t")) { | 212 if(any(grepl("^[0-9]+$", old, perl=TRUE) == FALSE)){ |
171 print("Renaming of factors:") | 213 # Convert invalid names |
172 print(old) | 214 design_matrix[,i] <- make.names(design_matrix[,i]) |
173 print("To:") | 215 |
174 print(design_matrix[,i]) | 216 # Print if names have been converted |
175 } | 217 if(paste(design_matrix[,i],collapse="\t") != paste(old,collapse="\t")) { |
176 ## The following line seems to malfunction the script: | 218 print("Renamed of factors:") |
177 ##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 } | |
178 } | 227 } |
179 | 228 |
180 ## 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 |
181 columns <- match(rownames(design_matrix),colnames(expression_matrix)) | 230 columns <- match(rownames(design_matrix),colnames(expression_matrix)) |
182 columns <- columns[!is.na(columns)] | 231 columns <- columns[!is.na(columns)] |
346 cont <- c(contrast) | 395 cont <- c(contrast) |
347 cont <- makeContrasts(contrasts=cont, levels=design) | 396 cont <- makeContrasts(contrasts=cont, levels=design) |
348 | 397 |
349 lrt <- glmLRT(fit, contrast=cont[,1]) | 398 lrt <- glmLRT(fit, contrast=cont[,1]) |
350 write(paste("Exporting DGE results to file...",output_count_edgeR,sep=""),stdout()) | 399 write(paste("Exporting DGE results to file...",output_count_edgeR,sep=""),stdout()) |
351 write.table(file=output_count_edgeR,topTags(lrt,n=nrow(read_counts))\$table,sep="\t",row.names=TRUE,col.names=NA) | 400 |
401 if(truncate_table_by_fdr =="all") { | |
402 write.table(file=output_count_edgeR,topTags(lrt,n=nrow(read_counts))\$table,sep="\t",row.names=TRUE,col.names=NA) | |
403 } | |
404 else { | |
405 write.table(file=output_count_edgeR,subset(topTags(lrt,n=nrow(read_counts))\$table, FDR < fdr),sep="\t",row.names=TRUE,col.names=NA) | |
406 } | |
352 write.table(file=output_cpm,cpm(dge,normalized.lib.sizes=TRUE),sep="\t",row.names=TRUE,col.names=NA) | 407 write.table(file=output_cpm,cpm(dge,normalized.lib.sizes=TRUE),sep="\t",row.names=TRUE,col.names=NA) |
353 | 408 |
354 ## todo EXPORT FPKM | 409 ## todo EXPORT FPKM |
355 write.table(file=output_raw_counts,dge\$counts,sep="\t",row.names=TRUE,col.names=NA) | 410 write.table(file=output_raw_counts,dge\$counts,sep="\t",row.names=TRUE,col.names=NA) |
356 | 411 |
456 ]]> | 511 ]]> |
457 </configfile> | 512 </configfile> |
458 </configfiles> | 513 </configfiles> |
459 | 514 |
460 <inputs> | 515 <inputs> |
461 <param name="expression_matrix" type="data" format="tabular" label="Expression (read count) matrix" /> | 516 <conditional name="analysis_type"> |
462 <param name="design_matrix" type="data" format="tabular" label="Design matrix" help="Ensure your samplenames are identical to those in the expression matrix. Preferentially, create the contrast matrix using 'edgeR: Design- from Expression matrix'." /> | 517 <param name="analysis_select" type="select" label="Analysis type"> |
463 | 518 <option value="2_factor" selected="true">2-Group test</option> |
464 <param name="contrast" type="text" label="Contrast (biological question)" help="e.g. 'tumor-normal' or '(G1+G2)/2-G3' using the factors chosen in the design matrix. Read the 'makeContrasts' manual from Limma package for more info: http://www.bioconductor.org/packages/release/bioc/html/limma.html and http://www.bioconductor.org/packages/release/bioc/vignettes/limma/inst/doc/usersguide.pdf." /> | 519 <option value="multi_factor">Multigroup test and/or complex designs with e.g. blocking</option> |
465 | 520 </param> |
466 <param name="fdr" type="float" min="0" max="1" value="0.05" label="False Discovery Rate (FDR)" /> | 521 <when value="2_factor"> |
522 <param name="factorLevel_control" type="text" value="Control" | |
523 label="Specify a factor level" help="Only letters, numbers and underscores will be retained in this field"> | |
524 <sanitizer> | |
525 <valid initial="string.letters,string.digits"><add value="_" /></valid> | |
526 </sanitizer> | |
527 </param> | |
528 <param name="countsFile_control" type="data" format="tabular,csv" multiple="true" label="Counts file(s)"/> | |
529 | |
530 <param name="factorLevel_condition" type="text" value="Condition" | |
531 label="Specify a factor level" help="Only letters, numbers and underscores will be retained in this field"> | |
532 <sanitizer> | |
533 <valid initial="string.letters,string.digits"><add value="_" /></valid> | |
534 </sanitizer> | |
535 </param> | |
536 <param name="countsFile_condition" type="data" format="tabular,csv" multiple="true" label="Counts file(s)"/> | |
537 </when> | |
538 <when value="multi_factor"> | |
539 <param name="expression_matrix" type="data" format="tabular,csv" label="Expression (read count) matrix" /> | |
540 <param name="design_matrix" type="data" format="tabular,csv" label="Design matrix" | |
541 help="Ensure your samplenames are identical to those in the expression matrix. Preferentially, create the contrast matrix using 'edgeR: Design- from Expression matrix'." /> | |
542 | |
543 <param name="contrast" type="text" label="Contrast (biological question)" | |
544 help="e.g. 'tumor-normal' or '(G1+G2)/2-G3' using the factors chosen in the design matrix. Read the 'makeContrasts' manual from Limma package for more info: http://www.bioconductor.org/packages/release/bioc/html/limma.html and http://www.bioconductor.org/packages/release/bioc/vignettes/limma/inst/doc/usersguide.pdf." /> | |
545 </when> | |
546 </conditional> | |
547 | |
548 <param name="analysis_report_genes" type="select" label="Report differentially expressed genes"> | |
549 <option value="all" selected="true">All genes</option> | |
550 <option value="significant">Only significant (defined by FDR cutoff)</option> | |
551 </param> | |
552 | |
553 <param name="fdr" type="float" min="0" max="1" value="0.01" label="False Discovery Rate (FDR) cutoff" help="Used to highlight significant genes in figures" /> | |
467 | 554 |
468 <param name="outputs" type="select" label="Optional desired outputs" multiple="true" display="checkboxes"> | 555 <param name="outputs" type="select" label="Optional desired outputs" multiple="true" display="checkboxes"> |
469 <option value="make_output_raw_counts">Raw counts table</option> | 556 <option value="make_output_raw_counts">Raw counts table</option> |
470 <option value="make_output_MDSplot_logFC">MDS-plot (logFC-method)</option> | 557 <option value="make_output_MDSplot_logFC">MDS-plot (logFC-method)</option> |
471 <option value="make_output_MDSplot_logFC_coordinates">MDS-plot coordinates table (logFC-method)</option> | 558 <option value="make_output_MDSplot_logFC_coordinates">MDS-plot coordinates table (logFC-method)</option> |
480 </param> | 567 </param> |
481 | 568 |
482 <param name="output_format_images" type="select" label="Output format of images" display="radio"> | 569 <param name="output_format_images" type="select" label="Output format of images" display="radio"> |
483 <option value="png">Portable network graphics (.png)</option> | 570 <option value="png">Portable network graphics (.png)</option> |
484 <option value="pdf">Portable document format (.pdf)</option> | 571 <option value="pdf">Portable document format (.pdf)</option> |
485 <option value="svg">Scalable vector graphics (.svg)</option> | 572 <option value="svg" selected="true">Scalable vector graphics (.svg)</option> |
486 </param> | 573 </param> |
487 </inputs> | 574 </inputs> |
488 | 575 |
489 <outputs> | 576 <outputs> |
490 <data format="tabular" name="output_count_edgeR" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - differentially expressed genes" /> | 577 <data format="tabular" name="output_count_edgeR" label="edgeR DGE on ${on_string}: differentially expressed genes" > |
491 <data format="tabular" name="output_cpm" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - CPM" /> | 578 <actions> |
492 | 579 <action name="column_names" type="metadata" default="original_gene_position,genes,logFC,logCPM,LR,PValue,FDR" /> |
493 <data format="tabular" name="output_raw_counts" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - raw counts"> | 580 </actions> |
581 </data> | |
582 <data format="tabular" name="output_cpm" label="edgeR DGE on ${on_string}: CPM" /> | |
583 | |
584 <data format="tabular" name="output_raw_counts" label="edgeR DGE on ${on_string}: raw counts"> | |
494 <filter>outputs and ("make_output_raw_counts" in outputs)</filter> | 585 <filter>outputs and ("make_output_raw_counts" in outputs)</filter> |
495 </data> | 586 </data> |
496 | 587 |
497 <data format="png" name="output_MDSplot_logFC" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - MDS-plot (logFC method)"> | 588 <data format="png" name="output_MDSplot_logFC" label="edgeR DGE on ${on_string}: MDS-plot (logFC method)"> |
498 <filter>outputs and ("make_output_MDSplot_logFC" in outputs)</filter> | 589 <filter>outputs and ("make_output_MDSplot_logFC" in outputs)</filter> |
499 | 590 |
500 <change_format> | 591 <change_format> |
501 <when input="output_format_images" value="png" format="png" /> | 592 <when input="output_format_images" value="png" format="png" /> |
502 <when input="output_format_images" value="pdf" format="pdf" /> | 593 <when input="output_format_images" value="pdf" format="pdf" /> |
503 <when input="output_format_images" value="svg" format="svg" /> | 594 <when input="output_format_images" value="svg" format="svg" /> |
504 </change_format> | 595 </change_format> |
505 </data> | 596 </data> |
506 | 597 |
507 <data format="tabular" name="output_MDSplot_logFC_coordinates" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - MDS-plot coordinates table (logFC method)"> | 598 <data format="tabular" name="output_MDSplot_logFC_coordinates" label="edgeR DGE on ${on_string}: MDS-plot coordinates table (logFC method)"> |
508 <filter>outputs and ("make_output_MDSplot_logFC_coordinates" in outputs)</filter> | 599 <filter>outputs and ("make_output_MDSplot_logFC_coordinates" in outputs)</filter> |
509 </data> | 600 </data> |
510 | 601 |
511 <data format="png" name="output_MDSplot_bcv" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - MDS-plot (bcv method)"> | 602 <data format="png" name="output_MDSplot_bcv" label="edgeR DGE on ${on_string}: MDS-plot (bcv method)"> |
512 <filter>outputs and ("make_output_MDSplot_bcv" in outputs)</filter> | 603 <filter>outputs and ("make_output_MDSplot_bcv" in outputs)</filter> |
513 | 604 |
514 <change_format> | 605 <change_format> |
515 <when input="output_format_images" value="png" format="png" /> | 606 <when input="output_format_images" value="png" format="png" /> |
516 <when input="output_format_images" value="pdf" format="pdf" /> | 607 <when input="output_format_images" value="pdf" format="pdf" /> |
517 <when input="output_format_images" value="svg" format="svg" /> | 608 <when input="output_format_images" value="svg" format="svg" /> |
518 </change_format> | 609 </change_format> |
519 </data> | 610 </data> |
520 | 611 |
521 <data format="tabular" name="output_MDSplot_bcv_coordinates" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - MDS-plot coordinates table (BCV method)"> | 612 <data format="tabular" name="output_MDSplot_bcv_coordinates" label="edgeR DGE on ${on_string}: MDS-plot coordinates table (BCV method)"> |
522 <filter>outputs and ("make_output_MDSplot_bcv_coordinates" in outputs)</filter> | 613 <filter>outputs and ("make_output_MDSplot_bcv_coordinates" in outputs)</filter> |
523 </data> | 614 </data> |
524 | 615 |
525 <data format="png" name="output_BCVplot" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - BCV-plot"> | 616 <data format="png" name="output_BCVplot" label="edgeR DGE on ${on_string}: BCV-plot"> |
526 <filter>outputs and ("make_output_BCVplot" in outputs)</filter> | 617 <filter>outputs and ("make_output_BCVplot" in outputs)</filter> |
527 | 618 |
528 <change_format> | 619 <change_format> |
529 <when input="output_format_images" value="png" format="png" /> | 620 <when input="output_format_images" value="png" format="png" /> |
530 <when input="output_format_images" value="pdf" format="pdf" /> | 621 <when input="output_format_images" value="pdf" format="pdf" /> |
531 <when input="output_format_images" value="svg" format="svg" /> | 622 <when input="output_format_images" value="svg" format="svg" /> |
532 </change_format> | 623 </change_format> |
533 </data> | 624 </data> |
534 | 625 |
535 <data format="png" name="output_MAplot" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - MA-plot"> | 626 <data format="png" name="output_MAplot" label="edgeR DGE on ${on_string}: MA-plot"> |
536 <filter>outputs and ("make_output_MAplot" in outputs)</filter> | 627 <filter>outputs and ("make_output_MAplot" in outputs)</filter> |
537 | 628 |
538 <change_format> | 629 <change_format> |
539 <when input="output_format_images" value="png" format="png" /> | 630 <when input="output_format_images" value="png" format="png" /> |
540 <when input="output_format_images" value="pdf" format="pdf" /> | 631 <when input="output_format_images" value="pdf" format="pdf" /> |
541 <when input="output_format_images" value="svg" format="svg" /> | 632 <when input="output_format_images" value="svg" format="svg" /> |
542 </change_format> | 633 </change_format> |
543 </data> | 634 </data> |
544 | 635 |
545 <data format="png" name="output_PValue_distribution_plot" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - P-Value distribution"> | 636 <data format="png" name="output_PValue_distribution_plot" label="edgeR DGE on ${on_string}: P-Value distribution"> |
546 <filter>outputs and ("make_output_PValue_distribution_plot" in outputs)</filter> | 637 <filter>outputs and ("make_output_PValue_distribution_plot" in outputs)</filter> |
547 | 638 |
548 <change_format> | 639 <change_format> |
549 <when input="output_format_images" value="png" format="png" /> | 640 <when input="output_format_images" value="png" format="png" /> |
550 <when input="output_format_images" value="pdf" format="pdf" /> | 641 <when input="output_format_images" value="pdf" format="pdf" /> |
551 <when input="output_format_images" value="svg" format="svg" /> | 642 <when input="output_format_images" value="svg" format="svg" /> |
552 </change_format> | 643 </change_format> |
553 </data> | 644 </data> |
554 | 645 |
555 <data format="png" name="output_hierarchical_clustering_plot" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - Hierarchical custering"> | 646 <data format="png" name="output_hierarchical_clustering_plot" label="edgeR DGE on ${on_string}: Hierarchical custering"> |
556 <filter>outputs and ("make_output_hierarchical_clustering_plot" in outputs)</filter> | 647 <filter>outputs and ("make_output_hierarchical_clustering_plot" in outputs)</filter> |
557 | 648 |
558 <change_format> | 649 <change_format> |
559 <when input="output_format_images" value="png" format="png" /> | 650 <when input="output_format_images" value="png" format="png" /> |
560 <when input="output_format_images" value="pdf" format="pdf" /> | 651 <when input="output_format_images" value="pdf" format="pdf" /> |
561 <when input="output_format_images" value="svg" format="svg" /> | 652 <when input="output_format_images" value="svg" format="svg" /> |
562 </change_format> | 653 </change_format> |
563 </data> | 654 </data> |
564 | 655 |
565 <data format="png" name="output_heatmap_plot" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - Heatmap"> | 656 <data format="png" name="output_heatmap_plot" label="edgeR DGE on ${on_string}: Heatmap"> |
566 <filter>outputs and ("make_output_heatmap_plot" in outputs)</filter> | 657 <filter>outputs and ("make_output_heatmap_plot" in outputs)</filter> |
567 | 658 |
568 <change_format> | 659 <change_format> |
569 <when input="output_format_images" value="png" format="png" /> | 660 <when input="output_format_images" value="png" format="png" /> |
570 <when input="output_format_images" value="pdf" format="pdf" /> | 661 <when input="output_format_images" value="pdf" format="pdf" /> |
571 <when input="output_format_images" value="svg" format="svg" /> | 662 <when input="output_format_images" value="svg" format="svg" /> |
572 </change_format> | 663 </change_format> |
573 </data> | 664 </data> |
574 | 665 |
575 <data format="RData" name="output_RData_obj" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - R data object"> | 666 <data format="RData" name="output_RData_obj" label="edgeR DGE on ${on_string}: R data object"> |
576 <filter>outputs and ("make_output_RData_obj" in outputs)</filter> | 667 <filter>outputs and ("make_output_RData_obj" in outputs)</filter> |
577 </data> | 668 </data> |
578 | 669 |
579 <data format="txt" name="output_R" label="edgeR DGE on ${design_matrix.hid}: ${design_matrix.name} - R output (debug)" > | 670 <data format="txt" name="output_R" label="edgeR DGE on ${on_string}: R output (debug)" > |
580 <filter>outputs and ("make_output_R_stdout" in outputs)</filter> | 671 <filter>outputs and ("make_output_R_stdout" in outputs)</filter> |
581 </data> | 672 </data> |
582 </outputs> | 673 </outputs> |
583 | 674 |
584 <tests> | 675 <tests> |
585 <test> | 676 <test> |
677 <param name="analysis_select" value="multi_factor" /> | |
678 | |
586 <param name="expression_matrix" value="Differential_Gene_Expression/expression_matrix.tabular.txt" /> | 679 <param name="expression_matrix" value="Differential_Gene_Expression/expression_matrix.tabular.txt" /> |
587 <param name="design_matrix" value="Differential_Gene_Expression/design_matrix.tabular.txt" /> | 680 <param name="design_matrix" value="Differential_Gene_Expression/design_matrix.tabular.txt" /> |
588 | 681 |
589 <param name="contrast" value="E-C"/> | 682 <param name="contrast" value="E-C"/> |
590 | 683 |
684 <param name="analysis_report_genes" value="all"/> | |
685 <param name="fdr" value="0.01" /> | |
686 | |
687 <output name="output_count_edgeR" file="Differential_Gene_Expression/differentially_expressed_genes.tabular.txt" /> | |
688 </test> | |
689 <test> | |
690 <param name="analysis_select" value="multi_factor" /> | |
691 | |
692 <param name="expression_matrix" value="Differential_Gene_Expression/expression_matrix.tabular.txt" /> | |
693 <param name="design_matrix" value="Differential_Gene_Expression/design_matrix.tabular.txt" /> | |
694 | |
695 <param name="contrast" value="E-C"/> | |
696 | |
697 <param name="analysis_report_genes" value="significant"/> | |
591 <param name="fdr" value="0.05" /> | 698 <param name="fdr" value="0.05" /> |
592 | 699 |
593 <param name="output_format_images" value="png" /> | 700 <output name="output_count_edgeR" file="Differential_Gene_Expression/differentially_expressed_genes.significant.tabular.txt" /> |
701 </test> | |
702 <test> | |
703 <param name="analysis_select" value="2_factor" /> | |
704 | |
705 <param name="factorLevel_control" value="C" /> | |
706 <param name="countsFile_control" value="Differential_Gene_Expression/C1,Differential_Gene_Expression/C2,Differential_Gene_Expression/C3,Differential_Gene_Expression/C4" ftype="tabular" /> | |
707 | |
708 <param name="factorLevel_condition" value="E" /> | |
709 <param name="countsFile_condition" value="Differential_Gene_Expression/E1,Differential_Gene_Expression/E2,Differential_Gene_Expression/E3,Differential_Gene_Expression/E4" ftype="tabular" /> | |
710 | |
711 <param name="analysis_report_genes" value="all"/> | |
712 <param name="fdr" value="0.01" /> | |
594 | 713 |
595 <output name="output_count_edgeR" file="Differential_Gene_Expression/differentially_expressed_genes.tabular.txt" /> | 714 <output name="output_count_edgeR" file="Differential_Gene_Expression/differentially_expressed_genes.tabular.txt" /> |
715 </test> | |
716 <test> | |
717 <param name="analysis_select" value="2_factor" /> | |
718 | |
719 <param name="factorLevel_control" value="C" /> | |
720 <param name="countsFile_control" value="Differential_Gene_Expression/C1,Differential_Gene_Expression/C2,Differential_Gene_Expression/C3,Differential_Gene_Expression/C4" ftype="tabular" /> | |
721 | |
722 <param name="factorLevel_condition" value="E" /> | |
723 <param name="countsFile_condition" value="Differential_Gene_Expression/E1,Differential_Gene_Expression/E2,Differential_Gene_Expression/E3,Differential_Gene_Expression/E4" ftype="tabular" /> | |
724 | |
725 <param name="analysis_report_genes" value="significant"/> | |
726 <param name="fdr" value="0.05" /> | |
727 | |
728 <output name="output_count_edgeR" file="Differential_Gene_Expression/differentially_expressed_genes.significant.tabular.txt" /> | |
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" /> | |
596 </test> | 742 </test> |
597 </tests> | 743 </tests> |
598 | 744 |
599 <help> | 745 <help> |
600 edgeR: Differential Gene(Expression) Analysis | 746 edgeR: Differential Gene(Expression) Analysis |
659 | 805 |
660 - Tumor-Normal | 806 - Tumor-Normal |
661 - African-European | 807 - African-European |
662 - 0.5*(Control+Placebo) / Treated | 808 - 0.5*(Control+Placebo) / Treated |
663 | 809 |
664 Installation | |
665 ------------ | |
666 | |
667 This tool requires no specific configuration. The following dependencies will installed automatically: | |
668 | |
669 - R | |
670 - limma | |
671 - edgeR | |
672 | |
673 License | |
674 ------- | |
675 - R | |
676 - GPL 2 & GPL 3 | |
677 - limma | |
678 - GPL (>=2) | |
679 - edgeR | |
680 - GPL (>=2) | |
681 | |
682 @CONTACT@ | 810 @CONTACT@ |
683 </help> | 811 </help> |
684 | 812 |
685 <expand macro="citations" /> | 813 <expand macro="citations" /> |
686 </tool> | 814 </tool> |