changeset 5:4803f5186f1a draft default tip

Uploaded
author jeremyjliu
date Tue, 26 May 2015 12:44:08 -0400
parents 53e45130e6f9
children
files region_motif_compare.r region_motif_compare.xml
diffstat 2 files changed, 13 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/region_motif_compare.r	Sat May 16 22:38:25 2015 -0400
+++ b/region_motif_compare.r	Tue May 26 12:44:08 2015 -0400
@@ -28,8 +28,8 @@
 # Set input and reference files
 inTab1 = args[9]
 inTab2 = args[10]
-enrichTab = args[11]
-depleteTab = args[12]
+enrichTab1 = args[11]
+enrichTab2 = args[12]
 plotsPng = args[13]
 
 # Load dependencies
@@ -174,9 +174,9 @@
 	outDF$enrichment = ifelse(outDF$enrichment>1,
 														round(outDF$enrichment,3),
 														paste("1/",round(1/outDF$enrichment,3)))
-	write.table(outDF[indicesEnrich,], file=enrichTab, quote=FALSE, 
+	write.table(outDF[indicesEnrich,], file=enrichTab1, quote=FALSE, 
 							sep="\t", append=FALSE, row.names=FALSE, col.names=TRUE)
-	write.table(outDF[indicesDeplete,], file=depleteTab, quote=FALSE, 
+	write.table(outDF[indicesDeplete,], file=enrichTab2, quote=FALSE, 
 							sep="\t", append=FALSE, row.names=FALSE, col.names=TRUE)
 }
 
--- a/region_motif_compare.xml	Sat May 16 22:38:25 2015 -0400
+++ b/region_motif_compare.xml	Tue May 26 12:44:08 2015 -0400
@@ -4,14 +4,14 @@
     <requirement type="set_environment">RMOTIF_PATH</requirement>
   </requirements>
   <command interpreter="Rscript">
-    region_motif_compare.r --args \$RMOTIF_PATH $pwm_file.fields.path $in_tab_1 $in_tab_2 
-    $out_enriched 
-    $out_depleted 
+    region_motif_compare.r --args \$RMOTIF_PATH $pwm_file.fields.path $in_tab_a $in_tab_b 
+    $out_enriched_a 
+    $out_enriched_b
     $out_plots
   </command>
   <inputs>
-    <param name="in_tab_1" type="data" format="tabular" label="Region Set 1 Motif Count File"/>
-    <param name="in_tab_2" type="data" format="tabular" label="Region Set 2 Motif Count File"/>
+    <param name="in_tab_a" type="data" format="tabular" label="Region Set A Motif Count File"/>
+    <param name="in_tab_b" type="data" format="tabular" label="Region Set B Motif Count File"/>
 
     <param name="pwm_file" type="select" label="Using motif database PWM file">
       <options from_data_table="motif_databases"/>
@@ -19,11 +19,12 @@
   </inputs>
 
   <outputs>
-    <data name="out_enriched" format="tabular" label="Enriched Motifs"/>
-    <data name="out_depleted" format="tabular" label="Depleted Motifs"/>
+    <data name="out_enriched_a" format="tabular" label="Enriched Motifs in Region Set A"/>
+    <data name="out_enriched_b" format="tabular" label="Enriched Motifs in Region Set B"/>
     <data name="out_plots" format="png" label="Motif Count Comparison Plots"/>
   </outputs>
 
+<!--
   <tests>
     <test>
       <param name="in_tab_1" value="XXX.tab" />
@@ -34,6 +35,7 @@
       <output name="out_plots" file="XXX.png" />          
     </test>
   </tests>
+-->
 
   <help>
     This tools reads in two counts file and determines enriched and depleted