Mercurial > repos > lgueguen > sartools
comparison abims_sartools_edger_wrapper.py @ 4:05c9b1a7f44e draft default tip
Uploaded new release 1.7.3
| author | lgueguen |
|---|---|
| date | Thu, 07 Jan 2021 11:12:01 +0000 |
| parents | de6d0b7c17af |
| children |
comparison
equal
deleted
inserted
replaced
| 3:de6d0b7c17af | 4:05c9b1a7f44e |
|---|---|
| 61 tables_html_files_path=args.tables_html_files_path | 61 tables_html_files_path=args.tables_html_files_path |
| 62 rdata=args.rdata | 62 rdata=args.rdata |
| 63 report_html=args.report_html | 63 report_html=args.report_html |
| 64 log=args.log | 64 log=args.log |
| 65 #Print the parameters selected | 65 #Print the parameters selected |
| 66 print("Wrapper arguments: %s") %(args) | 66 print("Wrapper arguments: %s" %(args)) |
| 67 | 67 |
| 68 #Get the working directory path | 68 #Get the working directory path |
| 69 working_directory = os.getcwd() | 69 working_directory = os.getcwd() |
| 70 #Get the script directory path | 70 #Get the script directory path |
| 71 script_directory=os.path.dirname(os.path.realpath(__file__)) | 71 script_directory=os.path.dirname(os.path.realpath(__file__)) |
| 94 if colors: | 94 if colors: |
| 95 cmd+="--colors %s " % (colors) | 95 cmd+="--colors %s " % (colors) |
| 96 if forceCairoGraph: | 96 if forceCairoGraph: |
| 97 cmd+="--forceCairoGraph %s " % (forceCairoGraph) | 97 cmd+="--forceCairoGraph %s " % (forceCairoGraph) |
| 98 cmd+="> %s 2>&1" % (log) | 98 cmd+="> %s 2>&1" % (log) |
| 99 print("Rscript command: %s") % (cmd) | 99 print("Rscript command: %s" % (cmd)) |
| 100 os.system(cmd) | 100 os.system(cmd) |
| 101 | 101 |
| 102 #Get output files | 102 #Get output files |
| 103 os.mkdir(figures_html_files_path) | 103 os.mkdir(figures_html_files_path) |
| 104 os.mkdir(tables_html_files_path) | 104 os.mkdir(tables_html_files_path) |
