Mercurial > repos > modencode-dcc > macs
comparison macs_wrapper.py @ 6:3ef6fc38df62 draft
Uploaded
author | modencode-dcc |
---|---|
date | Mon, 21 Jan 2013 17:34:16 -0500 |
parents | 2ee42189a96e |
children |
comparison
equal
deleted
inserted
replaced
5:8fe679d31b82 | 6:3ef6fc38df62 |
---|---|
48 output_extra_path = sys.argv[4] | 48 output_extra_path = sys.argv[4] |
49 # Added peaks output argument | 49 # Added peaks output argument |
50 output_peaks = sys.argv[5] | 50 output_peaks = sys.argv[5] |
51 | 51 |
52 experiment_name = '_'.join( options['experiment_name'].split() ) #save experiment name here, it will be used by macs for filenames (gzip of wig files will fail with spaces - macs doesn't properly escape them)..need to replace all whitespace, split makes this easier | 52 experiment_name = '_'.join( options['experiment_name'].split() ) #save experiment name here, it will be used by macs for filenames (gzip of wig files will fail with spaces - macs doesn't properly escape them)..need to replace all whitespace, split makes this easier |
53 cmdline = "macs -t %s" % ",".join( options['input_chipseq'] ) | 53 cmdline = "macs14 -t %s" % ",".join( options['input_chipseq'] ) |
54 if options['input_control']: | 54 if options['input_control']: |
55 cmdline = "%s -c %s" % ( cmdline, ",".join( options['input_control'] ) ) | 55 cmdline = "%s -c %s" % ( cmdline, ",".join( options['input_control'] ) ) |
56 cmdline = "%s --format='%s' --name='%s' --gsize='%s' --tsize='%s' --bw='%s' --pvalue='%s' --mfold='%s' %s --lambdaset='%s' %s" % ( cmdline, options['format'], experiment_name, options['gsize'], options['tsize'], options['bw'], options['pvalue'], options['mfold'], options['nolambda'], options['lambdaset'], options['futurefdr'] ) | 56 cmdline = "%s --format='%s' --name='%s' --gsize='%s' --tsize='%s' --bw='%s' --pvalue='%s' --mfold='%s' %s --lambdaset='%s' %s" % ( cmdline, options['format'], experiment_name, options['gsize'], options['tsize'], options['bw'], options['pvalue'], options['mfold'], options['nolambda'], options['lambdaset'], options['futurefdr'] ) |
57 if 'wig' in options: | 57 if 'wig' in options: |
58 wigextend = int( options['wig']['wigextend'] ) | 58 wigextend = int( options['wig']['wigextend'] ) |