Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Visualizing with samtools?

    Hi,

    I have some difficulties in manipulating BWA and samtools.
    I have sorted my alignment stored in the .bam file, and indexed it (so I have a .bma and a .bam.bai).
    To visualize the sequences, I've tried to use commands like view or pileup, but I find it very difficult to manipulate.

    Is there a way to view the alignment (I've tried IGV, but I haven't been able to see the reads, only the reference genome) user-friendlier?
    Or maybe I used the wrong input when using samtools...

    Thanks in advance, I'm very new to bioinformatic...

  • #2
    Give Tablet a go - http://bioinf.scri.ac.uk/tablet

    We've tried to make it as easy to use as possible (although there's always room for improvement, so if something doesn't make sense, just let us know).

    Iain
    Our software: Tablet | Flapjack | Strudel | CurlyWhirly | TOPALi

    Comment


    • #3
      I'll give it a try, thanks.

      Comment


      • #4
        I have a few questions...
        It seems like the soft only take into account the reads that map with the part of genome in the area of the viewing bar. Can I change it so that all the reads that map with chr2, for example, could be counted even if the whole chr2 isn't displayed?
        Plus, reads are not always shown in the overview due to the scale... they are, as a consequence, difficult to locate. Is there some command to reach a read directly, avoiding me to manually search it? Or at least, maybe I can zoom in the overview so that i can locate a read more easily, have a look at it and then zoom out in the overview while keeping having the read aligned on the screen...?

        I've read the user guide, but couldn't find those informations.
        Last edited by Adamo; 06-14-2010, 01:13 AM.

        Comment


        • #5
          Originally posted by Adamo View Post
          I have a few questions...
          It seems like the soft only take into account the reads that map with the part of genome in the area of the viewing bar. Can I change it so that all the reads that map with chr2, for example, could be counted even if the whole chr2 isn't displayed?
          That's because of the way BAM files work - they're designed so you can just peek at small parts of a massive data set without having to load everything into memory, but that means you don't know how many reads are associated with a contig unless you read all of it. Tablet doesn't do that unless you tell it to (by adjusting the BAM window width), and even then it can only give you details on the current contig and not the others.

          If your data isn't that large (ie < 1GB), convert it back to sam and Tablet will process the entire file in one go. It'll take longer to load, but it'll give you the information you're after.

          Originally posted by Adamo View Post
          Plus, reads are not always shown in the overview due to the scale... they are, as a consequence, difficult to locate.
          It's an overview - nothing more. Ultimately you can't fit 1,000,000 pixels into 500, so something has to be lost. If you want to zoom the overview for more detail for a given region, then just CTRL+drag on it to highlight the section to zoom. You might also find using the Coverage overview more useful.

          Originally posted by Adamo View Post
          Is there some command to reach a read directly, avoiding me to manually search it? Or at least, maybe I can zoom in the overview so that i can locate a read more easily, have a look at it and then zoom out in the overview while keeping having the read aligned on the screen...?
          You can either search for a read by name, or use the "Jump To" option to move the display to a given location.

          Iain
          Our software: Tablet | Flapjack | Strudel | CurlyWhirly | TOPALi

          Comment


          • #6
            I tried the linux version and completed the installation.
            How to open the tool. The following directories are available after the installation.

            Code:
            uninstall
            tablet
            jre
            docs
            lib
            utils
            tablet.vmoptions
            output.log
            I tried opening as in the command line./tablet But nothing happenes and i get the output log as below:

            Code:
            java.lang.ExceptionInInitializerError
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
                    at com.install4j.runtime.Launcher.main(Unknown Source)
            Caused by: java.awt.HeadlessException: 
            No X11 DISPLAY variable was set, but this program performed an operation which requires it.
                    at sun.awt.HeadlessToolkit.getMenuShortcutKeyMask(Unknown Source)
                    at tablet.gui.Tablet.<clinit>(Tablet.java:33)
                    ... 6 more
            java.awt.HeadlessException: 
            No X11 DISPLAY variable was set, but this program performed an operation which requires it.
                    at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
                    at java.awt.Window.<init>(Unknown Source)
                    at java.awt.Frame.<init>(Unknown Source)
                    at java.awt.Frame.<init>(Unknown Source)
                    at javax.swing.JFrame.<init>(Unknown Source)
                    at com.exe4j.runtime.util.InternalErrorFrame.<init>(Unknown Source)
                    at com.exe4j.runtime.LauncherEngine.handleFailure(Unknown Source)
                    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
                    at com.install4j.runtime.Launcher.main(Unknown Source)
            java.awt.HeadlessException: 
            No X11 DISPLAY variable was set, but this program performed an operation which requires it.
                    at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
                    at java.awt.Window.<init>(Unknown Source)
                    at java.awt.Frame.<init>(Unknown Source)
                    at java.awt.Frame.<init>(Unknown Source)
                    at javax.swing.JFrame.<init>(Unknown Source)
                    at com.exe4j.runtime.util.InternalErrorFrame.<init>(Unknown Source)
                    at com.exe4j.runtime.LauncherEngine.handleFailure(Unknown Source)
                    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
                    at com.install4j.runtime.Launcher.main(Unknown Source)
            java.awt.HeadlessException: 
            No X11 DISPLAY variable was set, but this program performed an operation which requires it.
            Exception in thread "main" java.awt.HeadlessException: 
            No X11 DISPLAY variable was set, but this program performed an operation which requires it.
                    at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
                    at java.awt.Button.<init>(Unknown Source)
                    at com.install4j.runtime.util.MessageBox.addChoice(Unknown Source)
                    at com.install4j.runtime.util.MessageBox.addChoice(Unknown Source)
                    at com.install4j.runtime.ErrorHandler.displayGuiErrorMessage(Unknown Source)
                    at com.install4j.runtime.ErrorHandler.reportError(Unknown Source)
                    at com.install4j.runtime.Launcher.main(Unknown Source)

            Comment


            • #7
              That looks like you don't have x-windows. Do you?

              Iain
              Our software: Tablet | Flapjack | Strudel | CurlyWhirly | TOPALi

              Comment


              • #8
                Originally posted by imilne View Post
                That's because of the way BAM files work - they're designed so you can just peek at small parts of a massive data set without having to load everything into memory, but that means you don't know how many reads are associated with a contig unless you read all of it.

                ...

                You can either search for a read by name, or use the "Jump To" option to move the display to a given location.

                Iain
                Ok, I didn't know how a BAM file worked... I understand now, sorry for the question.
                I'll follow your advices. An ACE file seems appropriate for the data i'm interested in.

                Comment


                • #9
                  Originally posted by Adamo View Post
                  Ok, I didn't know how a BAM file worked... I understand now, sorry for the question.
                  I'll follow your advices. An ACE file seems appropriate for the data i'm interested in.
                  It's one of the areas where Tablet problem isn't very clear. We're hoping to make some improvements for the next version.

                  As for comments or questions, they're always appreciated by us, no matter how trivial they may seem. Often it's the only way we know we're doing things right (or not!)

                  Iain
                  Our software: Tablet | Flapjack | Strudel | CurlyWhirly | TOPALi

                  Comment

                  Latest Articles

                  Collapse

                  • seqadmin
                    Non-Coding RNA Research and Technologies
                    by seqadmin




                    Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

                    Nobel Prize for MicroRNA Discovery
                    This week,...
                    10-07-2024, 08:07 AM
                  • seqadmin
                    Recent Developments in Metagenomics
                    by seqadmin





                    Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
                    09-23-2024, 06:35 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, Today, 06:35 AM
                  0 responses
                  7 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, Yesterday, 02:44 PM
                  0 responses
                  7 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 10-11-2024, 06:55 AM
                  0 responses
                  15 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 10-02-2024, 04:51 AM
                  0 responses
                  111 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X