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
          16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by SEQadmin2




          NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
          Yesterday, 06:46 AM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 10-28-2026, 09:57 AM
        0 responses
        26 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-28-2026, 09:51 AM
        0 responses
        17 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 11:13 AM
        0 responses
        71 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        48 views
        0 reactions
        Last Post SEQadmin2  
        Working...