Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bair
    Member
    • Jan 2010
    • 65

    #1

    samtools mpileup fails

    Hello all,

    I'm using asmtools mpileup for snp calling from eight bam files, I get this following error message

    bam2bcf_indel.c:181: bcf_call_gap_prep: Assertion `n_types < 64' failed.
    [bcf_sync] incorrect number of fields (7 != 5). Corrupted file?
    [afs] 0:16195.241 1:1.758 2:87.006 3:1.843 4:16.294 5:0.378 6:3.137 7:0.193 8:4.107 9:0.037 10:0.005 11:0.000 12:3.000
    13:0.000 14:2.008 15:0.118 16:10.874

    Any helps?

    Thanks
  • lh3
    Senior Member
    • Feb 2008
    • 686

    #2
    I thought this should never happen, but it happened... This says that at a position there are more than 64 types of indels. For now, you may use "-I" to disable indel calling.

    Comment

    • bair
      Member
      • Jan 2010
      • 65

      #3
      Originally posted by lh3 View Post
      I thought this should never happen, but it happened... This says that at a position there are more than 64 types of indels. For now, you may use "-I" to disable indel calling.
      Thank you heng,

      But I still get outputs, there are SNPs and INDELs in vcf file, can I trust them? Does samtools ignores the problem INDELs and complete the job, or stop running?

      Comment

      • lh3
        Senior Member
        • Feb 2008
        • 686

        #4
        No, your results are truncated.

        Comment

        • bair
          Member
          • Jan 2010
          • 65

          #5
          Originally posted by lh3 View Post
          No, your results are truncated.
          Yes, you are right. I get more variants with -I option on chr:MT.

          Comment

          • gaffa
            Member
            • Oct 2010
            • 82

            #6
            I am also getting this error. I wonder if it would be possible to somehow sort out positions with excessively many indels before running mpileup.

            Comment

            • Haiqing
              Junior Member
              • Jun 2010
              • 4

              #7
              Hi! lh3,

              I got similar error:
              [bcf_sync] incorrect number of fields (0 != 5). Corrupted file?
              [afs] 0:0.000

              What does this mean?

              Thanks

              Comment

              • Haiqing
                Junior Member
                • Jun 2010
                • 4

                #8
                Another error message when do the first step for SNP call using samtools:
                samtools mpileup -uf reference.fna sample.sort.bam |bcftools view -bvcg - > var.raw.bcf
                [mpileup] 1 samples in 1 input files
                samtools: bam_plcmd.c:596: group_smpl: Assertion `id >= 0 && id < m->n' failed.
                Aborted
                :-(

                Any suggestions?

                Comment

                • lh3
                  Senior Member
                  • Feb 2008
                  • 686

                  #9
                  You have read groups undefined in the header

                  Comment

                  • Haiqing
                    Junior Member
                    • Jun 2010
                    • 4

                    #10
                    Thanks! It works now!

                    BTW, I also tried the old "pileup" for SNP/INDEL call with my deep sequencing data (50000+). Somehow, the pileup out only count 8000 read depth (column eight of the pileup output) for the first reference base. And then add one more read for every next base(like 8001 for second reference base, 8002 for third reference base, and so on). Any suggestions(I already give the -d60000 option to increase the max read depth. It works for mpileup, but not for pileup)? Thanks.
                    Last edited by Haiqing; 03-21-2011, 03:40 PM.

                    Comment

                    • oudacontrol
                      Junior Member
                      • Jan 2011
                      • 3

                      #11
                      How did you fix the read group issue? I am getting the same error: "bam_plcmd.c:596: group_smpl: Assertion `id >= 0 && id < m->n' failed" ...

                      Comment

                      • Haiqing
                        Junior Member
                        • Jun 2010
                        • 4

                        #12
                        I think I just removed these @RG header from SAM file(I do not use the read groups in my case).

                        Comment

                        • Hkins552
                          Member
                          • Jun 2011
                          • 18

                          #13
                          Is there anyway to avoid using the -I option? I would still like to call the INDELs on my file. My error is:

                          [bcf_sync] incorrect number of fields (6 != 5) at 0:33736084
                          [afs] 0:27544.812 1:16105.314 2:36880.874

                          Comment

                          • jamminbeh
                            Member
                            • Aug 2009
                            • 11

                            #14
                            How can I implement the -I option? I've tried:

                            /u/local/apps/samtools/0.1.11/samtools mpileup -I -uf hg19.fa accepted_hits.bam

                            and

                            /u/local/apps/samtools/0.1.11/samtools mpileup -ufI hg19.fa accepted_hits.bam

                            and I still get the same error:

                            [bcf_sync] incorrect number of fields (8 != 5). Corrupted file?

                            Comment

                            • aatu18
                              Junior Member
                              • Nov 2011
                              • 1

                              #15
                              Hi,

                              How did you solve this error, samtools: bam_plcmd.c:596: group_smpl: Assertion `id >= 0 && id < m->n' failed ? I am repeatedly getting this error! I have a merged and sorted bam file, which I am using to call SNPs using bcftools. i merged multiple sorted bam files using a "rg.txt" file I created..

                              Where should I look first ?

                              Thanks for any help!

                              aarti

                              Comment

                              Latest Articles

                              Collapse

                              • SEQadmin2
                                The Factors Reshaping Genome Assembly
                                by SEQadmin2



                                When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...
                                11-24-2026, 07:04 AM
                              • SEQadmin2
                                16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                                by SEQadmin2





                                NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
                                10-30-2026, 06:46 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by SEQadmin2, 11-23-2026, 11:11 AM
                              0 responses
                              28 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 11-17-2026, 06:27 AM
                              0 responses
                              41 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 11-12-2026, 07:59 AM
                              0 responses
                              61 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 11-05-2026, 09:25 AM
                              0 responses
                              67 views
                              0 reactions
                              Last Post SEQadmin2  
                              Working...