Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ckidner
    Junior Member
    • Mar 2011
    • 5

    #1

    mpile up problem

    I'm trying to derive a vcf file from a bam using:

    samtools view -bS test.sam | samtools sort - test_sort
    samtools index test_sorted.bam
    samtools mpileup -E -uf Ref.fna test_sorted.bam > test.pileup
    bcftools view -cg test.pileup > test.vcf

    The sam and bam look fine but the mpileup command runs too quickly and gives me a small file without sequence data.

    bcftools gives me:
    [bcf_sync] incorrect number of fields (6 != 5) at 0.0

    I've re-generated the bowtie index with the Ref.fna file to confirm the files match but that doesn't help. I'm using samtools 1.2, bcftools 0.1.17.

    Any idea what's wrong? It worked fine a couple of weeks ago.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Advisable not to mix old and new versions of samtools and bcftools. You may want to look at the new "call" option in new bcftools: http://www.htslib.org/doc/bcftools.html#call

    Comment

    • ckidner
      Junior Member
      • Mar 2011
      • 5

      #3
      Thanks, I'll upgrade the bcftools.

      However, I think something is wrong with the mpileup output too.
      It begins readable but then turns into binary. This doesn't look like any examples of pileup format I've seen. Could it be behind the problem?

      BCF^B^Bf<^@^@##fileformat=VCFv4.2
      ##FILTER=<ID=PASS,Description="All filters passed",IDX=0>
      ##samtoolsVersion=1.2+htslib-1.2.1
      ##samtoolsCommand=samtools mpileup -E -uf Ref_new.fna test_sorted.bam
      ##reference=file://Ref_new.fna
      ##contig=<ID=comp39600_c0_seq2,length=1517,IDX=0>
      ##contig=<ID=comp39985_c0_seq4,length=1303,IDX=1>
      ##contig=<ID=comp40415_c0_seq2,length=873,IDX=2>

      .......


      ##contig=<ID=comp44856_c1_seq1,length=608,IDX=263>
      ##ALT=<ID=X,Description="Represents allele(s) other than observed.">
      ##INFO=<ID=INDEL,Number=0,Type=Flag,Description="Indicates that the variant is an INDEL.",IDX=1>
      ##INFO=<ID=IDV,Number=1,Type=Integer,Description="Maximum number of reads supporting an indel",IDX=2>
      ##INFO=<ID=IMF,Number=1,Type=Float,Description="Maximum fraction of reads supporting an indel",IDX=3>
      ##INFO=<ID=DP,Number=1,Type=Integer,Description="Raw read depth",IDX=4>
      ##INFO=<ID=VDB,Number=1,Type=Float,Description="Variant Distance Bias for filtering splice-site artefacts in RNA-seq data (bigger is better)",Version="3",IDX=5>
      ##INFO=<ID=RPB,Number=1,Type=Float,Description="Mann-Whitney U test of Read Position Bias (bigger is better)",IDX=6>
      ##INFO=<ID=MQB,Number=1,Type=Float,Description="Mann-Whitney U test of Mapping Quality Bias (bigger is better)",IDX=7>
      ##INFO=<ID=BQB,Number=1,Type=Float,Description="Mann-Whitney U test of Base Quality Bias (bigger is better)",IDX=8>
      ##INFO=<ID=MQSB,Number=1,Type=Float,Description="Mann-Whitney U test of Mapping Quality vs Strand Bias (bigger is better)",IDX=9>
      ##INFO=<ID=SGB,Number=1,Type=Float,Description="Segregation based metric.",IDX=10>
      ##INFO=<ID=MQ0F,Number=1,Type=Float,Description="Fraction of MQ0 reads (smaller is better)",IDX=11>
      ##INFO=<ID=I16,Number=16,Type=Float,Description="Auxiliary tag used for calling, see description of bcf_callret1_t in bam2bcf.h",IDX=12>
      ##INFO=<ID=QS,Number=R,Type=Float,Description="Auxiliary tag used for calling",IDX=13>
      ##FORMAT=<ID=PL,Number=G,Type=Integer,Description="List of Phred-scaled genotype likelihoods",IDX=14>
      #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT test_sorted.bam
      ^@{^@^@^@^F^@^@^@^@^@^@^@^@^@^@^@^A^@^@^@^@^@^@^@^D^@^B^@^A^@^@^A^G^WC7<X>^@^Q^D^Q^U^Q^L<F5>^Q^P^@^@<A8>A^@^@^@^@^@^@^@^@^@^@^@^@^@^@@D^@8<DC>F^@^@^@^@^@^@^@^@^@^@<A8>C^@<A0><D5>E^@^@^@^@^@^@^@^@^@<80><A7>C^@H<D9>E^@^@^@^@^@^@^@^@^Q^M%^@^@<80>?^@^@^@^@^Q^K^U^@^@^@^@^Q^N1^@?f{^@^@^@^F^@^@^@^@^@^@^@^A^@^@^@^A^@^@^@^@^@^@^@^D^@^B^@^A^@^@^A^G^WG7<X>^@^Q^D^Q^U^Q^L<F5>^Q^P^@^@<A8>A^@^@^@^@^@^@^@^@^@^@^@^@^@@;D^@*<D5>F^@^@^@^@^@^@^@^@^@^@<A8>C^@<A0><D5>E^@^@^@^@^@^@^@^@^@<80><AE>C^@<B8><E3>E^@^@^@^@^@^@^@^@^Q^M%^@^@<80>?^@^@^@^@^Q^K^U^@^@^@^@^Q^N1^@?f{^@^@^@^F^@^@^@^@^@^@^@^B^@^@^@^A^@^@^@^@^@^@^@^D^@^B^@^A^@^@^A^G^WG7<X>^@^Q^D^Q^U^Q^L<F5>^Q^P^@^@<A8>A^@^@^@^@^@^@^@
      ^@^@^@^@^@^@<80>6D^@\<CE>F^@^@^@^@^@^@^@^@^@^@<A8>C^@<A0><D5>E^@^@^@^@^@^@^@^@^@<80><B5>C^@^H<EF>E^@^@^@^@^@^@^@^@^Q^M%^@^@<80>?^@^@^@^@^Q^K^U^@^@^@^@^Q^N1^@?j{^@^@^@

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
        by SEQadmin2



        Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

        Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
        ...
        10-14-2026, 09:55 AM
      • SEQadmin2
        New Genomics Technologies Take Aim at Long-Standing Limits
        by SEQadmin2


        Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

        We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
        ...
        09-28-2026, 10:25 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 11:13 AM
      0 responses
      21 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, Yesterday, 10:48 AM
      0 responses
      18 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      36 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      42 views
      0 reactions
      Last Post SEQadmin2  
      Working...