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 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
    I think your aln.bam file has some missing columns.

    Comment


    • #3
      Originally posted by TiborNagy View Post
      I think your aln.bam file has some missing columns.
      Thank you for your reply.
      1.Please let me know why it can happen as I can generate 10 chromosomes in the consensus file and then it gives the error but i can see all the chromosomes in the bam files with the number of reads mapped.
      2.How i can check in the bam file if that column is missing.

      Regards

      Comment


      • #4
        Well, I can imagine a lots of scenarios. For example the aln.bam was concatenated from more than one file.
        You can simply check the number of columns with the following command (in Unix/Linux):
        samtools view aln.bam | awk -F"\t" '{print NF}'
        or you can use tee command. It is write the pipe to file and the stdout at the same time. Good for debugging.

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Non-Coding RNA Research and Technologies
          by seqadmin




          Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

          Nobel Prize for MicroRNA Discovery
          This week,...
          10-07-2024, 08:07 AM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Today, 06:35 AM
        0 responses
        7 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, Yesterday, 02:44 PM
        0 responses
        7 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 10-11-2024, 06:55 AM
        0 responses
        15 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 10-02-2024, 04:51 AM
        0 responses
        111 views
        0 likes
        Last Post seqadmin  
        Working...
        X