Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adrian
    Member
    • Oct 2009
    • 90

    #1

    mpileup on whole genome bam file

    Hi:

    I am writing to know users experience about mpileup snp calling with human whole genome bam file.

    my 'de-duped' sorted bam file is ~55GB in size.

    When I ran mpileup on these files, it has been running continuously for 4 days on a cluster node with 16 processor 64gb node.

    For some bam files:

    the output file of the node job has this following information:

    [bcfview] 26800000 sites processed.
    [afs] 0:91696.193 1:4741.654 2:3562.153
    [bcfview] 26900000 sites processed.
    [afs] 0:89785.449 1:6797.768 2:3416.783

    Similarly the error output file has this information:

    Warning: no access to tty (Bad file descriptor).
    Thus no job control in this shell.
    Terminated

    I have two questions in this context:

    1. Is my process complete or this is a genuine error that mpileup is not finished.

    2. What is the better practice of calling SNPs using mpileup for human whole genome sequence data (where a bam file is over 50GB in size - if size is a concern).

    Thanks
    Adrian
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    bcfview] 26800000 sites processed.
    [afs] 0:91696.193 1:4741.654 2:3562.153
    [bcfview] 26900000 sites processed.
    [afs] 0:89785.449 1:6797.768 2:3416.783
    That part looks normal. Isn't TTY your command window?

    Why don't you try making a smaller .bam with samtools view, and seeing if mpileup can get through that?

    Comment

    • adrian
      Member
      • Oct 2009
      • 90

      #3
      thank you. that is a really good idea. Since I have two replicates I will separate every chromosome for both files and run mpileup chromosome by chromosome.
      How can I have a bam file for chromsome with header?


      Here is what I did (just for chr21)

      samtools view s6.ddup.bam chr21 > s6.chr21.ddup.bam


      -h print header for the SAM output
      -H print header only (no alignments)


      Can I do this? Is this valid?

      samtools view -bh s6.ddup.bam chr21 > s6.chr21.ddup.bam


      thanks
      Adrian

      Comment

      • svl
        Member
        • Sep 2009
        • 43

        #4
        Originally posted by adrian View Post
        samtools view -bh s6.ddup.bam chr21 > s6.chr21.ddup.bam
        That does the job indeed. Afterwards index the new BAM file (samtools index) and you're good to go.

        I get the tty warning as well, doesn't seem to be any problem..

        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, 10-22-2026, 11:13 AM
        0 responses
        55 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        40 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        46 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        46 views
        0 reactions
        Last Post SEQadmin2  
        Working...