Repository 'anno_peak_figure'
hg clone https://toolshed.g2.bx.psu.edu/repos/testtool/anno_peak_figure

Changeset 3:6bcf1f0bff41 (2017-03-17)
Previous changeset 2:a23d604eb17b (2017-02-28) Next changeset 4:57082662d2e5 (2017-03-17)
Commit message:
Uploaded
modified:
annoPeakFigure/.Rhistory
annoPeakFigure/annoPeakFigure.R
annoPeakFigure/annoPeakFigure.xml
added:
annoPeakFigure/.Rapp.history
annoPeakFigure/tool_dependencies 10.27.23.xml
removed:
annoPeakFigure/tool_dependencies.xml
b
diff -r a23d604eb17b -r 6bcf1f0bff41 annoPeakFigure/.Rhistory
--- a/annoPeakFigure/.Rhistory Tue Feb 28 05:55:29 2017 -0500
+++ b/annoPeakFigure/.Rhistory Fri Mar 17 07:08:49 2017 -0400
b
@@ -263,3 +263,4 @@
 upsetplot(annotatePeak, vennpie = TRUE)
 dev.off()
 getwd()
+??GRanges
b
diff -r a23d604eb17b -r 6bcf1f0bff41 annoPeakFigure/annoPeakFigure.R
--- a/annoPeakFigure/annoPeakFigure.R Tue Feb 28 05:55:29 2017 -0500
+++ b/annoPeakFigure/annoPeakFigure.R Fri Mar 17 07:08:49 2017 -0400
[
@@ -1,9 +1,13 @@
+require("ChIPseeker", quietly = TRUE)
+require("ChIPpeakAnno", quietly = TRUE)
+require("EnsDb.Hsapiens.v75", quietly = TRUE)
+
 options(warn = -1)
+options("download.file.method"="wget")
 
 args <- commandArgs(trailingOnly = TRUE)
 DMR = args[1]
-annoPeakFigure1 = args[2]
-annoPeakFigure2 = args[3]
+annoPeakTable = args[2]
 
 #DMR <- ("test-data/DMR.bed")
 DMRInfo = read.table(
@@ -14,28 +18,22 @@
   quote = ""
 )
 
-DMRPeaks <- GRanges(seqnames = DMRInfo[, 1],
-                    ranges = IRanges
-                    (start = DMRInfo[, 2], end = DMRInfo[, 3]))
+peaks <- GRanges(seqnames = DMRInfo[, 1],
+                 ranges = IRanges
+                 (start = DMRInfo[, 2], end = DMRInfo[, 3]))
 
-annotatePeak <- (annotatePeak(DMRPeaks, level = "gene", annoDb = "org.Hs.eg.db"))
+annoData <- toGRanges(EnsDb.Hsapiens.v75)
+seqlevelsStyle(peaks) <- seqlevelsStyle(annoData)
 
-#annoPeakFigure1 <- ('test-data/annoPeakUpset.png')
-#annoPeakFigure2 <- ('test-data/annoPeakAnnoBar.png')
+anno <- annoPeaks(peaks, annoData=annoData,bindingType ="startSite")
 
-png(file = annoPeakFigure1,
+#annoPeakFigure <- ('test-data/annoPie.png')
+
+png(file = annoPeakFigure,
     width = 1200,
     height = 600)
 
-plotAnnoBar(annotatePeak)
+pie1(table(anno$insideFeature))
 
 dev.off()
 
-png(file = annoPeakFigure2,
-    width = 1200,
-    height = 600)
-
-upsetplot(annotatePeak, vennpie = TRUE)
-
-dev.off()
-
b
diff -r a23d604eb17b -r 6bcf1f0bff41 annoPeakFigure/annoPeakFigure.xml
--- a/annoPeakFigure/annoPeakFigure.xml Tue Feb 28 05:55:29 2017 -0500
+++ b/annoPeakFigure/annoPeakFigure.xml Fri Mar 17 07:08:49 2017 -0400
[
@@ -1,19 +1,18 @@
 <tool id="APfigure" name="annoPeakFigure" version="1.16.2">
   <requirements>
-         <requirement type="package" version="3.2.1">R</requirement>
-     </requirements>
+   <requirement name="package_r_3_2_1" type="package" version="3.2.1">R</requirement>
+</requirements>
 <stdio>
    <exit_code range="1:" />
 </stdio>
-  <command> Rscript $__tool_directory__/annoPeakFigure.R "$DMR" "$annoPeakFigure1" "$annoPeakFigure2"</command>
+  <command> Rscript $__tool_directory__/annoPeakFigure.R "$DMR" "$annoPeakFigure"</command>
   <inputs>
     <param optional="false" format="bed" name="DMR" type="data" value="" help="Bumphunter peaks." label="[required] file">
       <validator type="empty_field" message="This field is required."/>
     </param>
   </inputs>
   <outputs>
-    <data format="png" name="annoPeakFigure1" label="annoPeakUpset.png"/>
-    <data format="png" name="annoPeakFigure2" label="annoPeakAnnoBar.png"/>
+    <data format="png" name="annoPeakFigure" label="annoPeakFigure.png"/>
   </outputs>
   <tests>
     <test>
@@ -24,8 +23,7 @@
           </collection>
         </element>
         </param>
-        <output format="png" name="annoPeakFigure" label="test-data/annoPeakUpset.png"/>
-        <output format="png" name="annoPeakFigure" label="test-data/annoPeakAnnoBar.png"/>
+        <output format="png" name="annoPeakFigure" label="test-data/annoPeakFigure.png"/>
         </test>
     </tests>
   <help>
b
diff -r a23d604eb17b -r 6bcf1f0bff41 annoPeakFigure/tool_dependencies 10.27.23.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/annoPeakFigure/tool_dependencies 10.27.23.xml Fri Mar 17 07:08:49 2017 -0400
b
b'@@ -0,0 +1,276 @@\n+<?xml version=\'1.0\' encoding=\'utf-8\'?>\n+  <tool_dependency>\n+            <actions>\n+                <action type="setup_r_environment">\n+                    <repository changeset_revision="d0bf97420fb5" name="package_r_3_2_1" owner="iuc" toolshed="https://toolshed.g2.bx.psu.edu">\n+                        <package name="R" version="3.2.1" />\n+                      </repository>\n+\n+                      <package>https://www.bioconductor.org/packages/release/bioc/src/contrib/ChIPseeker_1.10.3.tar.gz</package>\n+                      <package>https://www.bioconductor.org/packages/release/bioc/src/contrib/ChIPpeakAnno_3.8.9.tar.gz</package>\n+                      <package>https://bioconductor.org/packages/release/bioc/src/contrib/GenomicRanges_1.26.3.tar.gz</package>\n+                      <package>https://bioconductor.org/packages/release/bioc/src/contrib/BiocGenerics_0.20.0.tar.gz</package>\n+\n+                      <package sha256sum="397c3c90af966f48eebe8f5d9e40c41b17541f0baaa102eec3ea4faae5a2bd49">\n+                          https://depot.galaxyproject.org/software/munsell/munsell_0.4.3.tar.gz\n+                      </package>\n+                      <package sha256sum="0d8069eb48e91f6f6d6a9148f4e2dc5026cabead15dd15fc343eff9cf33f538f">\n+                          https://depot.galaxyproject.org/software/labeling/labeling_0.3.tar.gz\n+                      </package>\n+                      <package sha256sum="762bcb9b5188274fd81d82f785cf2846a5acc61fad55e2ff8ec1502282c27881">\n+                          https://depot.galaxyproject.org/software/DO.db/DO.db_2.9.tar.gz\n+                      </package>\n+                      <package sha256sum="de6f46918b40bcf4f8c03442f2a0411f1796794e0e7b00770ed0aac56601833d">\n+                          https://bioarchive.galaxyproject.org/fgsea_1.1.2.tar.gz\n+                      </package>\n+                      <package sha256sum="7f1aa58085a030b7855a4e189bea2f17ff72333a1f884f0ab7f5af1fbe101397">\n+                          https://bioarchive.galaxyproject.org/GOSemSim_2.1.2.tar.gz\n+                      </package>\n+                      <package sha256sum="dc64ed09b8b5f8d66ed4936cde3491974d6bc5178dd259b6eab7ef3936aa5602">\n+                          https://depot.galaxyproject.org/software/igraph/igraph_1.0.1.tar.gz\n+                      </package>\n+                      <package sha256sum="f9e132c35d3af919cff291465d030817ff74e56eb6b2770390ae8566881b62ed">\n+                          https://bioarchive.galaxyproject.org/qvalue_2.7.0.tar.gz\n+                      </package>\n+                      <package sha256sum="6d3783610379be4c5676d9236cf66276a166b5b96c18f2759e9b219758959b6b">\n+                          https://depot.galaxyproject.org/software/reshape2/reshape2_1.4.2.tar.gz\n+                      </package>\n+                      <package sha256sum="642b88fb1fce7bac72a0038ce532b65b8a79dffe826fec25033cf386ab630cd3">\n+                          https://depot.galaxyproject.org/software/scales/scales_0.4.1.tar.gz\n+                      </package>\n+                      <package sha256sum="51a74de64296d7cbed04a015a9f9725de95adb5e04301d1cd58190d7365fb104">\n+                          https://bioarchive.galaxyproject.org/biomaRt_2.31.3.tar.gz\n+                      </package>\n+                      <package sha256sum="801e4869830ff3da1d38e41f5a2296a54fc10a7419c6ffb108582850c701e76f">\n+                          https://depot.galaxyproject.org/software/gtable/gtable_0.2.0.tar.gz\n+                      </package>\n+                      <package sha256sum="ed8a8bd0591223f742be80fd1cd8c4a9618d0f04011ec95c272b61ea45193104">\n+                          https://depot.galaxyproject.org/software/tibble/tibble_1.2.tar.gz\n+                      </package>\n+                      <package sha256sum="13738f55b2044184fe91f53d17516a445dfb508227527921218cda6f01f98dcb">\n+                          https://depot.galaxyproject.org/software/lazyeval/lazyeval_0.2.0.tar.gz\n+                      </package>\n+     '..b'                   <package sha256sum="d999620688354c283de5bb305203f5db70271b4dfdc23577cae8c2ba94c9e349">\n+                          https://depot.galaxyproject.org/software/quadprog/quadprog_1.5-5.tar.gz\n+                      </package>\n+                      <package sha256sum="cd26dbd60b2e2060541c4bb579ec1e0f6c262501431460b096b5fef323204432">\n+                          https://bioarchive.galaxyproject.org/GEOquery_2.41.0.tar.gz\n+                      </package>\n+                      <package sha256sum="bee70645c7cc88250761092762a9d293b4644f311047baecf49fde766d3059bc">\n+                          https://bioarchive.galaxyproject.org/Biobase_2.35.0.tar.gz\n+                      </package>\n+                      <package sha256sum="531aa7042bad9fc72d4b6868cc9f78fe24f5c27e36703c6be78d5eaf1b828ca1">\n+                          https://bioarchive.galaxyproject.org/minfi_1.21.2.tar.gz\n+                      </package>\n+                      <package sha256sum="c6133611cc991dfc17410d06a9ddcc6dcff0153bceffdf7d5a9b7dc42f31afa6">\n+                          https://depot.galaxyproject.org/software/org.Hs.eg.db/org.Hs.eg.db_3.4.0.tar.gz\n+                      </package>\n+                      <package sha256sum="605aa3643588a2f40a942fa760b92662060a0dfedb26b4e4cd6f1a78b703093f">\n+                          https://depot.galaxyproject.org/software/FDb.InfiniumMethylation.hg19/FDb.InfiniumMethylation.hg19_2.2.0.tar.gz\n+                      </package>\n+                      <package sha256sum="cf61732ef9b38ecb6579055d1cd145198ad23a5a9ae4378f94a1494e6c56c884">\n+                          https://depot.galaxyproject.org/software/data.table/data.table_1.10.0.tar.gz\n+                      </package>\n+                      <package sha256sum="d47be4430a1c343c20f9d3f67b8511506904e46be13ea4199769f012f1449209">\n+                          https://depot.galaxyproject.org/software/GO.db/GO.db_3.4.0.tar.gz\n+                      </package>\n+                      <package sha256sum="dfccd4b4d6ec90cd7628fd128d2456d792f406cee4d32b13448dcb0ffe4ab056">\n+                          https://depot.galaxyproject.org/software/NMF/NMF_0.20.6.tar.gz\n+                      </package>\n+                      <package sha256sum="7fa594d9576592e393283ec4fc79fd72128f663bd516e05651957ce1e6fe3c38">\n+                          https://depot.galaxyproject.org/software/colorspace/colorspace_1.3-1.tar.gz\n+                      </package>\n+                      <package sha256sum="31151eaf36f70bdc1172da5ff5088ee51cc0a3db4ead59c7c38c25316d580dd1">\n+                          https://depot.galaxyproject.org/software/dichromat/dichromat_2.0-0.tar.gz\n+                      </package>\n+                      <package sha256sum="7a4957c66ff622d7d1456adfbb728c60d406cdb2a754979797f9dcb0dc8fee99">\n+                          https://depot.galaxyproject.org/software/fastmatch/fastmatch_1.0-4.tar.gz\n+                      </package>\n+                      <package sha256sum="5183e8dd7943df11c0f44460566adf06c03d5320f142699298f516d423b06ce1">\n+                          https://depot.galaxyproject.org/software/irlba/irlba_2.1.2.tar.gz\n+                      </package>\n+                      <package sha256sum="19ad78c16bd5757333e7abbd5eebcec081deb494c9a4b6eec6919a3747b3386f">\n+                          https://depot.galaxyproject.org/software/pkgmaker/pkgmaker_0.22.tar.gz\n+                      </package>\n+                      <package sha256sum="58a5c43b8012ca5e509fa29a8daf6f24f097b8eb021a723f6a9c33db1dd3f430">\n+                          https://depot.galaxyproject.org/software/registry/registry_0.3.tar.gz\n+                      </package>\n+                      <package sha256sum="27019835b750f470b13dbb7fecd3b839a61b52774e23fffa191f919533768fb9">\n+                          https://depot.galaxyproject.org/software/rngtools/rngtools_1.2.4.tar.gz\n+                      </package>\n+                  </action>\n+              </actions>\n+          <readme>\n+          </readme>\n+  </tool_dependency>\n'
b
diff -r a23d604eb17b -r 6bcf1f0bff41 annoPeakFigure/tool_dependencies.xml
--- a/annoPeakFigure/tool_dependencies.xml Tue Feb 28 05:55:29 2017 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
b
b'@@ -1,279 +0,0 @@\n-<?xml version=\'1.0\' encoding=\'utf-8\'?>\n-  <tool_dependency>\n-            <actions>\n-                <action type="setup_r_environment">\n-                    <repository changeset_revision="d0bf97420fb5" name="package_r_3_2_1" owner="iuc" toolshed="https://toolshed.g2.bx.psu.edu">\n-                        <package name="R" version="3.2.1" />\n-                      </repository>\n-                      <package sha256sum="397c3c90af966f48eebe8f5d9e40c41b17541f0baaa102eec3ea4faae5a2bd49">\n-                          https://depot.galaxyproject.org/software/munsell/munsell_0.4.3.tar.gz\n-                      </package>\n-                      <package sha256sum="0d8069eb48e91f6f6d6a9148f4e2dc5026cabead15dd15fc343eff9cf33f538f">\n-                          https://depot.galaxyproject.org/software/labeling/labeling_0.3.tar.gz\n-                      </package>\n-                      <package sha256sum="762bcb9b5188274fd81d82f785cf2846a5acc61fad55e2ff8ec1502282c27881">\n-                          https://depot.galaxyproject.org/software/DO.db/DO.db_2.9.tar.gz\n-                      </package>\n-                      <package sha256sum="de6f46918b40bcf4f8c03442f2a0411f1796794e0e7b00770ed0aac56601833d">\n-                          https://bioarchive.galaxyproject.org/fgsea_1.1.2.tar.gz\n-                      </package>\n-                      <package sha256sum="7f1aa58085a030b7855a4e189bea2f17ff72333a1f884f0ab7f5af1fbe101397">\n-                          https://bioarchive.galaxyproject.org/GOSemSim_2.1.2.tar.gz\n-                      </package>\n-                      <package sha256sum="dc64ed09b8b5f8d66ed4936cde3491974d6bc5178dd259b6eab7ef3936aa5602">\n-                          https://depot.galaxyproject.org/software/igraph/igraph_1.0.1.tar.gz\n-                      </package>\n-                      <package sha256sum="f9e132c35d3af919cff291465d030817ff74e56eb6b2770390ae8566881b62ed">\n-                          https://bioarchive.galaxyproject.org/qvalue_2.7.0.tar.gz\n-                      </package>\n-                      <package sha256sum="6d3783610379be4c5676d9236cf66276a166b5b96c18f2759e9b219758959b6b">\n-                          https://depot.galaxyproject.org/software/reshape2/reshape2_1.4.2.tar.gz\n-                      </package>\n-                      <package sha256sum="642b88fb1fce7bac72a0038ce532b65b8a79dffe826fec25033cf386ab630cd3">\n-                          https://depot.galaxyproject.org/software/scales/scales_0.4.1.tar.gz\n-                      </package>\n-                      <package sha256sum="51a74de64296d7cbed04a015a9f9725de95adb5e04301d1cd58190d7365fb104">\n-                          https://bioarchive.galaxyproject.org/biomaRt_2.31.3.tar.gz\n-                      </package>\n-                      <package sha256sum="801e4869830ff3da1d38e41f5a2296a54fc10a7419c6ffb108582850c701e76f">\n-                          https://depot.galaxyproject.org/software/gtable/gtable_0.2.0.tar.gz\n-                      </package>\n-                      <package sha256sum="ed8a8bd0591223f742be80fd1cd8c4a9618d0f04011ec95c272b61ea45193104">\n-                          https://depot.galaxyproject.org/software/tibble/tibble_1.2.tar.gz\n-                      </package>\n-                      <package sha256sum="13738f55b2044184fe91f53d17516a445dfb508227527921218cda6f01f98dcb">\n-                          https://depot.galaxyproject.org/software/lazyeval/lazyeval_0.2.0.tar.gz\n-                      </package>\n-                      <package sha256sum="8097ec0e4868f6bf746f821cff7842f696e874bb3a84f1b2aa977ecd961c3e4e">\n-                          https://depot.galaxyproject.org/software/gdata/gdata_2.17.0.tar.gz\n-                      </package>\n-                      <package sha256sum="d32a73febf00930355cc00f3e4e71357412e0f163faae6a4bf7f552cacfe9af4">\n-                          https://depot.galaxyproject.org/software/caTools/caTools_1.17.1.tar.gz\n-                      </package>\n-                      <package sha256sum="13636'..b'                   <package sha256sum="d999620688354c283de5bb305203f5db70271b4dfdc23577cae8c2ba94c9e349">\n-                          https://depot.galaxyproject.org/software/quadprog/quadprog_1.5-5.tar.gz\n-                      </package>\n-                      <package sha256sum="cd26dbd60b2e2060541c4bb579ec1e0f6c262501431460b096b5fef323204432">\n-                          https://bioarchive.galaxyproject.org/GEOquery_2.41.0.tar.gz\n-                      </package>\n-                      <package sha256sum="bee70645c7cc88250761092762a9d293b4644f311047baecf49fde766d3059bc">\n-                          https://bioarchive.galaxyproject.org/Biobase_2.35.0.tar.gz\n-                      </package>\n-                      <package sha256sum="531aa7042bad9fc72d4b6868cc9f78fe24f5c27e36703c6be78d5eaf1b828ca1">\n-                          https://bioarchive.galaxyproject.org/minfi_1.21.2.tar.gz\n-                      </package>\n-                      <package sha256sum="c6133611cc991dfc17410d06a9ddcc6dcff0153bceffdf7d5a9b7dc42f31afa6">\n-                          https://depot.galaxyproject.org/software/org.Hs.eg.db/org.Hs.eg.db_3.4.0.tar.gz\n-                      </package>\n-                      <package sha256sum="605aa3643588a2f40a942fa760b92662060a0dfedb26b4e4cd6f1a78b703093f">\n-                          https://depot.galaxyproject.org/software/FDb.InfiniumMethylation.hg19/FDb.InfiniumMethylation.hg19_2.2.0.tar.gz\n-                      </package>\n-                      <package sha256sum="cf61732ef9b38ecb6579055d1cd145198ad23a5a9ae4378f94a1494e6c56c884">\n-                          https://depot.galaxyproject.org/software/data.table/data.table_1.10.0.tar.gz\n-                      </package>\n-                      <package sha256sum="d47be4430a1c343c20f9d3f67b8511506904e46be13ea4199769f012f1449209">\n-                          https://depot.galaxyproject.org/software/GO.db/GO.db_3.4.0.tar.gz\n-                      </package>\n-                      <package sha256sum="dfccd4b4d6ec90cd7628fd128d2456d792f406cee4d32b13448dcb0ffe4ab056">\n-                          https://depot.galaxyproject.org/software/NMF/NMF_0.20.6.tar.gz\n-                      </package>\n-                      <package sha256sum="7fa594d9576592e393283ec4fc79fd72128f663bd516e05651957ce1e6fe3c38">\n-                          https://depot.galaxyproject.org/software/colorspace/colorspace_1.3-1.tar.gz\n-                      </package>\n-                      <package sha256sum="31151eaf36f70bdc1172da5ff5088ee51cc0a3db4ead59c7c38c25316d580dd1">\n-                          https://depot.galaxyproject.org/software/dichromat/dichromat_2.0-0.tar.gz\n-                      </package>\n-                      <package sha256sum="7a4957c66ff622d7d1456adfbb728c60d406cdb2a754979797f9dcb0dc8fee99">\n-                          https://depot.galaxyproject.org/software/fastmatch/fastmatch_1.0-4.tar.gz\n-                      </package>\n-                      <package sha256sum="5183e8dd7943df11c0f44460566adf06c03d5320f142699298f516d423b06ce1">\n-                          https://depot.galaxyproject.org/software/irlba/irlba_2.1.2.tar.gz\n-                      </package>\n-                      <package sha256sum="19ad78c16bd5757333e7abbd5eebcec081deb494c9a4b6eec6919a3747b3386f">\n-                          https://depot.galaxyproject.org/software/pkgmaker/pkgmaker_0.22.tar.gz\n-                      </package>\n-                      <package sha256sum="58a5c43b8012ca5e509fa29a8daf6f24f097b8eb021a723f6a9c33db1dd3f430">\n-                          https://depot.galaxyproject.org/software/registry/registry_0.3.tar.gz\n-                      </package>\n-                      <package sha256sum="27019835b750f470b13dbb7fecd3b839a61b52774e23fffa191f919533768fb9">\n-                          https://depot.galaxyproject.org/software/rngtools/rngtools_1.2.4.tar.gz\n-                      </package>\n-                  </action>\n-              </actions>\n-          <readme>\n-          </readme>\n-  </tool_dependency>\n'