# HG changeset patch
# User hackdna
# Date 1400597615 14400
# Node ID 23b22c1692faa3e23565804ebaa0e8f243792fd7
# Parent b15734276ca339c74c2e208180b84a03d36db51f
Replace simplejson with json.
diff -r b15734276ca3 -r 23b22c1692fa run_spp.R
--- a/run_spp.R Thu Oct 17 12:39:45 2013 -0400
+++ b/run_spp.R Tue May 20 10:53:35 2014 -0400
@@ -120,7 +120,7 @@
sep.peak <- NA # user-defined peak shift
exclude.min <- 10 # lowerbound of strand shift exclusion region
exclude.max <- NaN # upperbound of strand shift exclusion region
- n.nodes <- NA # number of parallel processing nodes
+ n.nodes <- 32 # number of parallel processing nodes
fdr <- 0.01 # false discovery rate threshold for peak calling
npeak <- NA # threshold on number of peaks to call
temp.dir <- tempdir() # temporary directory
diff -r b15734276ca3 -r 23b22c1692fa spp_wrapper.py
--- a/spp_wrapper.py Thu Oct 17 12:39:45 2013 -0400
+++ b/spp_wrapper.py Tue May 20 10:53:35 2014 -0400
@@ -5,14 +5,12 @@
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
def main():
- options = simplejson.load( open( sys.argv[1] ) )
+ options = json.load( open( sys.argv[1] ) )
output_narrow_peak = sys.argv[2]
output_region_peak = sys.argv[3]
output_peakshift_file = sys.argv[4]
@@ -99,4 +97,4 @@
os.unlink( stderr_name )
#os.rmdir( tmp_dir )
-if __name__ == "__main__": main()
\ No newline at end of file
+if __name__ == "__main__": main()
diff -r b15734276ca3 -r 23b22c1692fa spp_wrapper.xml
--- a/spp_wrapper.xml Thu Oct 17 12:39:45 2013 -0400
+++ b/spp_wrapper.xml Tue May 20 10:53:35 2014 -0400
@@ -99,7 +99,7 @@
<%
-import simplejson
+import json
%>
#set $__options ={ 'experiment_name':str($experiment_name), 'chip_file':str($major_command.input_chipseq_file1) }
@@ -165,7 +165,7 @@
#set $__options['savp'] = str( $major_command.save_plot_file )
#end if
-${ simplejson.dumps( __options ) }
+${ json.dumps( __options ) }