Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alittleboy
    Member
    • Apr 2011
    • 60

    #1

    Error: tagBam call failed when running pe_utils.py --compute-insert-len

    Dear All:

    I am using MISO to test for differential exon usage between a control and a treatment group. I got an error when computing the insert length distribution using pe_utils.py --compute-insert-len. I list the steps I used below:

    1. sort the BAM file from TopHat (by coordinate):
    samtools sort control.bam control_sorted

    2. index the BAM file:
    samtools index control_sorted.bam control_sorted.bai

    3. run pe_utils.py:
    python pe_utils.py --compute-insert-len controlam /directories/exons/Homo_sapiens.GRCh37.65.min_1000.const_exons.gff --output-dir /directories/insert-dist/

    After the command above, I got the error message:

    Preparing to call bedtools 'tagBam'
    tagBam -i control.bam -files /directories/exons/Homo_sapiens.GRCh37.65.min_1000.const_exons.gff -labels gff -intervals -f 1 | samtools view - -h | egrep '^@|:gff:' | samtools view - -Shb -o /directories/insert-dist/bam2gff_Homo_sapiens.GRCh37.65.min_1000.const_exons.gff/control.bam
    [samopen] SAM header is present: 25 sequences.
    [sam_read1] reference 'ID:TopHat CL:/informatics/tools/Linux-AS5/bin/tophat -o Lane3 -g 1 --coverage-search --microexon -r 100 --phred64-quals --library-type fr-unstranded -p 4 -G gene_models/Homo_sapiens.GRCh37.72_norm.gtf --transcriptome-index=gene_models/transcripts /directories/Genomes/NCBI_Jul-09-2012/Human/bowtie/human_ref_genome Lane3_1.fq.gz Lane3_2.fq.gz VN:1.4.1
    ' is recognized as '*'.
    [main_samview] truncated file.
    Traceback (most recent call last):
    File "/pe_utils.py", line 520, in <module>
    main()
    File "pe_utils.py", line 517, in main
    sd_max=sd_max)
    File "pe_utils.py", line 271, in compute_insert_len
    output_dir)
    File "exon_utils.py", line 185, in map_bam2gff
    raise Exception, "Error: tagBam call failed."
    Exception: Error: tagBam call failed.

    I used Homo_sapiens.GRCh37.72_norm.gtf from Ensembl as the annotation file when preparing my data, but downloaded

    Human genome (hg19) alternative events v2.0

    from the MISO website and unzipped. I saw it is based on Homo_sapiens.GRCh37.65. Is this the version problem? If so, could anyone provide the latest GFF3 file for use? Thank you for your suggestions!
  • space_monkey
    Junior Member
    • Jul 2013
    • 1

    #2
    I'm actually having the same problem with MISO. I also haven't been able to find anything as to why this happens, so if anyone could give us some insight, that would be great.

    For now I'm trying to do the same thing using Bowtie and Picard-tools (outlined here: http://vinaykmittal.blogspot.ca/2012...or-paired.html ) but I'm sure it would be much easier using MISO's function...

    Comment

    • alittleboy
      Member
      • Apr 2011
      • 60

      #3
      Originally posted by space_monkey View Post
      I'm actually having the same problem with MISO. I also haven't been able to find anything as to why this happens, so if anyone could give us some insight, that would be great.

      For now I'm trying to do the same thing using Bowtie and Picard-tools (outlined here: http://vinaykmittal.blogspot.ca/2012...or-paired.html ) but I'm sure it would be much easier using MISO's function...
      Hi @space_monkey:

      Here are some comments -- I contact the authors and gave my partial outputs, and the reply is below:

      It does look like a headers mismatch then. Your BAM file contains "chr" style chromosomes (e.g. "chr10" and not "10"). I believe your GFF, /directories/exons/Homo_sapiens.GRCh37.65.min_1000.const_exons.gff, is from Ensembl which would not contain chr-prefixes. Just look in that gff file and see what the chromosome entries are like. If they don't have chr, the operation will fail. All you need to do is generate a constitutive exons file from a UCSC gff which contains chromosome headers that match your .bam file.

      See:



      If you're using hg19, you can use this GFF:



      Use our exon_utils program to generate constitutive exons from this file and then rerun pe_utils with that, instead of the GRCh37 gff file.

      I use ensGene.gff3 and it works. However, I still cannot get the results (not sure why...)

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
        by SEQadmin2



        CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

        Despite this, “CRISPR helped turn genome editing from a specialized technique into
        ...
        07-31-2026, 11:01 AM
      • SEQadmin2
        Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
        by SEQadmin2


        Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

        The systematic characterization of the human proteome has
        ...
        07-20-2026, 11:48 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 08-13-2026, 12:22 PM
      0 responses
      25 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 08-11-2026, 10:35 AM
      0 responses
      21 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 08-06-2026, 07:41 AM
      0 responses
      36 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 08-03-2026, 10:13 AM
      0 responses
      51 views
      0 reactions
      Last Post SEQadmin2  
      Working...