@prefix LoadListingRequirement: <http://commonwl.org/cwltool#LoadListingRequirement/> .
@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 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 ns1:   <http://commonwl.org/cwltool#> .
@prefix NetworkAccess: <http://commonwl.org/cwltool#NetworkAccess/> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ScatterMethod: <https://w3id.org/cwl/cwl#ScatterMethod/> .
@prefix cwl:   <https://w3id.org/cwl/cwl#> .
@prefix CommandLineTool: <https://w3id.org/cwl/cwl#CommandLineTool/> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/extract-best-frag-length.cwl>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Extracts best fragment length from SPP output text file" ;
        ns1:original_cwlVersion  "v1.0" ;
        cwl:baseCommand          ( "extract-best-frag-length.sh" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/v1.2> ;
        cwl:hints                [ a                            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/NetworkAccess> ;
                                   NetworkAccess:networkAccess  true
                                 ] ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "reddylab/workflow-utils:ggr"
                                 ] ;
        cwl:hints                [ a       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/LoadListingRequirement> ;
                                   LoadListingRequirement:loadListing
                                           "deep_listing"
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/extract-best-frag-length.cwl#input_spp_txt_file> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/extract-best-frag-length.cwl#output_best_frag_length> ;
        cwl:stdout               "best_frag_length" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#g>
        rdfs:comment      "Effective genome size. It can be 1.0e+9 or 1000000000,  or shortcuts:'hs' for human (2.7e9), 'mm' for mouse  (1.87e9), 'ce' for C. elegans (9e7) and 'dm' for  fruitfly (1.2e8), Default:hs." ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "-g"
                          ] ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#input_genome_sizes>
        rdfs:comment  "Two column tab-delimited file with chromosome size information" ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_peak_count_within_replicate>
        rdfs:comment      "Peak counts within replicate" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-peaks/output_counts> ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling>
        cwl:in             <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/bdg> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/q> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/g> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/format> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/extsize> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/nomodel> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/shift> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/treatment> ;
        cwl:out            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/output_peak_xls_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/output_peak_summits_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/output_ext_frag_bdg_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/output_peak_file> ;
        cwl:run            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl> ;
        cwl:scatter        ( <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/treatment> ) ;
        cwl:scatterMethod  ScatterMethod:dotproduct .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#filtchr>
        rdfs:comment      "-filtchr=<chrnamePattern> , Pattern to use to remove tags that map to specific chromosomes e.g. _ will remove all tags that map to chromosomes with _ in their name" ;
        cwl:inputBinding  [ CommandLineBinding:prefix    "-filtchr=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl>
        a                        cwl:CommandLineTool ;
        ns1:original_cwlVersion  "v1.0" ;
        cwl:arguments            ( [ CommandLineBinding:position  1 ;
                                     CommandLineBinding:prefix    "-n" ;
                                     cwl:valueFrom                "$(inputs.treatment[0].path.replace(/^.*[\\\\\\/]/, '').replace(/\\.[^/.]+$/, ''))"
                                   ]
                                 ) ;
        cwl:baseCommand          ( "macs2" "callpeak" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/v1.2> ;
        cwl:hints                [ a       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/LoadListingRequirement> ;
                                   LoadListingRequirement:loadListing
                                           "deep_listing"
                                 ] ;
        cwl:hints                [ a                            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/NetworkAccess> ;
                                   NetworkAccess:networkAccess  true
                                 ] ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "dukegcb/macs2"
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#seed> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#fix-bimodal> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#q> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#ratio> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#to-large> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#extsize> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#nolambda> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#keep-dup> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#trackline> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#broad> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#bdg> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#control> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#llocal> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#g> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#s> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#broad-cutoff> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#call-summits> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#cutoff-analysis> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#format> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#fe-cutoff> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#down-sample> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#treatment> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#bw> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#shift> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#m> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#slocal> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#buffer-size> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#SPMR> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#p> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#nomodel> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#verbose> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#output_peak_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#output_ext_frag_bdg_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#output_peak_summits_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#output_peak_xls_file> ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_extended_peak_file>
        rdfs:comment      "peakshift/phantomPeak extended fragment results file" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/output_ext_frag_bdg_file> ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-filter-in-bedfile.cwl>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Filter BAM file to only include reads overlapping with a BED file" ;
        ns1:original_cwlVersion  "v1.0" ;
        cwl:baseCommand          ( "samtools" "view" "-b" "-h" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/v1.2> ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "dukegcb/samtools:1.3"
                                 ] ;
        cwl:hints                [ a                            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/NetworkAccess> ;
                                   NetworkAccess:networkAccess  true
                                 ] ;
        cwl:hints                [ a       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/LoadListingRequirement> ;
                                   LoadListingRequirement:loadListing
                                           "deep_listing"
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-filter-in-bedfile.cwl#input_bam_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-filter-in-bedfile.cwl#input_bedfile> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-filter-in-bedfile.cwl#filtered_file> ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stdout               "$(inputs.input_bam_file.path.replace(/^.*[\\\\\\/]/, '') + '.in_peaks.bam')" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/count-reads-after-filtering.cwl>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Count number of dedup-ed reads used in peak calling" ;
        ns1:original_cwlVersion  "v1.0" ;
        cwl:baseCommand          ( "count-filtered-reads-macs2.sh" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/v1.2> ;
        cwl:hints                [ a       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/LoadListingRequirement> ;
                                   LoadListingRequirement:loadListing
                                           "deep_listing"
                                 ] ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "reddylab/workflow-utils:ggr"
                                 ] ;
        cwl:hints                [ a                            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/NetworkAccess> ;
                                   NetworkAccess:networkAccess  true
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/count-reads-after-filtering.cwl#peak_xls_file> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/count-reads-after-filtering.cwl#read_count_file> ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stdout               "$(inputs.peak_xls_file.path.replace(/^.*[\\\\\\/]/, '').replace(/\\_peaks\\.xls$/, '_read_count.txt'))" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-peaks/output_suffix>
        cwl:valueFrom  ".peak_count.within_replicate.txt" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peaks-bed-to-bigbed/type>
        cwl:valueFrom  "bed6+4" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_peak_bigbed_file>
        rdfs:comment      "Peaks in bigBed format" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peaks-bed-to-bigbed/bigbed> ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#control>
        rdfs:comment      "Control sample file." ;
        cwl:inputBinding  [ CommandLineBinding:position  2 ;
                            CommandLineBinding:prefix    "--control"
                          ] ;
        sld:type          cwl:File , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#savd>
        rdfs:comment      "-savd=<rdatafile> OR -savd, save Rdata file" ;
        cwl:inputBinding  [ cwl:valueFrom  "${ if (self) return \"-savd=\" + inputs.input_bam.path.replace(/^.*[\\\\\\/]/, \"\").replace(/\\.[^/.]+$/, \"\") + \".spp.Rdata\"; return null}" ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#output_spp_rdata>
        rdfs:comment       "Rdata file from the run_spp.R run" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.input_bam.path.replace(/^.*[\\\\\\/]/, \"\").replace(/\\.[^/.]+$/, \"\") + \".spp.Rdata\")" ] ;
        sld:type           cwl:File , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#output_suffix>
        cwl:default  ".bb" ;
        sld:type     xsd:string .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#trunk-peak-score/peaks>
        cwl:source  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/output_peak_file> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#control_bam>
        rdfs:comment      "<Input_alignFile>, full path and name (or URL) of tagAlign/BAM file (can be gzipped) (FILE EXTENSION MUST BE tagAlign.gz, tagAlign, bam or bam.gz)" ;
        cwl:inputBinding  [ CommandLineBinding:prefix    "-i=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          cwl:File , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl>
        a                        cwl:CommandLineTool ;
        ns1:original_cwlVersion  "v1.0" ;
        cwl:arguments            ( [ cwl:valueFrom  "$(\"-out=\" + inputs.input_bam.path.replace(/^.*[\\\\\\/]/, \"\").replace(/\\.[^/.]+$/, \"\") + \".spp_cross_corr.txt\")" ]
                                   [ CommandLineBinding:shellQuote  false ;
                                     cwl:valueFrom                  "$(\"-tmpdir=\"+runtime.tmpdir)"
                                   ]
                                 ) ;
        cwl:baseCommand          ( "run_spp.R" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/v1.2> ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "dukegcb/spp"
                                 ] ;
        cwl:hints                [ a       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/LoadListingRequirement> ;
                                   LoadListingRequirement:loadListing
                                           "deep_listing"
                                 ] ;
        cwl:hints                [ a                            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/NetworkAccess> ;
                                   NetworkAccess:networkAccess  true
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#s> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#speak> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#filtchr> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#nthreads> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#rf> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#input_bam> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#savr> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#control_bam> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#npeak> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#savp> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#x> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#savd> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#fdr> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#savn> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#output_spp_cross_corr_plot> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#output_spp_cross_corr> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#output_spp_narrow_peak> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#output_spp_region_peak> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#output_spp_rdata> ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a  cwl:ShellCommandRequirement ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#broad>
        rdfs:comment      "If set, MACS will try to call broad peaks by linking nearby highly enriched regions. The linking region is controlled by another cutoff through --linking-cutoff. The maximum linking region length is 4 times of d from MACS. DEFAULT: False " ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--broad"
                          ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#type>
        rdfs:comment      "-type=bedN[+[P]] :\n                N is between 3 and 15,\n                optional (+) if extra \"bedPlus\" fields,\n                optional P specifies the number of extra fields. Not required, but preferred.\n                Examples: -type=bed6 or -type=bed6+ or -type=bed6+3\n                (see http://genome.ucsc.edu/FAQ/FAQformat.html#format1)\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "-type=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#cutoff-analysis>
        rdfs:comment      "While set, MACS2 will analyze number or total length of peaks that can be called by different p-value cutoff then output a summary table to help user decide a better cutoff. The table will be saved in NAME_cutoff_analysis.txt file. Note, minlen and maxgap may affect the results. WARNING: May take ~30 folds longer time to finish. DEFAULT: False Post-processing options: " ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--cutoff-analysis"
                          ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/count-reads-after-filtering.cwl#read_count_file>
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.peak_xls_file.path.replace(/^.*[\\\\\\/]/, '').replace(/\\_peaks\\.xls$/, '_read_count.txt'))" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/format>
        cwl:valueFrom  "BAM" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-filter-in-bedfile.cwl#filtered_file>
        rdfs:comment       "Filtered aligned BAM file by BED coordinates file" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.input_bam_file.path.replace(/^.*[\\\\\\/]/, '') + '.in_peaks.bam')" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#filter-reads-in-peaks/input_bam_file>
        cwl:source  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#input_bam_files> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/bdg>
        cwl:valueFrom  "${return true}" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#m>
        rdfs:comment      "MFOLD MFOLD, --mfold MFOLD MFOLD\nSelect the regions within MFOLD range of high-\nconfidence enrichment ratio against background to\nbuild model. Fold-enrichment in regions must be lower\nthan upper limit, and higher than the lower limit. Use\nas \"-m 10 30\". DEFAULT:5 50\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "-m"
                          ] ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#treatment>
        rdfs:comment      "Treatment sample file(s). If multiple files are given as -t A B C, then they will all be read and pooled together. IMPORTANT: the first sample will be used as the outputs basename." ;
        cwl:inputBinding  [ CommandLineBinding:position  2 ;
                            CommandLineBinding:prefix    "--treatment"
                          ] ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/extsize>
        cwl:valueFrom  "${return 200}" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peaks-bed-to-bigbed/genome_sizes>
        cwl:source  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#input_genome_sizes> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#bw>
        rdfs:comment      "BW               Band width for picking regions to compute fragment\nsize. This value is only used while building the\nshifting model. DEFAULT: 300\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--bw"
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#keep-dup>
        rdfs:comment      "KEEPDUPLICATES\nIt controls the MACS behavior towards duplicate tags\nat the exact same location -- the same coordination\nand the same strand. The 'auto' option makes MACS\ncalculate the maximum tags at the exact same location\nbased on binomal distribution using 1e-5 as pvalue\ncutoff; and the 'all' option keeps every tags. If an\ninteger is given, at most this number of tags will be\nkept at the same location. The default is to keep one\ntag at the same location. Default: 1\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--keep-dup"
                          ] ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/trunk-peak-score.cwl#trunked_scores_peaks>
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.peaks.path.replace(/^.*[\\\\\\/]/, '').replace(/\\.([^/.]+)$/, \"\\.trunked_scores\\.$1\"))" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-extract-number-mapped-reads.cwl>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Extract mapped reads from BAM file using Samtools flagstat command" ;
        ns1:original_cwlVersion  "v1.0" ;
        cwl:arguments            ( [ CommandLineBinding:position    10000 ;
                                     CommandLineBinding:shellQuote  false ;
                                     cwl:valueFrom                  " | head -n1 | cut -f 1 -d ' '"
                                   ]
                                 ) ;
        cwl:baseCommand          ( "samtools" "flagstat" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/v1.2> ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "dukegcb/samtools"
                                 ] ;
        cwl:hints                [ a       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/LoadListingRequirement> ;
                                   LoadListingRequirement:loadListing
                                           "deep_listing"
                                 ] ;
        cwl:hints                [ a                            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/NetworkAccess> ;
                                   NetworkAccess:networkAccess  true
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-extract-number-mapped-reads.cwl#input_bam_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-extract-number-mapped-reads.cwl#output_suffix> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-extract-number-mapped-reads.cwl#output_read_count> ;
        cwl:requirements         [ a  cwl:ShellCommandRequirement ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stdout               "$(inputs.input_bam_file.path.replace(/^.*[\\\\\\/]/, '').replace(/\\.[^/.]+$/, \"\") + inputs.output_suffix)" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#nolambda>
        rdfs:comment      "If True, MACS will use fixed background lambda as local lambda for every peak region. Normally, MACS calculates a dynamic local lambda to reflect the local bias due to potential chromatin structure. " ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--nolambda"
                          ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#as>
        rdfs:comment      "-as=fields.as - If you have non-standard \"bedPlus\" fields, it's great to put a definition\n                 of each field in a row in AutoSql format here.1)\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "-as=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          cwl:File , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_peak_file>
        rdfs:comment      "peakshift/phantomPeak results file" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/output_peak_file> ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#seed>
        rdfs:comment      "SEED           Set the random seed while down sampling data. Must be\na non-negative integer in order to be effective.\nDEFAULT: not set\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--seed"
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-extract-number-mapped-reads.cwl#output_read_count>
        rdfs:comment       "Samtools Flagstat report file" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.input_bam_file.path.replace(/^.*[\\\\\\/]/, '').replace(/\\.[^/.]+$/, \"\") + inputs.output_suffix)" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-peak-frag-length>
        cwl:in       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-peak-frag-length/input_spp_txt_file> ;
        cwl:out      <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-peak-frag-length/output_best_frag_length> ;
        cwl:run      <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/extract-best-frag-length.cwl> ;
        cwl:scatter  ( <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-peak-frag-length/input_spp_txt_file> ) .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#speak>
        rdfs:comment      "-speak=<strPeak>, user-defined cross-correlation peak strandshift" ;
        cwl:inputBinding  [ CommandLineBinding:prefix    "-speak=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-count-reads-in-peaks>
        cwl:in       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-count-reads-in-peaks/input_bam_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-count-reads-in-peaks/output_suffix> ;
        cwl:out      <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-count-reads-in-peaks/output_read_count> ;
        cwl:run      <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-extract-number-mapped-reads.cwl> ;
        cwl:scatter  ( <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-count-reads-in-peaks/input_bam_file> ) .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl>
        a                        cwl:Workflow ;
        rdfs:comment             "ATAC-seq 04 quantification - SE" ;
        ns1:original_cwlVersion  "v1.0" ;
        Workflow:steps           <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-reads-filtered> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#filter-reads-in-peaks> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#trunk-peak-score> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-peaks> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-peak-frag-length> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peaks-bed-to-bigbed> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-count-reads-in-peaks> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling> ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/v1.2> ;
        cwl:hints                [ a       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/LoadListingRequirement> ;
                                   LoadListingRequirement:loadListing
                                           "deep_listing"
                                 ] ;
        cwl:hints                [ a                            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/NetworkAccess> ;
                                   NetworkAccess:networkAccess  true
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#input_genome_sizes> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#input_bam_files> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#nthreads> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#genome_effective_size> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#as_narrowPeak_file> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_spp_cross_corr_plot> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_extended_peak_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_peak_summits_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_peak_bigbed_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_peak_count_within_replicate> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_peak_xls_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_filtered_read_count_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_peak_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_read_in_peak_count_within_replicate> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_spp_x_cross_corr> ;
        cwl:requirements         [ a  cwl:ScatterFeatureRequirement ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a  cwl:StepInputExpressionRequirement ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#trunk-peak-score>
        cwl:in       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#trunk-peak-score/peaks> ;
        cwl:out      <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#trunk-peak-score/trunked_scores_peaks> ;
        cwl:run      <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/trunk-peak-score.cwl> ;
        cwl:scatter  ( <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#trunk-peak-score/peaks> ) .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/treatment>
        cwl:source     <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#input_bam_files> ;
        cwl:valueFrom  "$([self])" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peaks-bed-to-bigbed>
        cwl:in       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peaks-bed-to-bigbed/type> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peaks-bed-to-bigbed/genome_sizes> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peaks-bed-to-bigbed/bed> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peaks-bed-to-bigbed/as> ;
        cwl:out      <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peaks-bed-to-bigbed/bigbed> ;
        cwl:run      <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl> ;
        cwl:scatter  ( <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peaks-bed-to-bigbed/bed> ) .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-reads-filtered>
        cwl:in       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-reads-filtered/peak_xls_file> ;
        cwl:out      <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-reads-filtered/read_count_file> ;
        cwl:run      <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/count-reads-after-filtering.cwl> ;
        cwl:scatter  ( <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-reads-filtered/peak_xls_file> ) .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/extract-best-frag-length.cwl#output_best_frag_length>
        cwl:outputBinding  [ CommandOutputBinding:glob  "best_frag_length" ;
                             CommandOutputBinding:outputEval
                                     "$(Number(self[0].contents.replace('\\n', '')))" ;
                             cwl:loadContents           true
                           ] ;
        sld:type           xsd:float .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-extract-number-mapped-reads.cwl#input_bam_file>
        rdfs:comment      "Aligned BAM file to filter" ;
        cwl:inputBinding  [ CommandLineBinding:position
                          1 ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#p>
        rdfs:comment      "Pvalue cutoff for peak detection. DEFAULT: not set.  -q, and -p are mutually exclusive. If pvalue cutoff is  set, qvalue will not be calculated and reported as -1  in the final .xls file.." ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "-p"
                          ] ;
        sld:type          xsd:float , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#bed>
        rdfs:comment      "Input bed file" ;
        cwl:inputBinding  [ CommandLineBinding:position
                          2 ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_spp_cross_corr_plot>
        rdfs:comment      "peakshift/phantomPeak results file" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp/output_spp_cross_corr_plot> ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/extract-best-frag-length.cwl#input_spp_txt_file>
        cwl:inputBinding  [ CommandLineBinding:position
                          1 ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#savr>
        rdfs:comment      "-savr=<regionpeakfilename> OR -savr RegionPeak file name (variable width peaks with regions of enrichment)" ;
        cwl:inputBinding  [ cwl:valueFrom  "${ if (self) return \"-savr=\" + inputs.input_bam.path.replace(/^.*[\\\\\\/]/, \"\").replace(/\\.[^/.]+$/, \"\") + \".spp.regionPeak\"; return null}" ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#format>
        rdfs:comment      "-f {AUTO,BAM,SAM,BED,ELAND,ELANDMULTI,ELANDEXPORT,BOWTIE,BAMPE}, --format {AUTO,BAM,SAM,BED,ELAND,ELANDMULTI,ELANDEXPORT,BOWTIE,BAMPE} Format of tag file, \"AUTO\", \"BED\" or \"ELAND\" or \"ELANDMULTI\" or \"ELANDEXPORT\" or \"SAM\" or \"BAM\" or \"BOWTIE\" or \"BAMPE\". The default AUTO option will let MACS decide which format the file is. Note that MACS can't detect \"BAMPE\" or \"BEDPE\" format with \"AUTO\", and you have to implicitly specify the format for \"BAMPE\" and \"BEDPE\". DEFAULT: \"AUTO\"." ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "-f"
                          ] ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#output_peak_summits_file>
        rdfs:comment       "Peaks summits bedfile." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.treatment[0].path.replace(/^.*[\\\\\\/]/, '').replace(/\\.[^/.]+$/, '') + '_summits.bed')" ] ;
        sld:type           cwl:File , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#extsize>
        rdfs:comment      "The arbitrary extension size in bp. When nomodel is  true, MACS will use this value as fragment size to  extend each read towards 3' end, then pile them up.  It's exactly twice the number of obsolete SHIFTSIZE.  In previous language, each read is moved 5'->3'  direction to middle of fragment by 1/2 d, then  extended to both direction with 1/2 d. This is  equivalent to say each read is extended towards 5'->3'  into a d size fragment. DEFAULT: 200. EXTSIZE and  SHIFT can be combined when necessary. Check SHIFT  option." ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--extsize"
                          ] ;
        sld:type          xsd:float , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#output_peak_xls_file>
        rdfs:comment       "Peaks information/report file." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.treatment[0].path.replace(/^.*[\\\\\\/]/, '').replace(/\\.[^/.]+$/, '') + '_peaks.xls')" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/count-with-output-suffix.cwl>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Counts lines in a file and returns a suffixed file with that number" ;
        ns1:original_cwlVersion  "v1.0" ;
        CommandLineTool:stdin    "$(inputs.input_file.path)" ;
        cwl:baseCommand          ( "wc" "-l" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/v1.2> ;
        cwl:hints                [ a       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/LoadListingRequirement> ;
                                   LoadListingRequirement:loadListing
                                           "deep_listing"
                                 ] ;
        cwl:hints                [ a                            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/NetworkAccess> ;
                                   NetworkAccess:networkAccess  true
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/count-with-output-suffix.cwl#output_suffix> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/count-with-output-suffix.cwl#input_file> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/count-with-output-suffix.cwl#output_counts> ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stdout               "$(inputs.input_file.path.replace(/^.*[\\\\\\/]/, '') + inputs.output_suffix)" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#genome_effective_size>
        rdfs:comment  "Effective genome size used by MACS2. It can be numeric or a shortcuts:'hs' for human (2.7e9), 'mm' for mouse (1.87e9), 'ce' for C. elegans (9e7) and 'dm' for fruitfly (1.2e8), Default:hs" ;
        cwl:default   "hs" ;
        sld:type      xsd:string .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#output_spp_cross_corr>
        rdfs:comment       "peakshift/phantomPeak results summary file" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.input_bam.path.replace(/^.*[\\\\\\/]/, \"\").replace(/\\.[^/.]+$/, \"\") + \".spp_cross_corr.txt\")" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#npeak>
        rdfs:comment      "-npeak=<numPeaks>, threshold on number of peaks to call" ;
        cwl:inputBinding  [ CommandLineBinding:prefix    "-npeak=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "\"bedToBigBed v. 2.7 - Convert bed file to bigBed. (BigBed version: 4)\nusage:\n   bedToBigBed in.bed chrom.sizes out.bb\nWhere in.bed is in one of the ascii bed formats, but not including track lines\nand chrom.sizes is two column: <chromosome name> <size in bases>\nand out.bb is the output indexed big bed file.\nUse the script: fetchChromSizes to obtain the actual chrom.sizes information\nfrom UCSC, please do not make up a chrom sizes from your own information.\nThe in.bed file must be sorted by chromosome,start,\n  to sort a bed file, use the unix sort command:\n     sort -k1,1 -k2,2n unsorted.bed > sorted.bed\"\n" ;
        ns1:original_cwlVersion  "v1.0" ;
        cwl:arguments            ( [ CommandLineBinding:position  4 ;
                                     cwl:valueFrom                "$(inputs.bed.path.replace(/^.*[\\\\\\/]/, '') + inputs.output_suffix)"
                                   ]
                                 ) ;
        cwl:baseCommand          ( "bedToBigBed" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/v1.2> ;
        cwl:hints                [ a       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/LoadListingRequirement> ;
                                   LoadListingRequirement:loadListing
                                           "deep_listing"
                                 ] ;
        cwl:hints                [ a                            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/NetworkAccess> ;
                                   NetworkAccess:networkAccess  true
                                 ] ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "dleehr/docker-hubutils"
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#itemsPerSlot> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#tab> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#bed> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#as> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#type> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#unc> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#output_suffix> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#genome_sizes> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#blockSize> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#extraIndex> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#bigbed> ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/count-with-output-suffix.cwl#output_suffix>
        cwl:default  ".count" ;
        sld:type     xsd:string .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#rf>
        rdfs:comment      "overwrite (force remove) output files in case they exist. Default: true" ;
        cwl:default       true ;
        cwl:inputBinding  [ CommandLineBinding:prefix
                          "-rf" ] ;
        sld:type          xsd:boolean .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#nthreads>
        cwl:default  1 ;
        sld:type     xsd:int .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#bdg>
        rdfs:comment      "Whether or not to save extended fragment pileup, and local lambda tracks (two files) at every bp into a bedGraph file. DEFAULT: True" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--bdg"
                          ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#s>
        rdfs:comment      "TSIZE, --tsize TSIZE\nTag size. This will overide the auto detected tag\nsize. DEFAULT: Not set\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "-s"
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#filter-reads-in-peaks>
        cwl:in             <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#filter-reads-in-peaks/input_bedfile> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#filter-reads-in-peaks/input_bam_file> ;
        cwl:out            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#filter-reads-in-peaks/filtered_file> ;
        cwl:run            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-filter-in-bedfile.cwl> ;
        cwl:scatter        ( <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#filter-reads-in-peaks/input_bam_file> <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#filter-reads-in-peaks/input_bedfile> ) ;
        cwl:scatterMethod  ScatterMethod:dotproduct .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peaks-bed-to-bigbed/as>
        cwl:source  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#as_narrowPeak_file> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/trunk-peak-score.cwl#peaks>
        cwl:inputBinding  [ CommandLineBinding:position
                          10000 ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#trackline>
        rdfs:comment      "Tells MACS to include trackline with bedGraph files. To include this trackline while displaying bedGraph at UCSC genome browser, can show name and description of the file as well. However my suggestion is to convert bedGraph to bigWig, then show the smaller and faster binary bigWig file at UCSC genome browser, as well as downstream analysis. Require --bdg to be set. Default: Not include trackline. " ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--trackline"
                          ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/q>
        cwl:valueFrom  "${return 0.1}" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp/nthreads>
        cwl:source  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#nthreads> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peaks-bed-to-bigbed/bed>
        cwl:source  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#trunk-peak-score/trunked_scores_peaks> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-filter-in-bedfile.cwl#input_bedfile>
        rdfs:comment      "Bedfile used to only include reads overlapping this BED FILE" ;
        cwl:inputBinding  [ CommandLineBinding:position  2 ;
                            CommandLineBinding:prefix    "-L"
                          ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_spp_x_cross_corr>
        rdfs:comment      "peakshift/phantomPeak results file" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp/output_spp_cross_corr> ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#as_narrowPeak_file>
        rdfs:comment  "Definition narrowPeak file in AutoSql format (used in bedToBigBed)" ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_read_in_peak_count_within_replicate>
        rdfs:comment      "Reads peak counts within replicate" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-count-reads-in-peaks/output_read_count> ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#down-sample>
        rdfs:comment      "When set, random sampling method will scale down the bigger sample. By default, MACS uses linear scaling. Warning: This option will make your result unstable and irreproducible since each time, random reads would be selected. Consider to use 'randsample' script instead. <not implmented>If used together with --SPMR, 1 million unique reads will be randomly picked.</not implemented> Caution: due to the implementation, the final number of selected reads may not be as you expected! DEFAULT: False " ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--down-sample"
                          ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#output_spp_region_peak>
        rdfs:comment       "regionPeak output file" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.input_bam.path.replace(/^.*[\\\\\\/]/, \"\").replace(/\\.[^/.]+$/, \"\") + \".spp.regionPeak\")" ] ;
        sld:type           cwl:File , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#fdr>
        rdfs:comment      "-fdr=<falseDisoveryRate> , false discovery rate threshold for peak calling" ;
        cwl:inputBinding  [ CommandLineBinding:prefix    "-fdr=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:float , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#filter-reads-in-peaks/input_bedfile>
        cwl:source  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/output_peak_file> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_peak_summits_file>
        rdfs:comment      "File containing peak summits" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/output_peak_summits_file> ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp/input_bam>
        cwl:source  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#input_bam_files> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#savp>
        rdfs:comment      "save cross-correlation plot" ;
        cwl:inputBinding  [ cwl:valueFrom  "${ if (self) return \"-savp=\" + inputs.input_bam.path.replace(/^.*[\\\\\\/]/, \"\").replace(/\\.[^/.]+$/, \"\") + \".spp_cross_corr.pdf\"; return null}" ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#blockSize>
        rdfs:comment      "-blockSize=N - Number of items to bundle in r-tree.  Default 256\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "-blockSize=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#bigbed>
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.bed.path.replace(/^.*[\\\\\\/]/, '')+ inputs.output_suffix)" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#fe-cutoff>
        rdfs:comment      "FECUTOFF  When set, the value will be used to filter out peaks\nwith low fold-enrichment. Note, MACS2 use 1.0 as\npseudocount while calculating fold-enrichment.\nDEFAULT: 1.0\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--fe-cutoff"
                          ] ;
        sld:type          xsd:float , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#unc>
        rdfs:comment      "-unc - If set, do not use compression.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position
                          1 ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#genome_sizes>
        rdfs:comment      "genome_sizes is two column: <chromosome name> <size in bases>.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position
                          3 ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_peak_xls_file>
        rdfs:comment      "Peak calling report file (*_peaks.xls file produced by MACS2)" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/output_peak_xls_file> ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/nomodel>
        cwl:valueFrom  "${return true}" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-extract-number-mapped-reads.cwl#output_suffix>
        sld:type  xsd:string .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/shift>
        cwl:valueFrom  "${return -100}" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#output_spp_narrow_peak>
        rdfs:comment       "narrowPeak output file" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.input_bam.path.replace(/^.*[\\\\\\/]/, \"\").replace(/\\.[^/.]+$/, \"\") + \".spp.narrowPeak\")" ] ;
        sld:type           cwl:File , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#itemsPerSlot>
        rdfs:comment      "-itemsPerSlot=N - Number of data points bundled at lowest level. Default 512\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "-itemsPerSlot=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/trunk-peak-score.cwl#sep>
        cwl:default       "\\t" ;
        cwl:inputBinding  [ CommandLineBinding:position  2 ;
                            CommandLineBinding:prefix    "-F"
                          ] ;
        sld:type          xsd:string .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#call-summits>
        rdfs:comment      "If set, MACS will use a more sophisticated signal processing approach to find subpeak summits in each enriched peak region. DEFAULT: False " ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--call-summits"
                          ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#llocal>
        rdfs:comment      "LARGELOCAL   The large nearby region in basepairs to calculate\ndynamic lambda. This is used to capture the surround\nbias. If you set this to 0, MACS will skip llocal\nlambda calculation. *Note* that MACS will always\nperform a d-size local lambda calculation. The final\nlocal bias should be the maximum of the lambda value\nfrom d, slocal, and llocal size windows. DEFAULT:\n10000.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--llocal"
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#output_spp_cross_corr_plot>
        rdfs:comment       "peakshift/phantomPeak results summary plot" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.input_bam.path.replace(/^.*[\\\\\\/]/, \"\").replace(/\\.[^/.]+$/, \"\") + \".spp_cross_corr.pdf\")" ] ;
        sld:type           cwl:File , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/g>
        cwl:source  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#genome_effective_size> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#slocal>
        rdfs:comment      "SMALLLOCAL   The small nearby region in basepairs to calculate\ndynamic lambda. This is used to capture the bias near\nthe peak summit region. Invalid if there is no control\ndata. If you set this to 0, MACS will skip slocal\nlambda calculation. *Note* that MACS will always\nperform a d-size local lambda calculation. The final\nlocal bias should be the maximum of the lambda value\nfrom d, slocal, and llocal size windows. DEFAULT: 1000\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--slocal"
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/count-with-output-suffix.cwl#input_file>
        sld:type  cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#q>
        rdfs:comment      "Minimum FDR (q-value) cutoff for peak detection. DEFAULT: 0.05. -q, and -p are mutually exclusive." ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "-q"
                          ] ;
        sld:type          xsd:float , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#x>
        rdfs:comment      "-x=<min>:<max>, strand shifts to exclude (This is mainly to avoid region around phantom peak) default=10:(readlen+10)" ;
        cwl:inputBinding  [ CommandLineBinding:prefix    "-x=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#tab>
        rdfs:comment      "-tab - If set, expect fields to be tab separated, normally expects white space separator.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position
                          1 ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/count-reads-after-filtering.cwl#peak_xls_file>
        cwl:inputBinding  [ CommandLineBinding:position
                          1 ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/trunk-peak-score.cwl>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Trunk scores in ENCODE bed6+4 files" ;
        ns1:original_cwlVersion  "v1.0" ;
        cwl:arguments            ( [ CommandLineBinding:position  3 ;
                                     cwl:valueFrom                "BEGIN{OFS=FS}$5>1000{$5=1000}{print}"
                                   ]
                                 ) ;
        cwl:baseCommand          ( "awk" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/v1.2> ;
        cwl:hints                [ a       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/LoadListingRequirement> ;
                                   LoadListingRequirement:loadListing
                                           "deep_listing"
                                 ] ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "reddylab/workflow-utils:ggr"
                                 ] ;
        cwl:hints                [ a                            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/NetworkAccess> ;
                                   NetworkAccess:networkAccess  true
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/trunk-peak-score.cwl#sep> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/trunk-peak-score.cwl#peaks> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/trunk-peak-score.cwl#trunked_scores_peaks> ;
        cwl:stdout               "$(inputs.peaks.path.replace(/^.*[\\\\\\/]/, '').replace(/\\.([^/.]+)$/, \"\\.trunked_scores\\.$1\"))" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#input_bam>
        rdfs:comment      "<ChIP_alignFile>, full path and name (or URL) of tagAlign/BAM file (can be gzipped)(FILE EXTENSION MUST BE tagAlign.gz, tagAlign, bam or bam.gz)" ;
        cwl:inputBinding  [ CommandLineBinding:prefix    "-c=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#output_peak_file>
        rdfs:comment       "Peak calling output file in narrowPeak|broadPeak format." ;
        cwl:outputBinding  [ CommandOutputBinding:glob  "$(inputs.treatment[0].path.replace(/^.*[\\\\\\/]/, '').replace(/\\.[^/.]+$/, '') + '_peaks.*Peak')" ;
                             CommandOutputBinding:outputEval
                                     "$(self[0])"
                           ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#fix-bimodal>
        rdfs:comment      "Whether turn on the auto pair model process. If set, when MACS failed to build paired model, it will use the nomodel settings, the --exsize parameter to extend each tags towards 3' direction. Not to use this automate fixation is a default behavior now. DEFAULT: False " ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--fix-bimodal"
                          ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/count-with-output-suffix.cwl#output_counts>
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.input_file.path.replace(/^.*[\\\\\\/]/, '') + inputs.output_suffix)" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#output_filtered_read_count_file>
        rdfs:comment      "Filtered read count reported by MACS2" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-reads-filtered/read_count_file> ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#broad-cutoff>
        rdfs:comment      "BROADCUTOFF\nCutoff for broad region. This option is not available\nunless --broad is set. If -p is set, this is a pvalue\ncutoff, otherwise, it's a qvalue cutoff. DEFAULT: 0.1\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--broad-cutoff"
                          ] ;
        sld:type          xsd:float , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#buffer-size>
        rdfs:comment      "BUFFER_SIZE\nBuffer size for incrementally increasing internal\narray size to store reads alignment information. In\nmost cases, you don't have to change this parameter.\nHowever, if there are large number of\nchromosomes/contigs/scaffolds in your alignment, it's\nrecommended to specify a smaller buffer size in order\nto decrease memory usage (but it will take longer time\nto read alignment files). Minimum memory requested for\nreading an alignment file is about # of CHROMOSOME *\nBUFFER_SIZE * 2 Bytes. DEFAULT: 100000\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--buffer-size"
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-peak-frag-length/input_spp_txt_file>
        cwl:source  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp/output_spp_cross_corr> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-peaks/input_file>
        cwl:source  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/output_peak_file> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#SPMR>
        rdfs:comment      "If True, MACS will save signal per million reads for fragment pileup profiles. Require --bdg to be set. Default: False " ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--SPMR"
                          ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp/savp>
        cwl:valueFrom  "${return true}" .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-reads-filtered/peak_xls_file>
        cwl:source  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#peak-calling/output_peak_xls_file> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#verbose>
        rdfs:comment      "VERBOSE_LEVEL     Set verbose level of runtime message. 0: only show\ncritical message, 1: show additional warning message,\n2: show process information, 3: show debug messages.\nDEFAULT:2\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--verbose"
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#nomodel>
        rdfs:comment      "\t Whether or not to build the shifting model. If True,  MACS will not build model. by default it means  shifting size = 100, try to set extsize to change it.  DEFAULT: False" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--nomodel"
                          ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-count-reads-in-peaks/input_bam_file>
        cwl:source  <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#filter-reads-in-peaks/filtered_file> .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#output_ext_frag_bdg_file>
        rdfs:comment       "Bedgraph with extended fragment pileup." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.treatment[0].path.replace(/^.*[\\\\\\/]/, '').replace(/\\.[^/.]+$/, '') + '_treat_pileup.bdg')" ] ;
        sld:type           cwl:File , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#s>
        rdfs:comment      "-s=<min>:<step>:<max> , strand shifts at which cross-correlation is evaluated, default=-500:5:1500" ;
        cwl:inputBinding  [ CommandLineBinding:prefix    "-s=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#shift>
        rdfs:comment      "(NOT the legacy --shiftsize option!) The arbitrary shift in bp. Use discretion while setting it other than default value. When NOMODEL is set, MACS will use this value to move cutting ends (5') towards 5'->3' direction then apply EXTSIZE to extend them to fragments. When this value is negative, ends will be moved toward 3'->5' direction. Recommended to keep it as default 0 for ChIP-Seq datasets, or -1 * half of EXTSIZE together with EXTSIZE option for detecting enriched cutting loci such as certain DNAseI-Seq datasets. Note, you can't set values other than 0 if format is BAMPE for paired-end data. DEFAULT: 0." ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--shift"
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#to-large>
        rdfs:comment      "When set, scale the small sample up to the bigger sample. By default, the bigger dataset will be scaled down towards the smaller dataset, which will lead to smaller p/qvalues and more specific results. Keep in mind that scaling down will bring down background noise more. DEFAULT: False " ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--to-large"
                          ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-peaks>
        cwl:in       <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-peaks/input_file> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-peaks/output_suffix> ;
        cwl:out      <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-peaks/output_counts> ;
        cwl:run      <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/utils/count-with-output-suffix.cwl> ;
        cwl:scatter  ( <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#count-peaks/input_file> ) .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp>
        cwl:in             <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp/input_bam> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp/nthreads> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp/savp> ;
        cwl:out            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp/output_spp_cross_corr> , <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp/output_spp_cross_corr_plot> ;
        cwl:run            <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl> ;
        cwl:scatter        ( <https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#spp/input_bam> ) ;
        cwl:scatterMethod  ScatterMethod:dotproduct .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#savn>
        rdfs:comment      "-savn=<narrowpeakfilename> OR -savn NarrowPeak file name (fixed width peaks)" ;
        cwl:inputBinding  [ cwl:valueFrom  "${ if (self) return \"-savn=\" + inputs.input_bam.path.replace(/^.*[\\\\\\/]/, \"\").replace(/\\.[^/.]+$/, \"\") + \".spp.narrowPeak\"; return null}" ] ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#input_bam_files>
        sld:type  [ sld:items  cwl:File ;
                    sld:type   sld:array
                  ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/macs2-callpeak.cwl#ratio>
        rdfs:comment      "RATIO         When set, use a custom scaling ratio of ChIP/control\n(e.g. calculated using NCIS) for linear scaling.\nDEFAULT: ingore\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--ratio"
                          ] ;
        sld:type          xsd:float , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/spp/spp.cwl#nthreads>
        rdfs:comment      "-p=<nodes> , number of parallel processing nodes, default=0" ;
        cwl:inputBinding  [ CommandLineBinding:prefix    "-p=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/quant/bedToBigBed.cwl#extraIndex>
        rdfs:comment      "-extraIndex=fieldList - If set, make an index on each field in a comma separated list\n   extraIndex=name and extraIndex=name,id are commonly used.\n" ;
        cwl:inputBinding  [ CommandLineBinding:itemSeparator
                                    "," ;
                            CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "-extraIndex="
                          ] ;
        sld:type          sld:null ;
        sld:type          [ sld:items  xsd:string ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/peak_calling/samtools-filter-in-bedfile.cwl#input_bam_file>
        rdfs:comment      "Aligned BAM file to filter" ;
        cwl:inputBinding  [ CommandLineBinding:position
                          3 ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/81555a89cc2d16bd3ab131a6685a44b44f08f927/v1.0/ATAC-seq_pipeline/04-peakcall-se.cwl#extract-count-reads-in-peaks/output_suffix>
        cwl:valueFrom  ".read_count.within_replicate.txt" .
