Commit 02f9348c authored by Thomas Van Parys's avatar Thomas Van Parys
Browse files

Let launch script export working directory (fixes #49)

parent f5e729b6
......@@ -302,8 +302,14 @@ def prompt(species_file):
if outputDirEntered:
outputDir = outputDirEntered
workDir = os.path.join(os.getcwd(),'work')
workDirEntered = input("Working and cache folder (default: ./work)> ")
if workDirEntered:
workDir = workDirEntered
scriptLines = []
scriptLines.append("module load nextflow")
scriptLines.append("export NXF_WORK={}".format(workDir))
scriptLines.append("nextflow run {} --name {} --input {} --output {}".format(main_nf_path, runName, inputDir, outputDir))
with open(launchScript, 'w') as scriptFile:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment