Mercurial > repos > bgruening > upload_testing
comparison reverse.py @ 108:00a775971820 draft
Uploaded
| author | bgruening | 
|---|---|
| date | Fri, 11 Apr 2014 18:14:57 -0400 | 
| parents | f258fbfead4b | 
| children | 89dd3b812906 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 107:da57c348cbb0 | 108:00a775971820 | 
|---|---|
| 7 | 7 | 
| 8 DEBUG = False | 8 DEBUG = False | 
| 9 | 9 | 
| 10 def main(): | 10 def main(): | 
| 11 (options, args) = _parse_args() | 11 (options, args) = _parse_args() | 
| 12 format_args = (options.input, options.output) | 12 _run_shell("cat '%s' > '%s'" % (options.input, options.output)) | 
| 13 _run_shell("cat '%s' > '%s'" % format_args) | 13 _run_dbtoolkit("com.compomics.dbtoolkit.toolkit.ReverseFASTADB", "'%s' | head --lines -4 >> '%s'" % (options.input, options.output), options) | 
| 14 _run_dbtoolkit("com.compomics.dbtoolkit.toolkit.ReverseFASTADB", "'%s' | head --lines -4 >> '%s'" % \ | |
| 15 format_args) | |
| 16 | 14 | 
| 17 | 15 | 
| 18 def _run_shell(command): | 16 def _run_shell(command): | 
| 19 if DEBUG: | 17 if DEBUG: | 
| 20 print "Running shell command %s" % command | 18 print "Running shell command %s" % command | 
