Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • znasim09
    Member
    • Sep 2015
    • 23

    Samtools mpileup error "[W::sam_read1] parse error at line 1"

    Hello everyone,

    I am analyzing WGS data of my mutant (Raw data in fastq), I performed the alignment by using Bowtie and BWA as:

    Using Bowtie:
    bowtie -S reference.fa file.sam
    then converted the sam file to bam file
    samtools view -bS -o file.bam file.sam

    Using BWA:
    bwa aln reference.fa file.fastq > file.sai
    bwa samse reference.fa file.sai file.fastq gzip > file.sam.gz

    then converted sam.gz to bam
    samtools view -bt reference.fa file.sam.gz | samtools sort -o file.bam

    Then I tried to use mpileup on both bam files but got similar errors:

    samtools mpileup -v reference.fa file.bam > outfile

    [mpileup] 2 samples in 2 input files
    <mpileup> Set max per-file depth to 4000
    [W::sam_read1] parse error at line 1

    Can anyone explain whats wrong and how it can be corrected?
    Thanks
  • dschika
    Member
    • Mar 2010
    • 56

    #2
    Check samtools mpileup man page.
    You may want to try -f instead of -v ?

    Comment

    • GenoMax
      Senior Member
      • Feb 2008
      • 7142

      #3
      Are you using the newest versions of bwa/samtools?

      Comment

      • znasim09
        Member
        • Sep 2015
        • 23

        #4
        @dschika will it then give vcf format output?

        @GenoMax,

        I am using bwa-0.7.13 and
        samtools-1.3

        Comment

        • dschika
          Member
          • Mar 2010
          • 56

          #5
          Ok, probably you want to use -v and -f, my bad.

          As you read the manual which you can find here, you know what -v and -f do:

          -f, --fasta-ref FILE The faidx-indexed reference file in the FASTA format. The file can be optionally compressed by bgzip.
          -v, --VCF Compute genotype likelihoods and output them in the variant call format (VCF). Output is bgzip-compressed VCF unless -u option is set.

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
            by SEQadmin2


            Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


            The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
            ...
            Yesterday, 10:05 AM
          • SEQadmin2
            Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
            by SEQadmin2


            With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


            Introduction

            Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
            05-22-2026, 06:42 AM
          • SEQadmin2
            Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
            by SEQadmin2

            Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


            Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
            05-06-2026, 09:04 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Yesterday, 12:03 PM
          0 responses
          19 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, Yesterday, 11:40 AM
          0 responses
          14 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 05-28-2026, 11:40 AM
          0 responses
          29 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 05-26-2026, 10:12 AM
          0 responses
          31 views
          0 reactions
          Last Post SEQadmin2  
          Working...