@prefix SchemaDefRequirement: <https://w3id.org/cwl/cwl#SchemaDefRequirement/> .
@prefix CommandLineBinding: <https://w3id.org/cwl/cwl#CommandLineBinding/> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix DockerRequirement: <https://w3id.org/cwl/cwl#DockerRequirement/> .
@prefix Workflow: <https://w3id.org/cwl/cwl#Workflow/> .
@prefix InlineJavascriptRequirement: <https://w3id.org/cwl/cwl#InlineJavascriptRequirement/> .
@prefix sld:   <https://w3id.org/cwl/salad#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix CommandOutputBinding: <https://w3id.org/cwl/cwl#CommandOutputBinding/> .
@prefix ns2:   <http://commonwl.org/cwltool#> .
@prefix ns1:   <foaf:> .
@prefix dct:   <http://purl.org/dc/terms/> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix cwl:   <https://w3id.org/cwl/cwl#> .
@prefix ExpressionTool: <https://w3id.org/cwl/cwl#ExpressionTool/> .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/PreprocessedFilesType.yaml#PreprocessedFileset/normalizedVcfs>
        sld:type  sld:null ;
        sld:type  [ sld:items  cwl:File ;
                    sld:type   sld:array
                  ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/PreprocessedFilesType.yaml#PreprocessedFileset>
        sld:fields  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/PreprocessedFilesType.yaml#PreprocessedFileset/cleanedVcfs> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/PreprocessedFilesType.yaml#PreprocessedFileset/extractedSnvs> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/PreprocessedFilesType.yaml#PreprocessedFileset/mergedVcfs> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/PreprocessedFilesType.yaml#PreprocessedFileset/normalizedVcfs> ;
        sld:type    sld:record .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/normalize.cwl#normalized-vcf>
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "*.normalized.vcf.gz" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl>
        a                        cwl:Workflow ;
        rdfs:comment             "This workflow will perform preprocessing steps on VCFs for the OxoG/Variantbam/Annotation workflow.\n" ;
        ns2:original_cwlVersion  "v1.0" ;
        dct:creator              [ ns1:mbox  "solomon.shorser@oicr.on.ca" ;
                                   ns1:name  "Solomon Shorser"
                                 ] ;
        Workflow:steps           <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#populate_output_record> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#normalize> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#pass_filter> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filter_for_indel> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#clean> ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/v1.2> ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/LoadListingRequirement> ] ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/NetworkAccess> ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#out_dir> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#ref> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filesToPreprocess> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#vcfdir> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#preprocessedFiles> ;
        cwl:requirements         [ a  cwl:SubworkflowFeatureRequirement ] ;
        cwl:requirements         [ a  cwl:ScatterFeatureRequirement ] ;
        cwl:requirements         [ a                           cwl:SchemaDefRequirement ;
                                   SchemaDefRequirement:types  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/PreprocessedFilesType.yaml#PreprocessedFileset>
                                 ] ;
        cwl:requirements         [ a  cwl:StepInputExpressionRequirement ] ;
        cwl:requirements         [ a  cwl:MultipleInputFeatureRequirement ] ;
        cwl:requirements         [ a       cwl:InlineJavascriptRequirement ;
                                   InlineJavascriptRequirement:expressionLib
                                           "\n/**\n * Filters an array of files. Returns an array that only contains files that contain \"indel\" in their name.\n * @param inArr - the array.\n * @return a filtered array - it will only contain files whose names contain the string \"indel\".\n */\nfunction filterForIndels(inArr)\n{\n\tvar arr = [];\n\tfor (var i = 0; i < inArr.length ; i++)\n\t{\n\t\tif (inArr[i].basename.indexOf(\"indel\") >= 0)\n\t\t{\n\t\t\tarr.push(inArr[i]);\n\t\t}\n\t}\n\treturn arr;\n}\n\n/**\n * This function will filter an array of files and select only files that match\n * workflowName and vcfType.\n * @param workflowName - the name of the workflow to filter for.\n * @param vcfType - the type of VCF (snv, indel, etc...)\n * @param inArr - an array of files (File[]) to search through.\n * @return an array that has been filtered.\n */\nfunction filterFor(workflowName, vcfType, inArr)\n{\n\tvar arr = [];\n\tfor (var i = 0; i < inArr.length; i++)\n\t{\n\t\tif (typeof(inArr[i]) == \"string\") //(\"class\" in inArr[i] && inArr[i].class == \"File\")\n\t\t{\n\t\t\tif (inArr[i].indexOf(workflowName) >= 0 && inArr[i].indexOf(vcfType) >= 0)\n\t\t\t{\n\t\t\t\tarr.push(inArr[i])\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (\"class\" in inArr[i] && inArr[i].class == \"File\")\n\t\t\t{\n\t\t\t\tif (inArr[i].basename.indexOf(workflowName) >= 0 && inArr[i].basename.indexOf(vcfType) >= 0)\n\t\t\t\t{\n\t\t\t\t\tarr.push(inArr[i])\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn arr;\n}\n"
                                 ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/PreprocessedFilesType.yaml#PreprocessedFileset/cleanedVcfs>
        sld:type  sld:null ;
        sld:type  [ sld:items  cwl:File ;
                    sld:type   sld:array
                  ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/PreprocessedFilesType.yaml#PreprocessedFileset/extractedSnvs>
        sld:type  sld:null ;
        sld:type  [ sld:items  cwl:File ;
                    sld:type   sld:array
                  ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#normalize/vcf>
        cwl:source  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filter_for_indel/out_vcf> .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/normalize.cwl#vcf>
        cwl:inputBinding  [ CommandLineBinding:position
                          1 ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/pass-filter.cwl#pass-filter>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "This tool will pass-filter a VCF.\n" ;
        rdfs:label               "pass-filter" ;
        ns2:original_cwlVersion  "v1.0" ;
        dct:creator              [ ns1:mbox  "solomon.shorser@oicr.on.ca" ;
                                   ns1:name  "Solomon Shorser"
                                 ] ;
        cwl:arguments            ( "$(inputs.vcfdir.path)" "$(inputs.filesToFilter)" ) ;
        cwl:baseCommand          ( "/opt/oxog_scripts/pass_filter.sh" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/v1.2> ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/NetworkAccess> ] ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/LoadListingRequirement> ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/pass-filter.cwl#filesToFilter> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/pass-filter.cwl#vcfdir> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/pass-filter.cwl#pass-filter/output> ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "quay.io/pancancer/pcawg-oxog-tools"
                                 ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/clean_vcf.cwl#vcf>
        cwl:inputBinding  [ CommandLineBinding:position
                          1 ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#normalize>
        rdfs:comment  "Normalize the INDEL VCFs." ;
        cwl:in        <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#normalize/ref> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#normalize/vcf> ;
        cwl:out       <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#normalize/normalized-vcf> ;
        cwl:run       <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/normalize.cwl> ;
        cwl:scatter   ( <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#normalize/vcf> ) .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filter_for_indel>
        rdfs:comment  "Filters the input list and selects the INDEL VCFs." ;
        cwl:in        <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filter_for_indel/in_vcf> ;
        cwl:out       <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filter_for_indel/out_vcf> ;
        cwl:run       <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filter_for_indel/6af10f3d-8f34-4216-b215-930ef031a09c> .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#out_dir>
        rdfs:comment  "The name of the output directory" ;
        sld:type      xsd:string .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filter_for_indel/in_vcf>
        cwl:source  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#clean/clean_vcf> .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#populate_output_record>
        cwl:in   <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#populate_output_record/normalizedVcfs> ;
        cwl:out  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#populate_output_record/output_record> ;
        cwl:run  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#populate_output_record/39b37147-1096-409f-afa4-8ffe53304ec5> .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#normalize/ref>
        cwl:source  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#ref> .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/normalize.cwl#ref>
        cwl:inputBinding    [ CommandLineBinding:position
                          2 ] ;
        cwl:secondaryFiles  []  ;
        sld:type            cwl:File .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#clean>
        rdfs:comment  "Clean the VCFs." ;
        cwl:in        <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#clean/vcf> ;
        cwl:out       <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#clean/clean_vcf> ;
        cwl:run       <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/clean_vcf.cwl> ;
        cwl:scatter   ( <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#clean/vcf> ) .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/normalize.cwl#normalize>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "This tool will normalize an INDEL VCF using bcf-tools norm.\n" ;
        rdfs:label               "normalize" ;
        ns2:original_cwlVersion  "v1.0" ;
        dct:creator              [ ns1:mbox  "solomon.shorser@oicr.on.ca" ;
                                   ns1:name  "Solomon Shorser"
                                 ] ;
        cwl:baseCommand          ( "/opt/oxog_scripts/normalize.sh" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/v1.2> ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/NetworkAccess> ] ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/LoadListingRequirement> ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/normalize.cwl#ref> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/normalize.cwl#vcf> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/normalize.cwl#normalized-vcf> ;
        cwl:requirements         [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "quay.io/pancancer/pcawg-oxog-tools"
                                 ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filter_for_indel/6af10f3d-8f34-4216-b215-930ef031a09c/in_vcf>
        sld:type  [ sld:items  cwl:File ;
                    sld:type   sld:array
                  ] ;
        sld:type  [ sld:items  cwl:File ;
                    sld:type   sld:array
                  ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#populate_output_record/normalizedVcfs>
        cwl:source  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#normalize/normalized-vcf> .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#vcfdir>
        rdfs:comment  "The directory where the files are" ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filesToPreprocess>
        rdfs:comment  "The files to process" ;
        sld:type      [ sld:items  xsd:string ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filter_for_indel/6af10f3d-8f34-4216-b215-930ef031a09c>
        a                          cwl:ExpressionTool ;
        ExpressionTool:expression  "$({ out_vcf: filterForIndels(inputs.in_vcf) })\n" ;
        cwl:inputs                 <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filter_for_indel/6af10f3d-8f34-4216-b215-930ef031a09c/in_vcf> ;
        cwl:outputs                <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filter_for_indel/6af10f3d-8f34-4216-b215-930ef031a09c/out_vcf> .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#ref>
        rdfs:comment  "Reference file, used for normalized INDELs" ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#populate_output_record/39b37147-1096-409f-afa4-8ffe53304ec5/output_record>
        sld:type  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/PreprocessedFilesType.yaml#PreprocessedFileset> .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#pass_filter/vcfdir>
        cwl:source  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#vcfdir> .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#populate_output_record/39b37147-1096-409f-afa4-8ffe53304ec5>
        a                          cwl:ExpressionTool ;
        ExpressionTool:expression  "$(\n    {output_record: {\n        \"normalizedVcfs\": inputs.normalizedVcfs\n    }}\n)\n" ;
        cwl:inputs                 <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#populate_output_record/39b37147-1096-409f-afa4-8ffe53304ec5/normalizedVcfs> ;
        cwl:outputs                <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#populate_output_record/39b37147-1096-409f-afa4-8ffe53304ec5/output_record> .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/PreprocessedFilesType.yaml#PreprocessedFileset/mergedVcfs>
        sld:type  sld:null ;
        sld:type  [ sld:items  cwl:File ;
                    sld:type   sld:array
                  ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/pass-filter.cwl#filesToFilter>
        rdfs:comment  "The names of the files that will actually be filtered" ;
        sld:type      [ sld:items  xsd:string ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#clean/vcf>
        cwl:source  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#pass_filter/output> .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#pass_filter>
        rdfs:comment  "Filter out non-PASS lines from the VCFs in filesToProcess." ;
        cwl:in        <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#pass_filter/filesToFilter> , <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#pass_filter/vcfdir> ;
        cwl:out       <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#pass_filter/output> ;
        cwl:run       <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/pass-filter.cwl> .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#pass_filter/filesToFilter>
        cwl:source     <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filesToPreprocess> ;
        cwl:valueFrom  "${\n    var VCFs = []\n    for (var i in self)\n    {\n        if (self[i].toLowerCase().indexOf(\"muse\") == -1)\n        {\n            VCFs.push(self[i]);\n        }\n    }\n    return VCFs;\n}\n" .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/pass-filter.cwl#vcfdir>
        rdfs:comment  "The directory containing the files" ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/pass-filter.cwl#pass-filter/output>
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "*.pass-filtered.vcf.gz" ] ;
        sld:type           [ sld:items  cwl:File ;
                             sld:type   sld:array
                           ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/clean_vcf.cwl#clean-vcf>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "This tool will clean a VCF for use in the OxoG workflow.\n" ;
        rdfs:label               "clean-vcf" ;
        ns2:original_cwlVersion  "v1.0" ;
        dct:creator              [ ns1:mbox  "solomon.shorser@oicr.on.ca" ;
                                   ns1:name  "Solomon Shorser"
                                 ] ;
        cwl:baseCommand          ( "/opt/oxog_scripts/clean_vcf.sh" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/v1.2> ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/NetworkAccess> ] ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/LoadListingRequirement> ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/clean_vcf.cwl#vcf> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/clean_vcf.cwl#clean-vcf/clean_vcf> ;
        cwl:requirements         [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "quay.io/pancancer/pcawg-oxog-tools"
                                 ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#filter_for_indel/6af10f3d-8f34-4216-b215-930ef031a09c/out_vcf>
        sld:type  [ sld:items  cwl:File ;
                    sld:type   sld:array
                  ] ;
        sld:type  [ sld:items  cwl:File ;
                    sld:type   sld:array
                  ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/clean_vcf.cwl#clean-vcf/clean_vcf>
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "*.cleaned.vcf" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#populate_output_record/39b37147-1096-409f-afa4-8ffe53304ec5/normalizedVcfs>
        sld:type  [ sld:items  cwl:File ;
                    sld:type   sld:array
                  ] ;
        sld:type  [ sld:items  cwl:File ;
                    sld:type   sld:array
                  ] .

<https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#preprocessedFiles>
        cwl:outputSource  <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/preprocess_vcf.cwl#populate_output_record/output_record> ;
        sld:type          <https://w3id.org/cwl/view/git/b4a02b7ba5733b3cc5b84b79ab0634ff9e4d1aeb/PreprocessedFilesType.yaml#PreprocessedFileset> .
