ENCODE-DCC / croo

Cromwell output organizer
MIT License
13 stars 3 forks source link

use miniwdl to parse WDL #20

Closed leepc12 closed 4 years ago

leepc12 commented 4 years ago

Move parameters (as comments) for Croo into WDL workflow's meta section. This meta section is optional and any string key / string value is allowed.

Example for ENCODE ATAC-Seq pipeline:

#CROO out_def https://storage.googleapis.com/encode-pipeline-output-definition/atac.croo.v4.json

workflow atac {
    meta {
        author: 'Jin wook Lee (leepc12@gmail.com) at ENCODE-DCC'
        description: 'ATAC-Seq/DNase-Seq pipeline'

        croo_out_def: 'https://storage.googleapis.com/encode-pipeline-output-definition/atac.croo.v4.json'
    }
}

miniwdl's WDL package has parse_document function, which checks syntax of WDL but does not check imports. Use this function to get access to workflow's meta section.

Croo will still be able to parse comment-based parameters but it will be deprecated soon.