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
                    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
                  30 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 04-10-2024, 10:19 PM
                  0 responses
                  32 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 04-10-2024, 09:21 AM
                  0 responses
                  28 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 04-04-2024, 09:00 AM
                  0 responses
                  53 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X