Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • figo1019
    Member
    • Jun 2012
    • 32

    Samtools consensus sequence error

    Dear All

    I am again posting this question to the Bioinformatics forum as I didn't get the answer from the Illumina forum.

    I am trying to make consensus sequences using command
    samtools mpileup -uf ref.fa aln.bam | bcftools view -cg - | vcfutils.pl vcf2fq > cns.fq.
    But i am getting this error:

    [bcf_sync] incorrect number of fields (4 != 5) at 15:16294867
    [afs] 0:49470.732 1:50.052 2:33.216

    Can some one help me to sort out this problem. What exactly is going wrong.

    Regards
  • Torst
    Senior Member
    • Apr 2008
    • 275

    #2
    The issue seems to be in the "bcftools" step in your pipe ie. [bcf_sync].

    Googling suggests two things:

    1. there was an bug in previous bcftools when using "-" stdin, so maybe you have an old bcftools.

    2. this occurs when you have indels, so try the mpileup "-I" option to not call indels and see if the error still occurs.

    Comment

    • figo1019
      Member
      • Jun 2012
      • 32

      #3
      Originally posted by Torst View Post
      The issue seems to be in the "bcftools" step in your pipe ie. [bcf_sync].

      Googling suggests two things:

      1. there was an bug in previous bcftools when using "-" stdin, so maybe you have an old bcftools.

      2. this occurs when you have indels, so try the mpileup "-I" option to not call indels and see if the error still occurs.
      Dear Torst

      Thank you for your reply.

      1. I am using the samtools 0.1.18 version.
      2. I tried what you suggested and I didn't get the error this time but it again stops at the same point and I miss the same no. of chromosomes in the consensus sequence file e.g. when use grep to count the no. of chr in the .fq file I find the few chromosomes missing which was the same with the error also.

      Regards

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Pathogen Surveillance with Advanced Genomic Tools
        by seqadmin




        The COVID-19 pandemic highlighted the need for proactive pathogen surveillance systems. As ongoing threats like avian influenza and newly emerging infections continue to pose risks, researchers are working to improve how quickly and accurately pathogens can be identified and tracked. In a recent SEQanswers webinar, two experts discussed how next-generation sequencing (NGS) and machine learning are shaping efforts to monitor viral variation and trace the origins of infectious...
        03-24-2025, 11:48 AM
      • seqadmin
        New Genomics Tools and Methods Shared at AGBT 2025
        by seqadmin


        This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

        The Headliner
        The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
        03-03-2025, 01:39 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 03-20-2025, 05:03 AM
      0 responses
      42 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-19-2025, 07:27 AM
      0 responses
      53 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-18-2025, 12:50 PM
      0 responses
      38 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-03-2025, 01:15 PM
      0 responses
      194 views
      0 reactions
      Last Post seqadmin  
      Working...