Unconfigured Ad

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

    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
                    Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                    by SEQadmin2


                    Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                    The systematic characterization of the human proteome has
                    ...
                    07-20-2026, 11:48 AM
                  • SEQadmin2
                    Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                    by SEQadmin2



                    Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                    ...
                    07-09-2026, 11:10 AM
                  • SEQadmin2
                    Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                    by SEQadmin2



                    Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                    There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                    07-08-2026, 05:17 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 07-24-2026, 12:17 PM
                  0 responses
                  20 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-23-2026, 11:41 AM
                  0 responses
                  19 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-20-2026, 11:10 AM
                  0 responses
                  25 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-13-2026, 10:26 AM
                  0 responses
                  38 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...