Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agc
    Member
    • May 2010
    • 26

    #1

    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?
  • nilshomer
    Nils Homer
    • Nov 2008
    • 1283

    #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

    • GussowCarmelab
      Junior Member
      • Apr 2010
      • 1

      #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

      • nilshomer
        Nils Homer
        • Nov 2008
        • 1283

        #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

        • agc
          Member
          • May 2010
          • 26

          #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

          • bioinfosm
            Senior Member
            • Jan 2008
            • 483

            #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

            • agc
              Member
              • May 2010
              • 26

              #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

              • agc
                Member
                • May 2010
                • 26

                #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

                • nilshomer
                  Nils Homer
                  • Nov 2008
                  • 1283

                  #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

                  • 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
                  16 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...