Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ADseq
    Junior Member
    • Oct 2013
    • 2

    #1

    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.
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #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

    • ADseq
      Junior Member
      • Oct 2013
      • 2

      #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

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #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

        • airtime
          Member
          • Jan 2011
          • 14

          #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

          • SEQadmin2
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          12 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          20 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-13-2026, 09:56 AM
          0 responses
          19 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-09-2026, 11:14 AM
          0 responses
          27 views
          0 reactions
          Last Post SEQadmin2  
          Working...