comparison spp_wrapper.py @ 16:ea38ad1cfb62 draft default tip

Replace simplejson with json.
author stemcellcommons
date Thu, 10 Apr 2014 13:01:06 -0400
parents 64f2784d471f
children
comparison
equal deleted inserted replaced
15:a83ceb02d138 16:ea38ad1cfb62
3 #Date: November 2012 3 #Date: November 2012
4 ##################### 4 #####################
5 5
6 import sys, subprocess, tempfile, shutil, glob, os, os.path, gzip 6 import sys, subprocess, tempfile, shutil, glob, os, os.path, gzip
7 from galaxy import eggs 7 from galaxy import eggs
8 import pkg_resources 8 import json
9 pkg_resources.require( "simplejson" )
10 import simplejson
11 9
12 CHUNK_SIZE = 1024 10 CHUNK_SIZE = 1024
13 11
14 def main(): 12 def main():
15 options = simplejson.load( open( sys.argv[1] ) ) 13 options = json.load( open( sys.argv[1] ) )
16 output_narrow_peak = sys.argv[2] 14 output_narrow_peak = sys.argv[2]
17 output_region_peak = sys.argv[3] 15 output_region_peak = sys.argv[3]
18 output_peakshift_file = sys.argv[4] 16 output_peakshift_file = sys.argv[4]
19 output_rdata_file = sys.argv[5] 17 output_rdata_file = sys.argv[5]
20 output_plot_file = sys.argv[6] 18 output_plot_file = sys.argv[6]