SNPs and INDELs detection using SAMTools.

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 SAMTools.

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

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
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 3 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/samtoolsW.cwl
Name: snps-and-indels-detection-using-samtools
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: Apache License 2.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 ...