@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 Workflow: <https://w3id.org/cwl/cwl#Workflow/> .
@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 SoftwarePackage: <https://w3id.org/cwl/cwl#SoftwarePackage/> .
@prefix ns1:   <http://schema.org/> .
@prefix SoftwareRequirement: <https://w3id.org/cwl/cwl#SoftwareRequirement/> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix Parameter: <https://w3id.org/cwl/cwl#Parameter/> .
@prefix cwl:   <https://w3id.org/cwl/cwl#> .
@prefix ResourceRequirement: <https://w3id.org/cwl/cwl#ResourceRequirement/> .
@prefix CommandLineTool: <https://w3id.org/cwl/cwl#CommandLineTool/> .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-end_mode.yaml#end_mode>
        sld:symbols  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-end_mode.yaml#end_mode/PE> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-end_mode.yaml#end_mode/SE> ;
        sld:type     sld:enum .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/fastq_to_fasta.cwl#fasta>
        cwl:format         <http://edamontology.org/format_1929> ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.fastq.basename).fasta" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Trimmomatic is a fast, multithreaded command line tool that can be used to trim and crop\nIllumina (FASTQ) data as well as to remove adapters. These adapters can pose a real problem\ndepending on the library preparation and downstream application.\nThere are two major modes of the program: Paired end mode and Single end mode. The\npaired end mode will maintain correspondence of read pairs and also use the additional\ninformation contained in paired reads to better find adapter or PCR primer fragments\nintroduced by the library preparation process.\nTrimmomatic works with FASTQ files (using phred + 33 or phred + 64 quality scores,\ndepending on the Illumina pipeline used).\n" ;
        ns2:original_cwlVersion  "v1.0" ;
        ns1:copyrightHolder      "EMBL - European Bioinformatics Institute" ;
        ns1:license              "https://www.apache.org/licenses/LICENSE-2.0" ;
        cwl:arguments            ( [ CommandLineBinding:position  4 ;
                                     CommandLineBinding:prefix    "-trimlog" ;
                                     cwl:valueFrom                "trim.log"
                                   ]
                                   [ CommandLineBinding:position  4 ;
                                     CommandLineBinding:prefix    "-threads" ;
                                     cwl:valueFrom                "$(runtime.cores)"
                                   ]
                                   [ CommandLineBinding:position  7 ;
                                     cwl:valueFrom                "$(inputs.reads1.nameroot).trimmed.fastq"
                                   ]
                                   [ CommandLineBinding:position  8 ;
                                     cwl:valueFrom                "${\n  if (inputs.end_mode == \"PE\" && inputs.reads2) {\n    return inputs.reads1.nameroot + '.trimmed.unpaired.fastq';\n  } else {\n    return null;\n  }\n}\n"
                                   ]
                                   [ CommandLineBinding:position  9 ;
                                     cwl:valueFrom                "${\n  if (inputs.end_mode == \"PE\" && inputs.reads2) {\n    return inputs.reads2.nameroot + '.trimmed.fastq';\n  } else {\n    return null;\n  }\n}\n"
                                   ]
                                   [ CommandLineBinding:position  10 ;
                                     cwl:valueFrom                "${\n  if (inputs.end_mode == \"PE\" && inputs.reads2) {\n    return inputs.reads2.nameroot + '.trimmed.unpaired.fastq';\n  } else {\n    return null;\n  }\n}\n"
                                   ]
                                 ) ;
        cwl:baseCommand          ( "java" "org.usadellab.trimmomatic.Trimmomatic" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/v1.2> ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/LoadListingRequirement> ] ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/NetworkAccess> ] ;
        cwl:hints                [ a                             cwl:SoftwareRequirement ;
                                   SoftwareRequirement:packages  [ SoftwarePackage:package  "trimmomatic" ;
                                                                   SoftwarePackage:specs    "https://identifiers.org/rrid/RRID:SCR_011848" ;
                                                                   SoftwarePackage:version  "0.32" , "0.35" , "0.36"
                                                                 ]
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#maxinfo> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#slidingwindow> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#tophred64> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#headcrop> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#illuminaClip> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#java_opts> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#crop> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#end_mode> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#minlen> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#trailing> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#avgqual> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#reads2> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#reads1> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#leading> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#phred> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#tophred33> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#reads1_trimmed> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#reads2_trimmed_paired> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#output_log> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#reads1_trimmed_unpaired> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#reads2_trimmed_unpaired> ;
        cwl:requirements         [ a  cwl:ShellCommandRequirement ] ;
        cwl:requirements         [ a                           cwl:SchemaDefRequirement ;
                                   SchemaDefRequirement:types  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-max_info.yaml#maxinfo> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-phred.yaml#phred> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-end_mode.yaml#end_mode> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-sliding_window.yaml#slidingWindow>
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a                             cwl:ResourceRequirement ;
                                   ResourceRequirement:coresMin  8 ;
                                   ResourceRequirement:ramMin    10240
                                 ] .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#reads2>
        rdfs:comment      "FASTQ file of R2 reads in Paired End mode" ;
        cwl:format        <http://edamontology.org/format_1930> ;
        cwl:inputBinding  [ CommandLineBinding:position
                          6 ] ;
        sld:type          cwl:File , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#reads2_trimmed_unpaired>
        cwl:format         <http://edamontology.org/format_1930> ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "${ if (inputs.reads2 ) {\n     return inputs.reads2.nameroot + '.unpaired.trimmed.fastq';\n   } else {\n     return null;\n   }\n }\n" ] ;
        sld:type           cwl:File , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/phred>
        cwl:default  "33" .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-sliding_window.yaml#slidingWindow/windowSize>
        sld:type  xsd:int .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#crop>
        rdfs:comment      "Removes bases regardless of quality from the end of the read, so that the\nread has maximally the specified length after this step has been\nperformed. Steps performed after CROP might of course further shorten the\nread. The value is the number of bases to keep, from the start of the read.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  13 ;
                            CommandLineBinding:prefix    "CROP:" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#java_opts>
        rdfs:comment      "JVM arguments should be a quoted, space separated list\n(e.g. \"-Xms128m -Xmx512m\")\n" ;
        cwl:inputBinding  [ CommandLineBinding:position    1 ;
                            CommandLineBinding:shellQuote  false
                          ] ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#phred>
        rdfs:comment      "\"33\" or \"64\" specifies the base quality encoding. Default: 64\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  4 ;
                            CommandLineBinding:prefix    "-phred" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-phred.yaml#phred> , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#reads1_trimmed>
        cwl:format         <http://edamontology.org/format_1930> ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.reads1.nameroot).trimmed.fastq" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/reads1>
        cwl:source  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#reads> .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#clean_fasta_headers>
        cwl:in   <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#clean_fasta_headers/sequences> ;
        cwl:out  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#clean_fasta_headers/sequences_with_cleaned_headers> ;
        cwl:run  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/clean_fasta_headers.cwl> .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#processed_sequences>
        cwl:outputSource  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#clean_fasta_headers/sequences_with_cleaned_headers> ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#illuminaClip>
        rdfs:comment      "Cut adapter and other illumina-specific sequences from the read." ;
        cwl:inputBinding  [ CommandLineBinding:position  11 ;
                            cwl:valueFrom                "${ if ( self ) {\n     return \"ILLUMINACLIP:\" + inputs.illuminaClip.adapters.path + \":\"\n       + self.seedMismatches + \":\" + self.palindromeClipThreshold + \":\"\n       + self.simpleClipThreshold + \":\" + self.minAdapterLength + \":\"\n       + self.keepBothReads;\n   } else {\n     return self;\n   }\n }\n"
                          ] ;
        sld:type          <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping> , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control>
        rdfs:comment  "Low quality trimming (low quality ends and sequences with < quality scores\nless than 15 over a 4 nucleotide wide window are removed)\n" ;
        cwl:in        <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/phred> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/leading> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/minlen> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/slidingwindow> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/reads1> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/trailing> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/end_mode> ;
        cwl:out       <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/reads1_trimmed> ;
        cwl:run       <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl> .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/leading>
        cwl:default  3 .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#reads1>
        rdfs:comment      "FASTQ file of reads (R1 reads in Paired End mode)" ;
        cwl:format        <http://edamontology.org/format_1930> ;
        cwl:inputBinding  [ CommandLineBinding:position
                          5 ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-sliding_window.yaml#slidingWindow>
        sld:fields  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-sliding_window.yaml#slidingWindow/requiredQuality> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-sliding_window.yaml#slidingWindow/windowSize> ;
        sld:type    sld:record .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/fastq_to_fasta.cwl#fastq>
        Parameter:streamable  true ;
        cwl:format            <http://edamontology.org/format_1930> ;
        sld:type              cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping/simpleClipThreshold>
        rdfs:comment  "specifies how accurate the match between any adapter etc. sequence must\nbe against a read\n" ;
        sld:type      xsd:int .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping/minAdapterLength>
        rdfs:comment  "In addition to the alignment score, palindrome mode can verify that a\nminimum length of adapter has been detected. If unspecified, this\ndefaults to 8 bases, for historical reasons. However, since palindrome\nmode has a very low false positive rate, this can be safely reduced, even\ndown to 1, to allow shorter adapter fragments to be removed.\n" ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_forward>
        rdfs:label  "Forward probability model" ;
        sld:type    cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/trailing>
        cwl:default  3 .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping/keepBothReads>
        rdfs:comment  "After read-though has been detected by palindrome mode, and the adapter\nsequence removed, the reverse read contains the same sequence information\nas the forward read, albeit in reverse complement. For this reason, the\ndefault behaviour is to entirely drop the reverse read. By specifying\n\"true\" for this parameter, the reverse read will also be retained, which\nmay be useful e.g. if the downstream tools cannot handle a combination of\npaired and unpaired reads.  \n" ;
        sld:type      xsd:boolean .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-phred.yaml#phred>
        sld:symbols  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-phred.yaml#phred/33> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-phred.yaml#phred/64> ;
        sld:type     sld:enum .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#maxinfo>
        rdfs:comment      "Performs an adaptive quality trim, balancing the benefits of retaining\nlonger reads against the costs of retaining bases with errors.\n<targetLength>: This specifies the read length which is likely to allow\nthe location of the read within the target sequence to be determined.\n<strictness>: This value, which should be set between 0 and 1, specifies\nthe balance between preserving as much read length as possible vs.\nremoval of incorrect bases. A low value of this parameter (<0.2) favours\nlonger reads, while a high value (>0.8) favours read correctness.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  15 ;
                            cwl:valueFrom                "${ if ( self ) {\n     return \"MAXINFO:\" + self.targetLength + \":\" + self.strictness;\n   } else {\n     return self;\n   }\n }\n"
                          ] ;
        sld:type          <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-max_info.yaml#maxinfo> , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_stop>
        rdfs:label  "Stop probability model" ;
        sld:type    cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/clean_fasta_headers.cwl#sequences_with_cleaned_headers>
        cwl:format         <http://edamontology.org/format_1929> ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.sequences.nameroot).cleaned.fasta" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl>
        a                        cwl:Workflow ;
        rdfs:label               "EMG QC workflow, (paired end version). Benchmarking with MG-RAST expt." ;
        ns2:original_cwlVersion  "v1.0" ;
        ns1:copyrightHolder      "EMBL - European Bioinformatics Institute" ;
        ns1:license              "https://www.apache.org/licenses/LICENSE-2.0" ;
        Workflow:steps           <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#clean_fasta_headers> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#convert_trimmed-reads_to_fasta> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control> ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/v1.2> ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/NetworkAccess> ] ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/LoadListingRequirement> ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#reads> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#processed_sequences> ;
        cwl:requirements         [ a                           cwl:SchemaDefRequirement ;
                                   SchemaDefRequirement:types  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-phred.yaml#phred> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-end_mode.yaml#end_mode> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-sliding_window.yaml#slidingWindow>
                                 ] ;
        cwl:requirements         [ a  cwl:SubworkflowFeatureRequirement ] .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#end_mode>
        rdfs:comment      "Single End (SE) or Paired End (PE) mode\n" ;
        cwl:inputBinding  [ CommandLineBinding:position
                          3 ] ;
        sld:type          <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-end_mode.yaml#end_mode> .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#tophred33>
        rdfs:comment      "This (re)encodes the quality part of the FASTQ file to base 33." ;
        cwl:inputBinding  [ CommandLineBinding:position  12 ;
                            CommandLineBinding:prefix    "TOPHRED33" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-max_info.yaml#maxinfo/targetLength>
        sld:type  xsd:int .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping/palindromeClipThreshold>
        rdfs:comment  "specifies how accurate the match between the two 'adapter ligated' reads\nmust be for PE palindrome read alignment.\n" ;
        sld:type      xsd:int .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-max_info.yaml#maxinfo/strictness>
        sld:type  xsd:int .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping/adapters>
        rdfs:comment  "FASTA file containing adapters, PCR sequences, etc. It is used to search\nfor and remove these sequences in the input FASTQ file(s)\n" ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#reads>
        cwl:format  <http://edamontology.org/format_1930> ;
        sld:type    cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#clean_fasta_headers/sequences>
        cwl:source  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#convert_trimmed-reads_to_fasta/fasta> .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#headcrop>
        rdfs:comment      "Removes the specified number of bases, regardless of quality, from the\nbeginning of the read.\nThe numbser specified is the number of bases to keep, from the start of\nthe read.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  13 ;
                            CommandLineBinding:prefix    "HEADCROP:" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#avgqual>
        rdfs:comment      "Drop the read if the average quality is below the specified level\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  101 ;
                            CommandLineBinding:prefix    "AVGQUAL:" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/main>
        sld:type  cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/slidingwindow>
        cwl:default  []  .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-sliding_window.yaml#slidingWindow/requiredQuality>
        sld:type  xsd:int .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_backward>
        rdfs:label  "Backward probability model" ;
        sld:type    cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-max_info.yaml#maxinfo>
        sld:fields  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-max_info.yaml#maxinfo/strictness> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-max_info.yaml#maxinfo/targetLength> ;
        sld:type    sld:record .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model>
        sld:fields  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_start1> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_noncoding> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/pwm_dist> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_start> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_stop1> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_backward> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/main> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_stop> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_forward> ;
        sld:type    sld:record .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#trailing>
        rdfs:comment      "Remove low quality bases from the end. As long as a base has a value\nbelow this threshold the base is removed and the next base (which as\ntrimmomatic is starting from the 3' prime end would be base preceding\nthe just removed base) will be investigated. This approach can be used\nremoving the special Illumina \"low quality segment\" regions (which are\nmarked with quality score of 2), but we recommend Sliding Window or\nMaxInfo instead\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  14 ;
                            CommandLineBinding:prefix    "TRAILING:" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#reads1_trimmed_unpaired>
        cwl:format         <http://edamontology.org/format_1930> ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.reads1.nameroot).unpaired.trimmed.fastq" ] ;
        sld:type           cwl:File , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_start1>
        rdfs:label  "Start1 probability model" ;
        sld:type    cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#leading>
        rdfs:comment      "Remove low quality bases from the beginning. As long as a base has a\nvalue below this threshold the base is removed and the next base will be\ninvestigated.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  14 ;
                            CommandLineBinding:prefix    "LEADING:" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping/seedMismatches>
        rdfs:comment  "specifies the maximum mismatch count which will still allow a full match\nto be performed\n" ;
        sld:type      xsd:int .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_noncoding>
        rdfs:label  "Noncoding probability model" ;
        sld:type    cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_start>
        rdfs:label  "Start probability model" ;
        sld:type    cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#reads2_trimmed_paired>
        cwl:format         <http://edamontology.org/format_1930> ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "${ if (inputs.reads2 ) {\n     return inputs.reads2.nameroot + '.trimmed.fastq';\n   } else {\n     return null;\n   }\n }\n" ] ;
        sld:type           cwl:File , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/minlen>
        cwl:default  100 .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/clean_fasta_headers.cwl#sequences>
        Parameter:streamable  true ;
        cwl:format            <http://edamontology.org/format_1929> ;
        sld:type              cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#tophred64>
        rdfs:comment      "This (re)encodes the quality part of the FASTQ file to base 64." ;
        cwl:inputBinding  [ CommandLineBinding:position  12 ;
                            CommandLineBinding:prefix    "TOPHRED64" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/clean_fasta_headers.cwl>
        a                        cwl:CommandLineTool ;
        rdfs:label               "replace problem characters from FASTA headers with dashes" ;
        ns2:original_cwlVersion  "v1.0" ;
        ns1:copyrightHolder      "EMBL - European Bioinformatics Institute" ;
        ns1:license              "https://www.apache.org/licenses/LICENSE-2.0" ;
        CommandLineTool:stdin    "$(inputs.sequences.path)" ;
        cwl:baseCommand          ( "tr" " /|<_;#" "-------" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/v1.2> ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/NetworkAccess> ] ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/LoadListingRequirement> ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/clean_fasta_headers.cwl#sequences> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/clean_fasta_headers.cwl#sequences_with_cleaned_headers> ;
        cwl:requirements         [ a                             cwl:ResourceRequirement ;
                                   ResourceRequirement:coresMax  1 ;
                                   ResourceRequirement:ramMin    1024
                                 ] ;
        cwl:stdout               "$(inputs.sequences.nameroot).cleaned.fasta" .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/fastq_to_fasta.cwl>
        a                        cwl:CommandLineTool ;
        ns2:original_cwlVersion  "v1.0" ;
        ns1:copyrightHolder      "EMBL - European Bioinformatics Institute" ;
        ns1:license              "https://www.apache.org/licenses/LICENSE-2.0" ;
        CommandLineTool:stdin    "$(inputs.fastq.path)" ;
        cwl:arguments            ( [ CommandLineBinding:prefix  "-c" ;
                                     cwl:valueFrom              "import sys\nfrom Bio import SeqIO\nSeqIO.convert(sys.stdin, \"fastq\", sys.stdout, \"fasta\")\n"
                                   ]
                                 ) ;
        cwl:baseCommand          ( "python" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/v1.2> ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/NetworkAccess> ] ;
        cwl:hints                [ a  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/LoadListingRequirement> ] ;
        cwl:hints                [ a                             cwl:SoftwareRequirement ;
                                   SoftwareRequirement:packages  [ SoftwarePackage:package  "biopython" ;
                                                                   SoftwarePackage:specs    "https://identifiers.org/rrid/RRID:SCR_007173" ;
                                                                   SoftwarePackage:version  "1.65" , "1.66" , "1.69"
                                                                 ]
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/fastq_to_fasta.cwl#fastq> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/fastq_to_fasta.cwl#fasta> ;
        cwl:requirements         [ a                             cwl:ResourceRequirement ;
                                   ResourceRequirement:coresMax  1 ;
                                   ResourceRequirement:ramMin    100
                                 ] ;
        cwl:stdout               "$(inputs.fastq.basename).fasta" .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#minlen>
        rdfs:comment      "This module removes reads that fall below the specified minimal length.\nIf required, it should normally be after all other processing steps.\nReads removed by this step will be counted and included in the \"dropped\nreads\" count presented in the trimmomatic summary.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  100 ;
                            CommandLineBinding:prefix    "MINLEN:" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/pwm_dist>
        rdfs:label  "pwm distribution" ;
        sld:type    cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping>
        sld:fields  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping/seedMismatches> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping/adapters> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping/palindromeClipThreshold> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping/keepBothReads> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping/minAdapterLength> , <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-illumina_clipping.yaml#illuminaClipping/simpleClipThreshold> ;
        sld:type    sld:record .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#output_log>
        rdfs:comment       "log of all read trimmings, indicating the following details:\n  the read name\n  the surviving sequence length\n  the location of the first surviving base, aka. the amount trimmed from the start\n  the location of the last surviving base in the original read\n  the amount trimmed from the end\n" ;
        rdfs:label         "Trimmomatic log" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "trim.log" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#convert_trimmed-reads_to_fasta/fastq>
        cwl:source  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/reads1_trimmed> .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#convert_trimmed-reads_to_fasta>
        cwl:in   <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#convert_trimmed-reads_to_fasta/fastq> ;
        cwl:out  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#convert_trimmed-reads_to_fasta/fasta> ;
        cwl:run  <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/fastq_to_fasta.cwl> .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/workflows/emg-qc-single.cwl#trim_quality_control/end_mode>
        cwl:default  "SE" .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/FragGeneScan-model.yaml#model/prob_stop1>
        rdfs:label  "Stop1 probability model" ;
        sld:type    cwl:File .

<https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic.cwl#slidingwindow>
        rdfs:comment      "Perform a sliding window trimming, cutting once the average quality\nwithin the window falls below a threshold. By considering multiple\nbases, a single poor quality base will not cause the removal of high\nquality data later in the read.\n<windowSize> specifies the number of bases to average across\n<requiredQuality> specifies the average quality required\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  15 ;
                            cwl:valueFrom                "${ if ( self ) {\n     return \"SLIDINGWINDOW:\" + self.windowSize + \":\"\n       + self.requiredQuality;\n   } else {\n     return self;\n   }\n }\n"
                          ] ;
        sld:type          <https://w3id.org/cwl/view/git/886df9de6713e06228d2560c40f451155a196383/tools/trimmomatic-sliding_window.yaml#slidingWindow> , sld:null .
