Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • samtools pileup c-option changes read quality

    Hi

    I might be wrong but I got the impression that when using the c-option in the pileup process, then the read qualities are changed (near an indel, N's are placed also):
    (I am using version 0.1.9 but version 0.1.10 seems to be the same). I am sure that there is an explanation, but I dont know it! Thanks for help!

    Example: the differences are lines 68-71

    with c option: (jump to line 67-75)
    /apps/bi/samtools/c/samtools pileup -c test.bam -f test_ref.fa | less
    test 67 A A 30 0 60 1 . 1
    test 68 C N 0 0 0 1 . (
    test 69 C N 0 0 0 1 . %
    test 70 C N 0 0 0 1 . !
    test 71 C N 0 0 0 1 .-1C !
    test 71 * -C/-C 40 0 60 1 -C * 1 0 0 0 0
    test 72 C N 0 0 0 1 * <
    test 73 T T 30 0 60 1 . <
    test 74 A A 30 0 60 1 . @
    test 75 T T 30 0 60 1 . 1


    without c option: (jump to line 67-75)
    /apps/bi/samtools/c/samtools pileup test.bam -f test_ref.fa | less
    test 67 A 1 . 1
    test 68 C 1 . 1
    test 69 C 1 . 1
    test 70 C 1 . 1
    test 71 C 1 .-1C 1
    test 72 C 1 * <
    test 73 T 1 . <
    test 74 A 1 . @
    test 75 T 1 . 1

    Here is my test.sam file

    @HD VN:0.0 GO:none SO:coordinate
    @SQ SN:test LN:360
    @PG ID:map2sam
    GLXM4QB02GKAEH 0 test 1 255 71M1D17M1D20M1I147M * 0 0 GATCTCTTTTTCCAGTTTAAAAGTTCAGCTATTACAAGGTAAATGCAAAATGACAGTAAGGTTCCCACCCCTATTTTTCATCTTTTATGTCAAGAAGATACTTGTAAAAGAGAAGTAAGGTTAGGTATGATATTCGTTTATAAAGCATTTGGTGGAATACAGCGGTGGCAGGAAGTTGAACTGTCAACATTTTTGACCGTGTCAATTCATTTAATACATGTAGCCTGTATCTATTGAGTATATGGTACACATGCGG BAAABB55733>><94444444=99??>??<888?<<<89333=996666ABA???CDBAAAA<<;11111<@11100=?A?44444/4894443<98===993/.,,,-,559531266><866669:<<32444339@9;;<BBB???::8AAAA???DDDDDBBA?>===83../..33:8:9921,,,,,..--558875555:3...222679::9:32449898<<<<=AAAA@@<84449:666<::--


    Here is the test_ref.fa file

    >test
    GATCTCTTTTTCCAGTTTAAAAGTTCAGCTATTACAAGGTAAATGCAAAATGACAGTAAG
    GTTCCCACCCCCTATTTTTCATCTTTTATTGTCAAGAAGATACTTGCAAAGAGAAGTAAG
    GTTAGGTATGATATTCGTTTATAAAGCATTTGGTGGAATACAGCGGTGGCAGGAAGTTGA
    ACTGTCAACATTTTGTACCGTGTCAATTCATTTAATACATGTAGCCTGTATCTATTGAGT
    ATATGGTACACATGCGGAAGTGTTCTGAGGATAAAGTCACGAAAAAAAAAAGGCACAATT
    CTTGTTTTCAGGGAGATTATGTTCTAGTGAGGAGAATAATAGAAGAAGAAAGTCCCACTC

  • #2
    base quality score changes option -c samtools pileup and mpileup

    Hi,

    I can confirm this bug, as I had also noticed base quality scores changes with -c option, when I compared the number of high quality en low quality bases of a first mapping to a remapping against a sample specific reference. It appeared that low quality (LQ) bases, in the first mapping turned into high (HQ) quality bases, at positions were initially the reads did not match the reference and did in the remapping. So, I checked this problem with 10 reads at positions where a mutation occurred:

    first mapping
    ref HQ_A HQ_C HQ_G HQ_T LQ_A LQ_C LQ_G LQ_T
    T 0 2 0 1 0 7 0 0
    second mapping
    ref HQ_A HQ_C HQ_G HQ_T LQ_A LQ_C LQ_G LQ_T
    C 0 9 0 1 0 0 0 0

    When the pileup was made without the option -c, these changes did not happen. Also, mpileup seems to have this same problem.

    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 on Modified Bases...
      Yesterday, 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, 04-11-2024, 12:08 PM
    0 responses
    55 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 10:19 PM
    0 responses
    51 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 09:21 AM
    0 responses
    45 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-04-2024, 09:00 AM
    0 responses
    55 views
    0 likes
    Last Post seqadmin  
    Working...
    X