3 # Copyright (c) 2017 Leiden University Medical Center
5 # Permission is hereby granted, free of charge, to any person obtaining a copy
6 # of this software and associated documentation files (the "Software"), to deal
7 # in the Software without restriction, including without limitation the rights
8 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 # copies of the Software, and to permit persons to whom the Software is
10 # furnished to do so, subject to the following conditions:
12 # The above copyright notice and this permission notice shall be included in
13 # all copies or substantial portions of the Software.
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 String prefix = "./scatter"
29 Int? minimumBasesPerFile
31 String memory = "256M"
33 String dockerImage = "quay.io/biocontainers/chunked-scatter:1.0.0--py_0"
40 ~{"-c " + chunkSize} \
42 ~{"-m " + minimumBasesPerFile} \
47 Array[File] scatters = read_lines(stdout())
53 time_minutes: timeMinutes
58 inputFile: {description: "Either a bed file describing regiosn of intrest or a sequence dictionary.", category: "required"}
59 prefix: {description: "The prefix for the output files.", category: "advanced"}
60 chunkSize: {description: "Equivalent to chunked-scatter's `-c` option.", category: "advanced"}
61 overlap: {description: "Equivalent to chunked-scatter's `-o` option.", category: "advanced"}
62 minimumBasesPerFile: {description: "Equivalent to chunked-scatter's `-m` option.", category: "advanced"}
63 timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
64 memory: {description: "The amount of memory this job will use.", category: "advanced"}
65 dockerImage: {description: "The docker image used for this task. Changing this may result in errors which the developers may choose not to address.",
74 String prefix = "scatters/scatter-"
75 Boolean splitContigs = false
76 Int scatterSizeMillions = 1000
79 String memory = "256M"
80 String dockerImage = "quay.io/biocontainers/chunked-scatter:0.2.0--py_0"
83 String finalSize = if defined(scatterSize) then "~{scatterSize}" else "~{scatterSizeMillions}000000"
88 --scatter-size ~{finalSize} \
89 ~{true="--split-contigs" false="" splitContigs} \
90 ~{"--prefix " + prefix} \
95 Array[File] scatters = read_lines(stdout())
102 time_minutes: timeMinutes
106 inputFile: {description: "The input file, either a bed file or a sequence dict. Which format is used is detected by the extension: '.bed', '.fai' or '.dict'.", category: "required"}
107 prefix: {description: "The prefix of the ouput files. Output will be named like: <PREFIX><N>.bed, in which N is an incrementing number. Default 'scatter-'.", category: "advanced"}
108 splitContigs: {description: "If set, contigs are allowed to be split up over multiple files.", category: "advanced"}
109 scatterSizeMillions: {description: "Over how many million base pairs should be scattered.", category: "common"}
110 scatterSize: {description: "Overrides scatterSizeMillions with a smaller value if set.", category: "advanced"}
112 timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
113 memory: {description: "The amount of memory this job will use.", category: "advanced"}
114 dockerImage: {description: "The docker image used for this task. Changing this may result in errors which the developers may choose not to address.",
115 category: "advanced"}