File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,6 +151,9 @@ workflow ASSEMBLYSUBMIT {
151151 ' true' // skip_header - we want to keep the header from the first file and skip it for the rest
152152 )
153153
154+ if (! submission_study && ! study_metadata) {
155+ error(" Either --submission_study or --study_metadata must be provided" )
156+ }
154157 def study_accession_ch
155158 if (submission_study) {
156159 // Use provided study accession directly
Original file line number Diff line number Diff line change @@ -262,6 +262,9 @@ workflow GENOMESUBMIT {
262262 )
263263
264264 // --------- Register study if accession not provided
265+ if (! submission_study && ! study_metadata) {
266+ error(" Either --submission_study or --study_metadata must be provided" )
267+ }
265268 def study_accession_ch
266269 if (submission_study) {
267270 study_accession_ch = channel. of(submission_study)
Original file line number Diff line number Diff line change @@ -69,6 +69,9 @@ workflow READSUBMIT {
6969 }
7070 }
7171
72+ if (! submission_study && ! study_metadata) {
73+ error(" Either --submission_study or --study_metadata must be provided" )
74+ }
7275 def study_accession_ch
7376 if (submission_study) {
7477 // Use provided study accession directly
You can’t perform that action at this time.
0 commit comments