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
          Best Practices for Single-Cell Sequencing Analysis
          by seqadmin



          While isolating and preparing single cells for sequencing was historically the bottleneck, recent technological advancements have shifted the challenge to data analysis. This highlights the rapidly evolving nature of single-cell sequencing. The inherent complexity of single-cell analysis has intensified with the surge in data volume and the incorporation of diverse and more complex datasets. This article explores the challenges in analysis, examines common pitfalls, offers...
          06-06-2024, 07:15 AM
        • seqadmin
          Latest Developments in Precision Medicine
          by seqadmin



          Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

          Somatic Genomics
          “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
          05-24-2024, 01:16 PM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 06:58 AM
        0 responses
        13 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 06-06-2024, 08:18 AM
        0 responses
        20 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 06-06-2024, 08:04 AM
        0 responses
        18 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 06-03-2024, 06:55 AM
        0 responses
        13 views
        0 likes
        Last Post seqadmin  
        Working...
        X