# HG changeset patch
# User sauria
# Date 1440622422 14400
# Node ID cb4f92e6fd4e78c764d09a14723cc5ffc82d6ffc
# Parent 0a9c76d80e33216c2190902b81b181c165710316
planemo upload for repository https://github.com/bxlab/galaxy_tools/suites/suite_hifive commit ded5555ebf85f4807cbe4f1bf1945a757bdc724d
diff -r 0a9c76d80e33 -r cb4f92e6fd4e galaxy.datatypes.mrh.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/galaxy.datatypes.mrh.py Wed Aug 26 16:53:42 2015 -0400
@@ -0,0 +1,33 @@
+from galaxy import eggs
+
+import pkg_resources
+pkg_resources.require( "bx-python" )
+
+import logging, os, sys, time, sets, tempfile, shutil
+import data
+from galaxy import util
+from galaxy.datatypes.sniff import *
+from cgi import escape
+import urllib
+from bx.intervals.io import *
+from galaxy.datatypes import metadata
+from galaxy.datatypes.metadata import MetadataElement
+from galaxy.datatypes.binary import Binary
+
+
+class Mrh( Binary ):
+ """Class describing a MRH file"""
+ file_ext = "mrh"
+
+ def sniff( self, filename ):
+ # MRH is a binary file type.
+ # The first 8 bytes of any mrh file is '42054205'.
+ try:
+ header = open( filename, 'rb' ).read(8)
+ if binascii.b2a_hex( header ) == binascii.hexlify( '42054205' ):
+ return True
+ return False
+ except:
+ return False
+
+Binary.register_sniffable_binary_format("mrh", "mrh", Mrh)
diff -r 0a9c76d80e33 -r cb4f92e6fd4e hifive.xml
--- a/hifive.xml Fri Jun 05 14:09:00 2015 -0400
+++ b/hifive.xml Wed Aug 26 16:53:42 2015 -0400
@@ -74,6 +74,13 @@
#end if
$hic_project $hic_int_output
#end if
+#if str( $command.command_select ) == "hic-mrheatmap":
+ @HIC_CHROMOSOMES@
+ @HIC_DATATYPE@
+ $command.trans1
+ @MRH_OPTIONS@
+ $hic_project $hic_mrheatmap
+#end if
#if str( $command.command_select ) == "5c-complete":
@5C_NORMALIZE@
@5C_SEQUENCE@
@@ -148,6 +155,7 @@
+
@@ -232,6 +240,16 @@
+
+
+
+
+
+
+
+
+
+
@@ -344,6 +362,9 @@
(command["command_select"] == "hic-interval")
(command["image"]["generate"] == "yes")
+
+ (command["command_select"] == "hic-mrheatmap")
+
(command["command_select"] == "5c-complete")
diff -r 0a9c76d80e33 -r cb4f92e6fd4e hifive_macros.xml
--- a/hifive_macros.xml Fri Jun 05 14:09:00 2015 -0400
+++ b/hifive_macros.xml Wed Aug 26 16:53:42 2015 -0400
@@ -659,6 +659,31 @@
+
+-f $command.mrhminobs
+-b $command.mrhminbinsize
+-B $command.mrhmaxbinsize
+#if str( $command.mrhtransminbinsize ) != "":
+ -r $command.mrhtransminbinsize
+#end if
+#if str( $command.mrhtransmaxbinsize ) != "":
+ -R $command.mrhtransmaxbinsize
+#end if
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#if str( $command.dynamic.binning ) == "yes":
-y
@@ -756,6 +781,8 @@
Extract HiC interval / Extract 5C interval - this command returns a genomic interval files with data from a specified region. This data may also be plotted at the tie of extraction.
+Create HiC multi-resolution heatmap - this command returns a multi-resolution heatmap file with data heatmapped across resolutions from the smallest to largest specified binsizes in 2X steps.
+
]]>
`_.
+Original documentation can be found `here `_.
Automated Installation
======================
@@ -28,20 +28,7 @@
XML files to your ``tool_conf.xml`` as normal. For example, use::
diff -r 0a9c76d80e33 -r cb4f92e6fd4e tool_dependencies.xml
--- a/tool_dependencies.xml Fri Jun 05 14:09:00 2015 -0400
+++ b/tool_dependencies.xml Wed Aug 26 16:53:42 2015 -0400
@@ -4,7 +4,7 @@
-
+
@@ -12,7 +12,7 @@
-
-
+
+