Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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


      • #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

        • seqadmin
          Recent Advances in Sequencing Analysis Tools
          by seqadmin


          The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
          05-06-2024, 07:48 AM
        • seqadmin
          Essential Discoveries and Tools in Epitranscriptomics
          by seqadmin




          The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
          04-22-2024, 07:01 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Today, 07:03 AM
        0 responses
        8 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-10-2024, 06:35 AM
        0 responses
        20 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-09-2024, 02:46 PM
        0 responses
        26 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 05-07-2024, 06:57 AM
        0 responses
        21 views
        0 likes
        Last Post seqadmin  
        Working...
        X