Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Diagnosing samtools segfault

    I'm trying to run samtools mpileup on BAM files, part of a tumour/normal pair so I can do some further analysis.

    BAM's are aligned with BWA, post-processed with GATK and validated with ValidateSam from Picard. As far as I can tell there is no difference really between the BAM files, except that one causes mpileup to segfault every time.

    I don't really know how to diagnose why this is happening - any hints? Errors occuring with Version: 0.1.18 (r982:295) and 0.1.14.

  • #2
    Sounds like you might need the help of Heng Li (lh3 on here).

    But in the meantime you could build samtools with debug flags (you will probably need to edit the Makefile to do this) and then run it through gdb, e.g.

    gdb samtools
    run "mpileup <other samtools arguments>"

    When it segfaults you can then get a backtrace with 'bt'. That will at least show what part of the code is giving the problem.

    If it's always happening on a particular alignment you could just filter that line out for now until the problem is fixed.

    Comment


    • #3
      I have the exact same problem with exome BAMs aligned with LifeScope, processed according to GATKs best practices v4 and validated with Picards ValidateSam.
      UnifiedGenotyper walks true the files without error, when trying to call the exomes with samtools (Version: 0.1.18 (r982:295) i always get a "Segmentation fault (core dumped)" error.

      Is there anything new about this error i.e. a bugfix/workaround?

      Comment


      • #4
        Apperently the Version in most linux repositorys is old altough it has the same version number. Samtools has moved its repository from Sourceforge to github, where you now can pul the latest Version with all Bugfuxes.
        Tools (written in C using htslib) for manipulating next-generation sequencing data - samtools/samtools

        --> github clone https://github.com/samtools/samtools
        --> make samtools
        current Version: Version: 0.1.18-r580

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Understanding Genetic Influence on Infectious Disease
          by seqadmin




          During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

          Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
          09-09-2024, 10:59 AM
        • seqadmin
          Addressing Off-Target Effects in CRISPR Technologies
          by seqadmin






          The first FDA-approved CRISPR-based therapy marked the transition of therapeutic gene editing from a dream to reality1. CRISPR technologies have streamlined gene editing, and CRISPR screens have become an important approach for identifying genes involved in disease processes2. This technique introduces targeted mutations across numerous genes, enabling large-scale identification of gene functions, interactions, and pathways3. Identifying the full range...
          08-27-2024, 04:44 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Today, 06:25 AM
        0 responses
        12 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, Yesterday, 01:02 PM
        0 responses
        11 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 09-18-2024, 06:39 AM
        0 responses
        13 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 09-11-2024, 02:44 PM
        0 responses
        14 views
        0 likes
        Last Post seqadmin  
        Working...
        X