@@ -52,18 +52,21 @@ def cli():
5252
5353
5454help_msg_extra = """
55+ \b
56+ Nextflow options:
57+ -profile <profile> Nextflow profile to use (e.g. test)
58+ -params-file <file> Nextflow params file to use (e.g. assets/params.yml)
59+ -preview Preview the processes that will run without executing them
60+
5561\b
5662EXAMPLES:
5763Execute with slurm:
58- logan run ... --mode slurm
64+ logan run --output path/to/outdir --mode slurm
5965Preview the processes that will run:
60- logan run ... --mode local -preview
66+ logan run --output path/to/outdir --mode local -preview
6167Add nextflow args (anything supported by `nextflow run`):
62- logan run ... -work-dir path/to/workDir
63- Run with a specific installation of logan:
64- logan run --main path/to/logan/main.nf ...
65- Run with a specific tag, branch, or commit from GitHub:
66- logan run --main CCBR/LOGAN -r v0.1.0 ...
68+ logan run --output path/to/outdir --mode slurm -profile test
69+ logan run --output path/to/outdir --mode slurm -profile test -params-file assets/params.yml
6770"""
6871
6972
@@ -82,6 +85,7 @@ def cli():
8285 type = str ,
8386 default = repo_base ("main.nf" ),
8487 show_default = True ,
88+ hidden = True ,
8589)
8690@click .option (
8791 "--output" ,
@@ -95,7 +99,7 @@ def cli():
9599 "_mode" ,
96100 help = "Run mode (slurm, local)" ,
97101 type = str ,
98- default = "local " ,
102+ default = "slurm " ,
99103 show_default = True ,
100104)
101105@click .option (
@@ -109,7 +113,12 @@ def cli():
109113)
110114@click .argument ("nextflow_args" , nargs = - 1 )
111115def run (main_path , output , _mode , force_all , ** kwargs ):
112- """Run the workflow"""
116+ """
117+ Run the workflow
118+
119+ Note: you must first run `logan init --output <output_dir>` to initialize
120+ the output directory.
121+ """
113122 if ( # this is the only acceptable github repo option for logan
114123 main_path != "CCBR/LOGAN"
115124 ):
0 commit comments