Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • arvid
    replied
    Originally posted by Irina Pulyakhina View Post
    Hi all,

    Does anyone know the difference between N and D in CIGAR? I assume for long deletions (let's say 1000 b.p.) you'll get "1000N" and for short ones (let's say 2 b.p.) you'll get "2D" in the CIGAR. But where is the border? At what point will it change from D to N?

    Thanks!
    N is typically used to define an intron when aligning mRNA-originating reads to a genome; D would be for real deletions. Though the usage of N is not strictly defined in the SAM spec.

    Leave a comment:


  • Irina Pulyakhina
    replied
    Hi all,

    Does anyone know the difference between N and D in CIGAR? I assume for long deletions (let's say 1000 b.p.) you'll get "1000N" and for short ones (let's say 2 b.p.) you'll get "2D" in the CIGAR. But where is the border? At what point will it change from D to N?

    Thanks!

    Leave a comment:


  • Jenzo
    replied
    Dear lh3,
    thanks for this hint. I'll try to use calmd now!

    Update: With an own perlscript it was possible to use information in cigar string and calmd-sam to calculate % Sequence Identity. Thanks a lot for help provided!
    Last edited by Jenzo; 03-30-2011, 04:20 AM.

    Leave a comment:


  • lh3
    replied
    for nearly all existing SAMs: no, not directly. but you can use samtools calmd to generate extra tags given the reference sequence and SAM.

    Leave a comment:


  • Jenzo
    replied
    Hey all,

    back to the CIGAR string: Would you consider it possible to calculate "Percent Identity" out of the CIGAR string?

    My problem is: I use various mappers to align ~807000 454-Sequences against a set of "reference" sequences and need to decide, which of the 454-Sequences are (more or less) contained in my reference sequences. I would like to take only those sequences into account that have minimum of 95% Sequence Identity (number of identical residues (“matches”) in relation to the length of the alignment) in their alignment. For example in SSAHA2 (http://www.sanger.ac.uk/resources/software/ssaha2/) it is possible to set the parameter -identity properly. Other mappers do not provide such an option, so I would filter the SAM-Output via CIGAR string.
    Do you get my problem? Perhaps it is not necessary and i totally overlooked other possibilities?

    Thanks!

    Leave a comment:


  • Bruins
    replied
    Hi all,

    thanks for your replies (and related question :P)!!

    So... '^~.' for a chromosome position where one read aligns means: the read starts with a match (.) and that match has quality represented by ~ (ASCII code of ~ minus 33).
    'G$G$G$' means that at that particular position, three reads end with a mismatch (in all three cases a G).

    If I got this correct, I think I know how to interpret lines like the ones in my example. Any comments?

    cheers,

    Leave a comment:


  • Graham Etherington
    replied
    Got it! Thanks (and sorry for being so thick )

    Leave a comment:


  • nilshomer
    replied
    Originally posted by Graham Etherington View Post
    ...two reads end within two nucleotides of each other at the same alignment position...
    The above statement does not make sense to me. Could you clarify?

    Maybe this example will help:
    Code:
    REF: AAAACA
    R1:  AAAAC
    R2:    AACAA
    Pileup(ish):
    Code:
    REF 1 A ^k. <
    REF 2 A . <
    REF 3 A .^k. <<
    REF 4 A .. <<
    REF 5 C .$. <<
    REF 6 A .$ <

    Leave a comment:


  • Graham Etherington
    replied
    A quick question about the Pileup format - if $ means a position where a read ends on the alignment, than can the example pileup given on the Samtools website ever be true?
    http://samtools.sourceforge.net/pileup.shtml
    At the third positions in the pileup at reference positions 272 and 274 there are $ signs, which in my understanding of this statement means that two reads end within two nucleotides of each other at the same alignment position, which is an impossible scenario.
    Is this just a bad example of the pile up format, or have I misunderstood the explanation of the $ sign?

    Leave a comment:


  • kjngo
    replied
    Hi Bruins,
    I don't know if anyone answered your question about the ^* and the $ in the pileup file.
    ^* symbolizes that a read begins to align at this position and the character after the ^ is the mapping quality of the read. $ marks the position where a read ends on the alignment.

    You can reference this at : http://samtools.sourceforge.net/pileup.shtml
    Hope this helps

    Leave a comment:


  • Bruins
    replied
    Hi Justin,

    This is very helpful, thanks a lot!

    Wil

    ***edit

    I understand the CIGAR operations now. But I still do not know how to interpret read base clumns that contain '^~.' or '$' - what is a read segment in this context? (sorry if it is a silly question...)

    Some example lines from my unfiltered pileup:
    Code:
    gnl|Nvit1.0|Chr1        1       T       T       30      0       60      1       ^~.     b
    gnl|Nvit1.0|Chr1        51      C       C       147     0       60      40      ......$..................................       bbabaabbbbabbbbbbbbbbbbbbbbbbb_bbbbbbbba
    gnl|Nvit1.0|Chr1        104     A       R       82      82      60      12      G$G$G$,,,,,,,^~,^~,     Bbbc`bbb\ab`
    How do I interpret these?
    Last edited by Bruins; 04-29-2010, 01:23 AM.

    Leave a comment:


  • Justin Brown
    replied
    Hi Wil,

    If you haven't already, I suggest looking at the SAM/BAM format specification, section 1.4.3

    http://samtools.sourceforge.net/SAM1.pdf

    Also, the SAMtools paper gives an explanation of the cigar and extended cigar (section 2.1.2)

    Summary: The Sequence Alignment/Map (SAM) format is a generic alignment format for storing read alignments against reference sequences, supporting short and long reads (up to 128 Mbp) produced by different sequencing platforms. It is flexible in ...


    The standard cigar has three operations:
    M : match or mismatch
    I : insertion
    D: deletion

    The extended cigar adds
    N : skipped bases on reference
    S : soft clipping
    H : hard clipping
    P : padding

    Hope that helps,
    Justin

    Leave a comment:


  • Bruins
    started a topic CIGAR format in SAMtools

    CIGAR format in SAMtools

    Hi all,

    I am using the SAMtools pileup format (created using 'samtools pileup -c') for SNP calling. I need to extract the frequency of each variation from the read base column of the pileup. However, there is one part of this column that I do not understand:

    ... Also at the read base column, a symbol ‘^’ marks the start of a read segment which is a contiguous subsequence on the read separated by ‘N/S/H’ CIGAR operations. The ASCII of the character following ‘^’ minus 33 gives the mapping quality. A symbol ‘$’ marks the end of a read segment.
    Would someone care to explain this in different words? I find in my pileup many examples of '^~.' (at first glance at loci with a coverage of a few reads) and '$', how do I interpret this?

    Also, I have been trying to find an explanation of the CIGAR format. So far, my search has led me to Exonerate and the remark that apparently different versions of CIGAR exist. I was unable to find any other operations than M, D and I, let alone N, S or H. Is there some documentation on the CIGAR format, other than the exonerate man pages?

    Thank you,
    Wil

    ps thanks for all the hard work on SAMtools and Picard!

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, Yesterday, 11:13 AM
0 responses
16 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, Yesterday, 10:48 AM
0 responses
17 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-15-2026, 10:52 AM
0 responses
35 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-14-2026, 05:39 AM
0 responses
42 views
0 reactions
Last Post SEQadmin2  
Working...