Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • bcftools error

    Hello,

    The command
    cat all.mpileup | bcftools view -bvcg - > all.var.raw.bcf

    exits with the text below
    [bcf_sync] incorrect number of fields (4 != 5) at 10:1696253
    [afs] 0:38509.883 1:50.388 2:38.729

    before exiting it outputs this text (this pattern starts at 100000)
    [bcfview] 13600000 sites processed.
    [afs] 0:99814.004 1:101.247 2:84.750
    [bcfview] 13700000 sites processed.
    [afs] 0:99786.086 1:107.189 2:106.725

    all.mpileup was generated with the following command
    samtools -verbose -uf reference.fasta all.bam > all.mpileup

    Does anyone know what is causing this or how to fix it? I would like to be able to call both SNPs and indels with this.

    Thank you
    Last edited by Morpse; 03-11-2011, 11:16 AM. Reason: typo

  • #2
    Same problem

    I am having the same problem, which is strange as I've used this exact pipeline/command previously with no issues. Have you figured anything out?

    Comment


    • #3
      The "incorrect number of files" can happen if the file is truncated. I see it sometimes if I want to check on a big files while it's still being made by mpileup.

      What's the purpose of the cat command, and the pipe?

      Comment


      • #4
        I ran into the same problem, either with or without nohup. Does anyone know how to fix? Now I am generating the raw bcf file and try to figure out what is wrong on that specific line.

        Comment


        • #5
          Still have this problem when doing bcftools view for a bcf file (mpileup generated): [bcf_sync] incorrect number of fields (6 != 5) at 7:1396330564
          Any help?

          Comment


          • #6
            Originally posted by Mark.hz View Post
            Still have this problem when doing bcftools view for a bcf file (mpileup generated): [bcf_sync] incorrect number of fields (6 != 5) at 7:1396330564
            Any help?
            Hi Mark.hz

            Have you sorted out this problem as I am also facing the similar error while running the bcf file [bcf_sync] incorrect number of fields (4 != 5) at 15:16294867.

            Regards

            Comment


            • #7
              Originally posted by figo1019 View Post
              Hi Mark.hz

              Have you sorted out this problem as I am also facing the similar error while running the bcf file [bcf_sync] incorrect number of fields (4 != 5) at 15:16294867.

              Regards
              Truncated BAM file may cause this problem. You need to go back to validate your BAM files by Picard.

              Comment


              • #8
                Originally posted by Mark.hz View Post
                Truncated BAM file may cause this problem. You need to go back to validate your BAM files by Picard.
                Thank you for your reply

                I ran the picard tool to validate I get an error
                ERROR: Read groups is empty

                Rest things are OK.

                Does it make a huge difference ?

                regards

                Comment


                • #9
                  Originally posted by figo1019 View Post
                  Thank you for your reply

                  I ran the picard tool to validate I get an error
                  ERROR: Read groups is empty

                  Rest things are OK.

                  Does it make a huge difference ?

                  regards
                  Strange. I don't think RG is the reason. Did the validation stop at the 1st error?

                  Comment

                  Latest Articles

                  Collapse

                  • seqadmin
                    Non-Coding RNA Research and Technologies
                    by seqadmin




                    Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

                    Nobel Prize for MicroRNA Discovery
                    This week,...
                    10-07-2024, 08:07 AM
                  • seqadmin
                    Recent Developments in Metagenomics
                    by seqadmin





                    Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
                    09-23-2024, 06:35 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, Yesterday, 06:55 AM
                  0 responses
                  10 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 10-02-2024, 04:51 AM
                  0 responses
                  108 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 10-01-2024, 07:10 AM
                  0 responses
                  114 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 09-30-2024, 08:33 AM
                  1 response
                  118 views
                  0 likes
                  Last Post EmiTom
                  by EmiTom
                   
                  Working...
                  X