Mercurial > repos > stemcellcommons > macs2
diff macs2_wrapper.py @ 20:db2805f9df66 draft
Replace simplejson with json.
author | stemcellcommons |
---|---|
date | Wed, 09 Apr 2014 18:06:03 -0400 |
parents | 49777e347e25 |
children | eed6c8dcef5d |
line wrap: on
line diff
--- a/macs2_wrapper.py Wed Apr 09 18:03:05 2014 -0400 +++ b/macs2_wrapper.py Wed Apr 09 18:06:03 2014 -0400 @@ -1,12 +1,9 @@ -#purpose: macs2 python wrapper -#author: Ziru Zhou -#date: November, 2012 +# macs2 python wrapper +# based on http://toolshed.g2.bx.psu.edu/view/modencode-dcc/macs2 import sys, subprocess, tempfile, shutil, glob, os, os.path, gzip from galaxy import eggs -import pkg_resources -pkg_resources.require( "simplejson" ) -import simplejson +import json CHUNK_SIZE = 1024 @@ -57,8 +54,8 @@ #========================================================================================== def main(): #take in options file and output file names - options = simplejson.load( open( sys.argv[1] ) ) - outputs = simplejson.load( open( sys.argv[2] ) ) + options = json.load( open( sys.argv[1] ) ) + outputs = json.load( open( sys.argv[2] ) ) #================================================================================= #parse options and execute macs2