Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • offsetoff
    Junior Member
    • Jun 2011
    • 1

    #1

    bwa aln fred score offset

    I just realized that I hadn't been specifying Illumina offset when running bwa (v.0.5.9-r16) alignments. BWA's -I command line option specifies the 64 byte Illumina offset vs. the default Sanger 33 byte offset. I start with fastqs from a HiSeq2k and perform the alignment with:

    bwa aln -l 32 -t 4 $GENOME fooR1.fastq > fooR1.sai
    bwa aln -l 32 -t 4 $GENOME fooR2.fastq > fooR2.sai

    where I think I should have specified

    bwa aln -I -l 32 -t 4 $GENOME fooR1.fastq > fooR1.sai
    bwa aln -I -l 32 -t 4 $GENOME fooR2.fastq > fooR2.sai

    then I do the bwa paired end alignment with bwa sampe and convert the sam to bam with samtools.

    I have quite a few of these bam files with the incorrect fred score offset and I'm not sure the best way to proceed. A few questions:

    What impact would an across the board fred score inflation have on alignment? We're using the alignment primary as a qc metric.

    Would the fred scores which exceeded the Sanger format fred score range be truncated and essentially lost in the sam / bam files because the range is higher than was expected?

    Provided the bam file can accommodate the wider range of fred scores and no data was lost, does a tool exist that would let me take an existing bam file and shift the fred scores down across the board?

    The one curious thing I've seen is that converting the bam files back to fastq produces the correct fred scores, where I'd have expected them to be shifted.

    It seems like ultimately the right solution is to re-align everything with the proper offset, but given the number of files involved I'm looking for some way to mitigate the impact (or at least understand it better) in the mean time.

    Thanks,
    Matt
  • maubp
    Peter (Biopython etc)
    • Jul 2009
    • 1544

    #2
    Its PHRED not FRED, which might help with Google searching.

    And yes, if your FASTQ files are using the Illumina FASTQ encoding with ASCII offset 64, use BWA with the -I switch to indicate this. By default it assumes you have standard Sanger FASTQ files where the offset is 33.

    See also http://bio-bwa.sourceforge.net/bwa.shtml

    Comment

    Latest Articles

    Collapse

    • kinpict.com
      Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
      by kinpict.com
      The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
      Today, 06:37 PM
    • SEQadmin2
      16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
      by SEQadmin2





      NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
      10-30-2026, 06:46 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 11-12-2026, 07:59 AM
    0 responses
    27 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 11-05-2026, 09:25 AM
    0 responses
    35 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 11-03-2026, 11:54 AM
    2 responses
    56 views
    0 reactions
    Last Post kinpict.com  
    Started by SEQadmin2, 10-28-2026, 09:57 AM
    0 responses
    175 views
    0 reactions
    Last Post SEQadmin2  
    Working...