Mercurial > repos > stemcellcommons > spp_tool
comparison spp_wrapper.py @ 1:23b22c1692fa draft default tip
Replace simplejson with json.
| author | hackdna |
|---|---|
| date | Tue, 20 May 2014 10:53:35 -0400 |
| parents | b15734276ca3 |
| children |
comparison
equal
deleted
inserted
replaced
| 0:b15734276ca3 | 1:23b22c1692fa |
|---|---|
| 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] |
