Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Problem with alignment: I can align only half of the reads (bwa)

    Dear seqanswers community,

    unfortunately I can align only half of the reads (Illumina paired end sequencing od human exomes, 100 bp reads and the same problem with haloplex amplicon sequencing) using bwa. Test of one commercial software showed, that it is a pipeline problem and twice as much reads can be aligned. Commercial software is also based on bwa. Tuning of bwa parameter did not bring much improvement (brought an inscrease of 5-8% more reads to the existing alignment).

    The following bwa parameter were tested:

    bwa aln –e1…[-e10..–e100];
    bwa aln –E1[ –E10…-E100];
    bwa aln -k1..[ –k10…-k100],
    bwa aln –R1…[-R10..–R100],
    bwa aln –o1…[-o10..–o100],
    bwa aln –O1…[-O10..–O100]

    The generated statistics (samtools idxstat) of commercial (in green) and of our alignment (in red) is in the attached statistics.ppt file. I also attached a screen of two .bam files of amplicon sequencing (upper sample is a result of commercial software and lower is our pipeline, screenshot.ppt). My next idea is, that may be before performing bwa it is necessary to sort the sequences (but I do not know how?).

    Do you have any ideas, what can be the problem? Here is the script of the pipeline:

    Code:
    #!/bin/sh
    
    # input 1: fasta 1
    # input 2: fasta 2
    # input 3: sample prefix
    # input 4: number of cores
    
    # program directories
    
    NGS=/home/user/NGS
    java=/usr/local/jre1.7.0_21/bin
    picard=${NGS}/picard-tools-1.64/
    samtools=${NGS}/samtools-0.1.18
    BEDTools=${NGS}/bedtools-2.17.0
    annovar=${NGS}/annovar/annovar
    GATK=${NGS}/GATK/GenomeAnalysisTK-2.3-9-ge5ebf34
    
    # number of cores available for bwa
    nkern=$4
    
    # reference genome 
    ref=${NGS}/refgenome/GATK/ucsc.hg19.fasta
    # exon cover known gene
    exon_cover=${NGS}/refgenome/hg19/TruSeq-Exome-Targeted-Regions-BED-file
    # dbsnp
    dbsnp=${NGS}/refgenome/GATK/dbsnp_135.hg19.vcf
    
    mkdir -p LOG
    rm -f LOG/*.log
    
    seq1=$1
    seq2=$2
    sample=$3
    
    ${NGS}/bwa-0.7.5a/bwa aln -t $nkern $ref $seq1 > ${sample}_R1.sai
    ${NGS}/bwa-0.7.5a/bwa aln -t $nkern $ref $seq2 > ${sample}_R2.sai
    
    ${NGS}/bwa-0.7.5a/bwa sampe -A -P \
    	-r "@RG\tID:Sample\tSM:Sample\tPL:illumina\tCN:exome" \
    	$ref \
    	${sample}_R1.sai \
    	${sample}_R2.sai \
    	$seq1 \
    	$seq2 > \
    	${sample}.sam
    
    ${NGS}/samtools-0.1.18/samtools view -bS ${sample}.sam > ${sample}.bam
    ${NGS}/samtools-0.1.18/samtools sort ${sample}.bam ${sample}_sorted_w_dup
    ${NGS}/samtools-0.1.18/samtools index ${sample}_sorted_w_dup.bam
    ${NGS}/samtools-0.1.18/samtools idxstats ${sample}_sorted_w_dup.bam > idxstat.txt
    ${NGS}/samtools-0.1.18/samtools rmdup ${sample}_sorted_w_dup.bam ${sample}_preGATK_sorted.bam
    ${NGS}/samtools-0.1.18/samtools index ${sample}_preGATK_sorted.bam
    ${NGS}/samtools-0.1.18/samtools idxstats ${sample}_preGATK_sorted.bam > idxstat.txt
    I have been troubleshooting this issue for some time now and any help would be greatly appreciated.

    Thank you very much!

    Best Regards,

    Anna
    Attached Files
    Last edited by ADseq; 10-11-2013, 06:40 AM.

  • #2
    Have you tried trimming the sequences prior to alignment (with trmmomatic or trim_galore)? Perhaps the commercial program does that and doesn't mention it. Aside from that, try to find a few of the reads that the commercial software aligns via BWA that you can't get to align yourself and check on their quality (both in terms of phred and also in terms of MAPQ) to see if perhaps there's an obvious setting change to make in bwa. You might also BLAT them to see if perhaps the commercial software is doing something weird (aligning to a restricted genome or something).

    Comment


    • #3
      ...better late then never...

      Dear Devon Ryan, I am very sorry for a great delay in my response. Thank you very much for your response and suggestions. I trimmed the sequences (5 last and 25 last bp) using custom script (but NOT trmmomatic or trim_galore) , but it did not improved my alignment. I can also try trmmomatic or trim_galore, may be it will make some difference. Ad. using BLAT and the check of the quality of reads, which I can not align, but the commercial software aligns - this work is in progress.

      Thank you again,

      Anna

      Comment


      • #4
        Kein Problem

        It's too bad that trimming didn't do much for you, though perhaps that's not the root of the problem. It'll be interesting to find out what blat returns.

        Comment


        • #5
          Hi,

          did you try bwa step "sampe" without the "-A"?
          Here is a nice discussion: http://seqanswers.com/forums/showthread.php?t=11652
          if you should use it or not.

          best regards,
          Air

          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, Yesterday, 11:49 AM
          0 responses
          15 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-24-2024, 08:47 AM
          0 responses
          16 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          61 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          60 views
          0 likes
          Last Post seqadmin  
          Working...
          X