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
                    Advancing Precision Medicine for Rare Diseases in Children
                    by seqadmin




                    Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
                    12-16-2024, 07:57 AM
                  • seqadmin
                    Recent Advances in Sequencing Technologies
                    by seqadmin



                    Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

                    Long-Read Sequencing
                    Long-read sequencing has seen remarkable advancements,...
                    12-02-2024, 01:49 PM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, 12-17-2024, 10:28 AM
                  0 responses
                  23 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 12-13-2024, 08:24 AM
                  0 responses
                  42 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 12-12-2024, 07:41 AM
                  0 responses
                  28 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 12-11-2024, 07:45 AM
                  0 responses
                  42 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X