@@ -24,7 +24,7 @@ const generateInputs = async (projHome, projectConf, workflowConf) => {
2424 // projectConf: project conf.js
2525 // workflowList in utils/workflow
2626 const workflowSettings = workflowList [ projectConf . workflow . name ] ;
27- const template = String ( fs . readFileSync ( `${ config . CROMWELL . TEMPLATE_DIR } /${ projectConf . category } / ${ workflowSettings . inputs_tmpl } ` ) ) ;
27+ const template = String ( fs . readFileSync ( `${ config . CROMWELL . TEMPLATE_DIR } /${ workflowSettings . inputs_tmpl } ` ) ) ;
2828 const params = { ...workflowConf , ...projectConf . workflow . input , outdir : `${ projHome } /${ workflowSettings . outdir } ` } ;
2929
3030 if ( projectConf . workflow . name === 'sra2fastq' ) {
@@ -35,8 +35,8 @@ const generateInputs = async (projHome, projectConf, workflowConf) => {
3535 const inputs = ejs . render ( template , params ) ;
3636 await fs . promises . writeFile ( `${ projHome } /pipeline_inputs.json` , inputs ) ;
3737 // render options template and write to pipeline_options.json
38- if ( fs . existsSync ( `${ config . CROMWELL . TEMPLATE_DIR } /${ projectConf . category } / ${ workflowSettings . options_tmpl } ` ) ) {
39- const optionsTemplate = String ( fs . readFileSync ( `${ config . CROMWELL . TEMPLATE_DIR } /${ projectConf . category } / ${ workflowSettings . options_tmpl } ` ) ) ;
38+ if ( fs . existsSync ( `${ config . CROMWELL . TEMPLATE_DIR } /${ workflowSettings . options_tmpl } ` ) ) {
39+ const optionsTemplate = String ( fs . readFileSync ( `${ config . CROMWELL . TEMPLATE_DIR } /${ workflowSettings . options_tmpl } ` ) ) ;
4040 const options = ejs . render ( optionsTemplate , params ) ;
4141 await fs . promises . writeFile ( `${ projHome } /pipeline_options.json` , options ) ;
4242 }
@@ -52,7 +52,7 @@ const submitWorkflow = (proj, projectConf, inputsize) => {
5252 formData . append ( 'workflowInputs' , fs . createReadStream ( `${ projHome } /pipeline_inputs.json` ) ) ;
5353 // logger.debug(`workflowInputs${projHome}/pipeline_inputs.json`);
5454
55- const imports = `${ config . CROMWELL . WDL_DIR } /${ projectConf . category } / ${ workflowList [ projectConf . workflow . name ] . wdl_imports } ` ;
55+ const imports = `${ config . CROMWELL . WDL_DIR } /${ workflowList [ projectConf . workflow . name ] . wdl_imports } ` ;
5656 const optionsJson = `${ projHome } /pipeline_options.json` ;
5757
5858 if ( fs . existsSync ( optionsJson ) ) {
0 commit comments