-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockstore.cwl
57 lines (49 loc) · 1.67 KB
/
Dockstore.cwl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env cwl-runner
class: CommandLineTool
dct:contributor:
foaf:name: Andy Yang
foaf:mbox: mailto:[email protected]
dct:creator:
'@id': http://orcid.org/0000-0001-9102-5681
foaf:name: Andrey Kartashov
foaf:mbox: mailto:[email protected]
dct:description: 'Developed at Cincinnati Children’s Hospital Medical Center for the
CWL consortium http://commonwl.org/ Original URL: https://github.com/common-workflow-language/workflows'
cwlVersion: v1.0
requirements:
- class: DockerRequirement
dockerPull: quay.io/cancercollaboratory/dockstore-tool-samtools-rmdup:1.0
inputs:
single_end:
type: boolean
default: false
doc: |
rmdup for SE reads
input:
type: File
inputBinding:
position: 2
doc: |
Input bam file.
output_name:
type: string
inputBinding:
position: 3
pairend_as_se:
type: boolean
default: false
doc: |
treat PE reads as SE in rmdup (force -s)
outputs:
rmdup:
type: File
outputBinding:
glob: $(inputs.output_name)
doc: File with removed duplicates
baseCommand: [samtools, rmdup]
doc: |
Remove potential PCR duplicates: if multiple read pairs have identical external coordinates, only retain the pair with highest mapping quality. In the paired-end mode, this command ONLY works with FR orientation and requires ISIZE is correctly set. It does not work for unpaired reads (e.g. two ends mapped to different chromosomes or orphan reads).
Usage: samtools rmdup [-sS] <input.srt.bam> <out.bam>
Options:
-s Remove duplicates for single-end reads. By default, the command works for paired-end reads only.
-S Treat paired-end reads and single-end reads.