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
      Recent Advances in Sequencing Analysis Tools
      by seqadmin


      The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
      05-06-2024, 07:48 AM
    • 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

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, Yesterday, 06:57 AM
    0 responses
    11 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 05-06-2024, 07:17 AM
    0 responses
    15 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 05-02-2024, 08:06 AM
    0 responses
    19 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-30-2024, 12:17 PM
    0 responses
    24 views
    0 likes
    Last Post seqadmin  
    Working...
    X