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
                    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
                  • seqadmin
                    Strategies for Sequencing Challenging Samples
                    by seqadmin


                    Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
                    03-22-2024, 06:39 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, 04-11-2024, 12:08 PM
                  0 responses
                  18 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 04-10-2024, 10:19 PM
                  0 responses
                  22 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 04-10-2024, 09:21 AM
                  0 responses
                  17 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 04-04-2024, 09:00 AM
                  0 responses
                  49 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X