Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ykingh
    Junior Member
    • Jun 2011
    • 5

    loading bam file failure on IGV

    Hi everyone,

    I tried to find the reason for a long time. But couldn't solve my problem.
    When loading my sorted bam file (with bai file in the same folder) on IGV, I could see nothing.
    My bam file data looks like this:
    HWI-ST261:6:66:13462:17077#TAGCTT 83 chr01 148 255 95M = 94 -149 TGTAGTTCAAAAAATTAAAGTATGTATTCAATAGAGCTGAGGAAATTGTTCATGGAGGAATGATAGTGCTTATTACACCATTTTCAAGTTATGTA EE?D@EEBDE?DHHCHFHFFDB>HEE>EEEDDHDBHDDDHEFEFHEEHEHFHHHHHHHHHHHHHFEEEEFFHFFDDEHHHFHHHHHHHHHHFHHH XA:i:0 MD:Z:8T86 NM:i:0

    I tried with a bam file downloaded online. It worked when I loaded the file on IGV.
    IL7_1788:1:61:1161:1010 99 MAL1 17 0 6H48M = 548 584 ACCCTGAACCCTAAACCCTAAACCCTGAACCCTAAACCCTGAACCCTG>>>>>>>>>>>>>>>>>>>>>>>><<<<<666626666666+66/662 AS:i:48 MS:i:11

    My DNA-seq data is very big. My bam file was produced by galaxy. I used the steps as follows in galaxy:
    map with bowtie
    filter sam
    sam to bam

    Any suggestions will be very appreciated!
  • westerman
    Rick Westerman
    • Jun 2008
    • 1104

    #2
    Of course it is always hard to troubleshoot a problem, but the first thing that stands out to me as a difference between your good data and bad data are the reference names. In the good one you have 'MAL1' while in the bad one the name is 'Chr01'. If the names are not matching your reference then you will not see anything.

    Are you using the same reference in both cases? Or different ones? If so, what are the names inside the reference file itself?
    Last edited by westerman; 12-22-2011, 08:00 AM. Reason: Fixed some English.

    Comment

    • aggp11
      Member
      • Jun 2011
      • 87

      #3
      Like westerman said, I think the problem might be the reference names. If this human data and you are using one of the pre-loaded human genomes on the IGV, then they have "chr1" and not "chr01" as the name of the chromosomes. So try changing the names of the reference in your file and see if that works.

      Comment

      • Jim Robinson
        Member
        • May 2009
        • 75

        #4
        I will echo the suggestion that this might be a chromosome name problem. What assembly were these aligned against?

        You can correct this by creating an "alias" file, as decribed here (at the bottom of the page)



        Jim

        Comment

        • ykingh
          Junior Member
          • Jun 2011
          • 5

          #5
          I followed your suggestions. You're correct. It's a chromosome name problem. I'm so happy that I solved this problem finally. Thanks a lot.

          Comment

          • pmiguel
            Senior Member
            • Aug 2008
            • 2328

            #6
            Originally posted by ykingh View Post
            I followed your suggestions. You're correct. It's a chromosome name problem. I'm so happy that I solved this problem finally. Thanks a lot.
            By the way, this is, by far, the most common failure mode for IGV that I see. BAM file has one set of names for the chromosomes and the reference gff or gtf has another set. The result? No alignments are depicted. The solution? There are several, but all of them involve delving into the data files and either changing them or creating a table file and putting it in the right place for IGV to read it.

            At the very least I would propose that IGV should display a visible warning when a .bam file is loaded that contains no sequences mapped to any of the current reference sequences. Some along the lines of "the reference contains the sequences "chr1, chr2 ..." while the alignment file contains hits to the sequences "1, 2, ..." -- since none of these sequence names are the same, no alignments can be displayed."

            --
            Phillip

            Comment

            • Jim Robinson
              Member
              • May 2009
              • 75

              #7
              I agree with the warning suggestion, I will do that. Its on our faq, and its not just an IGV issue (samtools, the GATK, UCSC, etc won't work either), but nevertheless a warning would be helpful. Fundamentally it means you are viewing your BAMs against a different fasta file than was used for the alignment step, so some caution is in order.

              -- Jim

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                by SEQadmin2


                Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                ...
                06-02-2026, 10:05 AM
              • SEQadmin2
                Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                by SEQadmin2


                With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                Introduction

                Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                05-22-2026, 06:42 AM
              • SEQadmin2
                Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
                by SEQadmin2

                Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


                Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
                05-06-2026, 09:04 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Today, 08:59 AM
              0 responses
              8 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-02-2026, 12:03 PM
              0 responses
              21 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-02-2026, 11:40 AM
              0 responses
              15 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 05-28-2026, 11:40 AM
              0 responses
              29 views
              0 reactions
              Last Post SEQadmin2  
              Working...