Genomic variants - SNPs and INDELs detection using VARSCAN2.

public public 1yr ago Version: Version 1 0 bookmarks

Author: AMBARISH KUMAR [email protected] ; [email protected]

This is a proposed standard operating procedure for genomic variant detection using VARSCAN.

It is hoped to be effective and useful for getting SARS-CoV-2 genome variants.

It uses Illumina RNASEQ reads and genome sequence.

Code Snippets

864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
baseCommand:
  - bowtie2

arguments:
  - valueFrom: |
      ${
        if (inputs.filelist && inputs.filelist_mates){
          return "-1";
        } else if (inputs.filelist){
          return "-U";
        } else {
          return null;
        }
      }
    position: 82
  - valueFrom: |
      ${
        if (inputs.filelist && inputs.filelist_mates){
          return "-2";
        } else if (inputs.filelist_mates){
          return "-U";
        } else {
          return null;
        }
      }
    position: 84
  - valueFrom: |
      ${
        if (inputs.output_filename == ""){
          return ' 2> ' + default_output_filename().split('.').slice(0,-1).join('.') + '.log';
        } else {
          return ' 2> ' + inputs.output_filename.split('.').slice(0,-1).join('.') + '.log';
        }
      }
    position: 100000
    shellQuote: false
226
227
228
229
230
231
232
baseCommand:
  - bowtie2-build

arguments:
  - valueFrom: $('2> ' + inputs.bt2_index_base + '.log')
    position: 100000
    shellQuote: false
25
26
27
28
baseCommand: []
arguments:
- valueFrom: varscan mpileup2indel $(inputs.inputMpileup.path) > $(inputs.sampleName).indel.vcf
  shellQuote: false
25
26
27
28
baseCommand: []
arguments:
- valueFrom: varscan mpileup2snp $(inputs.inputMpileup.path) > $(inputs.sampleName).snp.vcf
  shellQuote: false
12
13
14
15
16
17
18
19
20
21
baseCommand: [ samtools, faidx ]

inputs:
  sequences:
    type: File
    doc: Input FASTA file


arguments:
   - $(inputs.sequences.basename)
19
20
21
22
23
24
25
26
27
28
29
baseCommand: ["samtools", "index"]
arguments:
  - valueFrom: -b  # specifies that index is created in bai format
    position: 1

inputs:
  bam_sorted:
    doc: sorted bam input file
    type: File
    inputBinding:
      position: 2
41
42
43
44
45
baseCommand: []
arguments:
- valueFrom: |-
    samtools index $(inputs.inputBAM.path) | samtools mpileup -B -f $(inputs.ReferenceGenome.path) $(inputs.inputBAM.path) > $(inputs.sampleName).mpileup
  shellQuote: false
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
baseCommand: ["samtools", "sort"]

inputs:
  bam_unsorted:
    doc: aligned reads to be checked in sam or bam format
    type: File
    inputBinding:
      position: 2
  by_name:
    doc: If true, will sort by name, otherwise will sort by genomic position
    type: boolean
    default: false
    inputBinding:
      position: 1
      prefix: -n
15
16
17
18
19
20
21
22
baseCommand: ["samtools", "view"]
arguments:
  - valueFrom: -h
    position: 1
    # include the headers
  - valueFrom: -b
    position: 1
    # output in bam format
ShowHide 6 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/ambarishK/bio-cwl-tools/blob/release/varscanW.cwl
Name: genomic-variants-snps-and-indels-detection-using-v
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 ...