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
          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
        • seqadmin
          Current Approaches to Protein Sequencing
          by seqadmin


          Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
          04-04-2024, 04:25 PM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 04-11-2024, 12:08 PM
        0 responses
        59 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 10:19 PM
        0 responses
        57 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 09:21 AM
        0 responses
        51 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-04-2024, 09:00 AM
        0 responses
        55 views
        0 likes
        Last Post seqadmin  
        Working...
        X