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
                    Understanding Genetic Influence on Infectious Disease
                    by seqadmin




                    During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

                    Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
                    09-09-2024, 10:59 AM
                  • seqadmin
                    Addressing Off-Target Effects in CRISPR Technologies
                    by seqadmin






                    The first FDA-approved CRISPR-based therapy marked the transition of therapeutic gene editing from a dream to reality1. CRISPR technologies have streamlined gene editing, and CRISPR screens have become an important approach for identifying genes involved in disease processes2. This technique introduces targeted mutations across numerous genes, enabling large-scale identification of gene functions, interactions, and pathways3. Identifying the full range...
                    08-27-2024, 04:44 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, Yesterday, 02:44 PM
                  0 responses
                  8 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 09-06-2024, 08:02 AM
                  0 responses
                  143 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 09-03-2024, 08:30 AM
                  0 responses
                  151 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 08-27-2024, 04:40 AM
                  0 responses
                  158 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X