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
        Advanced Methods for the Detection of Infectious Disease
        by seqadmin




        The recent pandemic caused worldwide health, economic, and social disruptions with its reverberations still felt today. A key takeaway from this event is the need for accurate and accessible tools for detecting and tracking infectious diseases. Timely identification is essential for early intervention, managing outbreaks, and preventing their spread. This article reviews several valuable tools employed in the detection and surveillance of infectious diseases.
        ...
        11-27-2023, 01:15 PM
      • seqadmin
        Strategies for Investigating the Microbiome
        by seqadmin




        Microbiome research has led to the discovery of important connections to human and environmental health. Sequencing has become a core investigational tool in microbiome research, a subject that we covered during a recent webinar. Our expert speakers shared a number of advancements including improved experimental workflows, research involving transmission dynamics, and invaluable analysis resources. This article recaps their informative presentations, offering insights...
        11-09-2023, 07:02 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 11-27-2023, 08:12 AM
      0 responses
      15 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 11-22-2023, 09:29 AM
      1 response
      53 views
      0 likes
      Last Post VilliamPast  
      Started by seqadmin, 11-22-2023, 08:53 AM
      0 responses
      61 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 11-21-2023, 08:24 AM
      0 responses
      32 views
      0 likes
      Last Post seqadmin  
      Working...
      X