Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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
        Recent Developments in Metagenomics
        by seqadmin





        Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
        09-23-2024, 06:35 AM
      • 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

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 10-02-2024, 04:51 AM
      0 responses
      13 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 10-01-2024, 07:10 AM
      0 responses
      21 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 09-30-2024, 08:33 AM
      0 responses
      25 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 09-26-2024, 12:57 PM
      0 responses
      18 views
      0 likes
      Last Post seqadmin  
      Working...
      X