Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Requesting Review for my Pipeline

    Hello everyone,

    I created a pipeline for alignment/variant calling for exomes that gathered from NextSeq500. Could you review this pipeline and share your thoughts about it?
    What are the possible missing parts, flaws or unnecessary steps of this pipeline?

    Code:
    cat ./*.fastq.gz > ./merged.fastq.gz  
    
    bwa aln -t 12 ./refgenome.fa ./merged.fastq.gz > ./raw.sai  
    
    bwa samse ./refgenome.fa ./raw.sai ./merged.fastq.gz > ./raw.sam  
    
    samtools view -b -S ./raw.sam > ./raw.bam  
    
    samtools view -bF 4 ./raw.bam > ./filtered.bam  
    
    samtools sort ./filtered.bam ./sorted.bam 
    
    rm ./*.sai  
    
    rm ./*.sam
    
    java -Xmx1024m -jar Picard/AddOrReplaceReadGroups.jar I= ./sorted.bam O= ./sorted_all.bam SORT_ORDER=coordinate RGID=ID RGLB=${PWD##*/}  RGPL=Illumina RGSM=${PWD##*/} RGPU=NXT001  RGCN=Done CREATE_INDEX=True  
    
    java -Xmx1024m -jar GATK/gatk.jar -T UnifiedGenotyper -nct 12 -R ./refgenome.fa -I ./sorted_all.bam --dbsnp /dbsnp/dbsnp_138.hg19.vcf -o ./variant.vcf -stand_call_conf 50.0 -stand_emit_conf 10.0 -glm BOTH  
    
    rm ./variant.vcf.idx 
    
    java -Xmx1024m -jar GATK/gatk.jar -R ./refgenome.fa -T SelectVariants --variant ./variant.vcf -select "DP >= 5.0" -o ./variant_filtered.vcf --intervals exome.bed

    Thank you.

  • #2
    Best forget about bwa and replace by bwa-mem.
    Thus you have just one step rather than aln ans samse

    You can pipe from bwa-me drectly into samtools view to transfrom the sam output into a bam.

    The read groups can be set directly in bwa men so you get rid of the AddOrReplaceReadGroup step.

    For variant calling you can use Platypus which is faster and also includes a complete set of
    QC steps. If your reads are longer than normal Ilumina reads you have to change the maximum read length in the newest Paltypus version.

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Essential Discoveries and Tools in Epitranscriptomics
      by seqadmin




      The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
      04-22-2024, 07:01 AM
    • seqadmin
      Current Approaches to Protein Sequencing
      by seqadmin


      Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
      04-04-2024, 04:25 PM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, Today, 08:47 AM
    0 responses
    12 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-11-2024, 12:08 PM
    0 responses
    60 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 10:19 PM
    0 responses
    59 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 09:21 AM
    0 responses
    54 views
    0 likes
    Last Post seqadmin  
    Working...
    X