Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • schumric
    Junior Member
    • Jan 2017
    • 5

    Question: bcftools: Wrong number of PL fields? nals=4 npl=6

    Hello all,

    I am new to bcftools and samtools, so forgive my question if it is ignorant. My goal is to extract consensus sequences between two different species.

    I was given paired-end Illumina sequencing data. So far, I used FastQC to trim and bowtie 2 to perform the mapping and used samtools to generate sorted bam files. We created two bam files by using single-ended bowtie 2 mapping - this was due to a large amounts of insertion-deletion polymorphisms between the two species.

    I tried the following to variant call:

    /home/sean/Desktop/assembly_software/samtools-1.3.1/samtools mpileup -d8000 -uf Mlongifolia_CMEN585_assembly_v1.0.fasta CMEN585.R_1.sorted.bam CMEN585.R_2.sorted.bam | bcftools call -c | vcfutils.pl vcf2fq > cnsnew.fq

    error: Wrong number of PL fields? nals=4 npl=6

    Then I tried using just a single bam file:

    /home/sean/Desktop/assembly_software/samtools-1.3.1/samtools mpileup -d8000 -uf Mlongifolia_CMEN585_assembly_v1.0.fasta CMEN585.R_1.sorted.bam | bcftools call -c | vcfutils.pl vcf2fq > cnsnew.fq

    error: Wrong number of PL fields? nals=4 npl=3

    What do these errors mean and how do I fix them? I have searched around, but have been unable to turn up anything so far.

    I assume you need to variant call before you extract consensus sequences. I tried to extract the consensus sequences anyway (just for kicks):

    /home/sean/Desktop/assembly_software/samtools-1.3.1/samtools \ mpileup \ -B \ -u \ -f Mlongifolia_CMEN585_assembly_v1.0.fasta\ CMEN585.R_1.sorted.bam | \ bcftools call -cg | \ vcfutils.pl vcf2fq \ ->R_1_consensus.fq

    error: Use of uninitialized value $l in numeric lt (<) at /usr/local/bin/vcfutils.pl line 566. Use of uninitialized value $l in numeric lt (<) at /usr/local/bin/vcfutils.pl line 566.

    Thank you for your help,

    Richard
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    The bcftools error is usually due to mixing different versions of samtools and bcftools. If you use samtools 1.3.1, then you need bcftools 1.3.1.

    I haven't a clue about the vcfutils error.

    Comment

    • schumric
      Junior Member
      • Jan 2017
      • 5

      #3
      Thank you for the reply. I tried to adjust the command so that it couldn't default to a different bcf tools version:

      /home/sean/Desktop/assembly_software/samtools-1.3.1/samtools mpileup -d8000 -uf Mlongifolia_CMEN585_assembly_v1.0.fasta CMEN585.R_1.sorted.bam CMEN585.R_2.sorted.bam | /home/sean/Desktop/assembly_software/bcftools-1.3.1/bcftools call -c | vcfutils.pl vcf2fq > cnsnew.fq

      Unfortunately, I got the same errors.

      Note: Neither --ploidy nor --ploidy-file given, assuming all sites are diploid
      [mpileup] 2 samples in 2 input files
      Wrong number of PL fields? nals=4 npl=6

      Richard

      Comment

      • schumric
        Junior Member
        • Jan 2017
        • 5

        #4
        I don't know if this helps, but I'm breaking down the steps currently to see what is failing.

        1. /home/sean/Desktop/assembly_software/samtools-1.3.1/samtools mpileup -d8000 -uf Mlongifolia_CMEN585_assembly_v1.0.fasta CMEN585.R_1.sorted.bam CMEN585.R_2.sorted.bam >file.mpileup

        2, /home/sean/Desktop/assembly_software/bcftools-1.3.1/bcftools call -c file.mpileup > file.vcf

        3, /home/sean/Desktop/assembly_software/bcftools-1.3.1/vcfutils.pl vcf2fq file.vcf > cnsnew.fq

        Currently, while running the first step I'm getting the message [mplp_func] Skipping because some_number is outside of 0 [ref:some_different_number. This might just be because the alignment is poor. I'm not sure.

        Thank you

        Comment

        • schumric
          Junior Member
          • Jan 2017
          • 5

          #5
          One last update:

          When I run mpileup, the command finishes. However, it only outputs this:

          ##contig=<ID=Contig12315,length=1495,IDX=12315>

          And then after a while starts to output this:


          1��!NA7<*>
          5�? ��?B �DA�B�A@D

          Sorry for the spammed posts, but I figure the more information the better.

          Richard

          Comment

          • schumric
            Junior Member
            • Jan 2017
            • 5

            #6
            One last update:

            When I run mpileup, the command finishes. However, it only outputs this:

            ##contig=<ID=Contig12315,length=1495,IDX=12315>

            And then after a while starts to output this:


            1��!NA7<*>
            5�? ��?B �DA�B�A@D

            Sorry for the spammed posts, but I figure the more information the better.

            Richard

            Comment

            Latest Articles

            Collapse

            • mylaser
              Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
              by mylaser
              Kheloyaar: The Complete Guide to Kheloyaar Loginand Kheloyaar ID
              The online gaming industry has transformed the way people enjoy digital entertainment. As technology continues to improve, players are looking for platforms that offer convenience, security, and a seamless user experience. Kheloyaarhas gained attention among users who value an easy-to-use platform, quick account access, and a simple registration process.
              Whether you're exploring Kheloyaar for the first time or want to understand...
              Today, 09:27 PM
            • SEQadmin2
              Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
              by SEQadmin2



              Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
              ...
              Today, 11:10 AM
            • SEQadmin2
              Cancer Drug Resistance: The Lingering Barrier to Rising Survival
              by SEQadmin2



              Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

              There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
              Yesterday, 05:17 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Today, 10:04 AM
            0 responses
            8 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, Yesterday, 10:08 AM
            0 responses
            7 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-07-2026, 11:05 AM
            0 responses
            9 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-02-2026, 11:08 AM
            0 responses
            31 views
            0 reactions
            Last Post SEQadmin2  
            Working...