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
                    Recent Advances in Sequencing Analysis Tools
                    by seqadmin


                    The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
                    Yesterday, 07:48 AM
                  • seqadmin
                    Essential Discoveries and Tools in Epitranscriptomics
                    by seqadmin




                    The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
                    04-22-2024, 07:01 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, Yesterday, 07:17 AM
                  0 responses
                  11 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 05-02-2024, 08:06 AM
                  0 responses
                  19 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 04-30-2024, 12:17 PM
                  0 responses
                  20 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 04-29-2024, 10:49 AM
                  0 responses
                  28 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X