Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Using samtools/tablet to find indels

    As I understand, the following code should extract indels from a bam file and output them in pileup format:
    Code:
    samtools pileup -if <ref.fa> <file.sorted.bam>
    This command outputs nothing, however, when viewing the BAM file in tablet I can clearly see sections of the reference with no reads mapped to them.

    Am I running samtools correctly? Is there a different way I should be looking for indels?

  • #2
    Originally posted by agc View Post
    As I understand, the following code should extract indels from a bam file and output them in pileup format:
    Code:
    samtools pileup -if <ref.fa> <file.sorted.bam>
    This command outputs nothing, however, when viewing the BAM file in tablet I can clearly see sections of the reference with no reads mapped to them.

    Am I running samtools correctly? Is there a different way I should be looking for indels?
    It will call indels that are observed in the reads themselves. It wont do any type of re-assembly based on missing coverage etc. Hope that clears it up.

    Comment


    • #3
      I see. Thanks for the quick reply. So, in other words, hypothetically that pileup command would show me:
      Code:
      Read         : ACACGGGACAC
      Reference  : ACACACAC
      as an insertion of 3 Gs? Does that mean that indels can only be found via gapped aligners (IE bwa can find them, but not bowtie)?

      Also, why wouldn't it output parts of the reference that no reads were aligned to? Aren't those likely to be deletions?

      Comment


      • #4
        Originally posted by GussowCarmelab View Post
        I see. Thanks for the quick reply. So, in other words, hypothetically that pileup command would show me:
        Code:
        Read         : ACACGGGACAC
        Reference  : ACACACAC
        as an insertion of 3 Gs? Does that mean that indels can only be found via gapped aligners (IE bwa can find them, but not bowtie)?
        Yes, gapped aligners will find gaps, ungapped aligners will not.

        Originally posted by GussowCarmelab View Post
        Also, why wouldn't it output parts of the reference that no reads were aligned to? Aren't those likely to be deletions?
        Missing coverage could be due to sampling, but are likely deletions (or SVs). Deletions can also be observed with paired-end or mate-pair reads, where the distance between the two ends are farther away than expected. There are tools (like Breakway) that try to find SVs from paired-end (mate-pair) data. SAMtools does not try to find such variants.

        Comment


        • #5
          Our data is not mate-pair (50bp fragment library), but I would like to find fairly large indels (>200bp). Is this possible? I've read up on gapped aligners (BFAST and BWA), but they seem to be limited to smaller indels.

          Is there an aligner / software that can do this? Perhaps taking missing coverage into account?

          Thanks.
          Last edited by agc; 06-22-2010, 04:14 AM.

          Comment


          • #6
            For such large indels, with short reads, one needs paired or mated data!

            Using lack of coverage is an interesting concept, and IMO if there is a reference sample, you may be able to call indels based on comparison with coverage in reference sample. But simply taking missing coverage in a sample to be a deletion is very likely a false positive!
            --
            bioinfosm

            Comment


            • #7
              Utilizing a reference sample, is there a program (or samtools command) that can output the coordinates and sequences on the reference sequence where there is no coverage by the reads? We can roughly estimate the size of the indel that we are looking for, and hopefully we can weed out false positives that way.

              Comment


              • #8
                Originally posted by agc View Post
                Utilizing a reference sample, is there a program (or samtools command) that can output the coordinates and sequences on the reference sequence where there is no coverage by the reads? We can roughly estimate the size of the indel that we are looking for, and hopefully we can weed out false positives that way.
                I apologize for bumping this, but if there is no such program, we will attempt to write our own, but if there is already a software option for this, we'd rather utilize it then put in the time and effort of rewriting something that already exists.

                Thanks.

                Comment


                • #9
                  Originally posted by agc View Post
                  I apologize for bumping this, but if there is no such program, we will attempt to write our own, but if there is already a software option for this, we'd rather utilize it then put in the time and effort of rewriting something that already exists.

                  Thanks.
                  A quick perl script using the output of your pileup should be able to do this.

                  Comment

                  Latest Articles

                  Collapse

                  • seqadmin
                    Advancing Precision Medicine for Rare Diseases in Children
                    by seqadmin




                    Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
                    12-16-2024, 07:57 AM
                  • seqadmin
                    Recent Advances in Sequencing Technologies
                    by seqadmin



                    Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

                    Long-Read Sequencing
                    Long-read sequencing has seen remarkable advancements,...
                    12-02-2024, 01:49 PM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, 12-17-2024, 10:28 AM
                  0 responses
                  26 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 12-13-2024, 08:24 AM
                  0 responses
                  43 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 12-12-2024, 07:41 AM
                  0 responses
                  29 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 12-11-2024, 07:45 AM
                  0 responses
                  42 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X