Exome-alignment Workflow

public public 1yr ago Version: Version 1 0 bookmarks

Exome Alignment Workflow

Code Snippets

16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
baseCommand: ["bwa", "index"]

inputs:
  algorithm:
    type: string?
    inputBinding:
      prefix: -a

  reference_genome:
    type: File
    inputBinding:
      position: 4

  block_size:
    type: int?
    inputBinding:
      position: 2
      prefix: -b
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
baseCommand: ["bwa" , "mem", "-M", "-p"]

inputs:
  trimmed_fastq:
    type: File
    inputBinding:
      position: 4

  reference_genome:
    type: File
    inputBinding:
      position: 3
    secondaryFiles:
      - .amb
      - .ann
      - .bwt
      - .pac
      - .sa

  sample_name:
    type: string

  threads:
    type: string?
    default: '2'
    inputBinding:
      position: 1
      prefix: '-t'

  read_group:
    type: string
    default: '@RG\\tID:H947YADXX\\tSM:NA12878\\tPL:ILLUMINA'
    inputBinding:
      position: 2
      prefix: '-R'
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
baseCommand: ["cutadapt", "--interleaved"]

arguments:
  - position: 1
    prefix: '-j'
    valueFrom: '0'
  - position: 2
    prefix: '--error-rate'
    valueFrom: '0.2'
  - position: 3
    prefix: '--overlap'
    valueFrom: '6'
  - position: 4
    prefix: '-o'
    valueFrom: '$(inputs.raw_sequences[0].basename + ".trimmed.fastq.gz")'

inputs:
  raw_sequences:
    type: File[]
    inputBinding:
      position: 20
      prefix: ''
      separate: false

  adaptors_file:
    type: File?
    inputBinding:
      position: 10
      prefix: '-a'
16
17
18
19
20
21
22
23
24
baseCommand: ["gunzip"]

arguments: ["-c", "-v"]

inputs:
  reference_genome:
    type: File
    inputBinding:
      position: 2
CWL From line 16 of tools/gunzip.cwl
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
baseCommand: ["picard", "CreateSequenceDictionary"]

inputs:
  reference_genome:
    type: File
    inputBinding:
      position: 1
      prefix: 'R='
      separate: false

arguments:
  - position: 2
    prefix: 'O='
    separate: false
    valueFrom: $(inputs.reference_genome.nameroot).dict
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
57
58
baseCommand: ["picard", "MarkDuplicates"]

inputs:
  alignments:
    type: File
    inputBinding:
      position: 2
      prefix: 'INPUT='
      separate: false

arguments:
  - position: 0
    prefix: OPTICAL_DUPLICATE_PIXEL_DISTANCE=
    valueFrom: '100'
    separate: false
  - position: 0
    prefix: TAGGING_POLICY=
    valueFrom: 'All'
    separate: false
  - position: 0
    prefix: CREATE_INDEX=
    valueFrom: 'true'
    separate: false
  - position: 0
    prefix: REMOVE_DUPLICATES=
    valueFrom: 'true'
    separate: false
  - position: 0
    prefix: TAG_DUPLICATE_SET_MEMBERS=
    valueFrom: 'true'
    separate: false
  - position: 0
    prefix: ASSUME_SORT_ORDER=
    valueFrom: 'coordinate'
    separate: false
  - position: 1
    prefix: 'METRICS_FILE='
    valueFrom: $(inputs.alignments.nameroot).metrics.txt
    separate: false
  - position: 3
    prefix: 'OUTPUT='
    valueFrom: $(inputs.alignments.nameroot).md.bam
    separate: false
18
19
20
21
22
23
24
baseCommand: ["samtools", "faidx"]

inputs:
  sequences:
    type: File
    inputBinding:
      position: 1
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
baseCommand: ["samtools", "sort"]

inputs:
  bam_unsorted:
    type: File
    inputBinding:
      position: 2

  threads:
    type: string?
    default: "8"
    inputBinding:
      position: 1
      prefix: '--threads'

arguments:
  - position: 2
    prefix: '-o'
    valueFrom: $(inputs.bam_unsorted.nameroot).sorted.bam
ShowHide 4 more snippets with no or duplicated tags.

Login to post a comment if you would like to share your experience with this workflow.

Do you know this workflow well? If so, you can request seller status , and start supporting this workflow.

Free

Created: 1yr ago
Updated: 1yr ago
Maitainers: public
URL: https://github.com/inab/ipc_workflows/tree/main/exome/alignment
Name: exome-alignment
Version: Version 1
Badge:
workflow icon

Insert copied code into your website to add a link to this workflow.

Downloaded: 0
Copyright: Public Domain
License: Boost Software License 1.0
  • Future updates

Related Workflows

cellranger-snakemake-gke
snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...