Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • how to use samtools to open my bam file

    I am a very beginner in using samtools.
    I tried "samtools view myfile.bam" in the desired directory. It didnot work.
    Thanks!

  • #2
    samtools view -H INX730_D0AJWACXX_6_AAACAT.bam
    bash: samtools: command not found

    I installed samtools as suggestions here:

    wget http://sourceforge.net/projects/bio-...r.bz2/download
    wget http://sourceforge.net/projects/samt...r.bz2/download
    tar -jxf bwa-0.5.5.tar.bz2; tar -jxf samtools-0.1.7a.tar.bz2
    (cd bwa-0.5.5; make; cp bwa $HOME/bin)
    (cd samtools-0.1.7a; make; cp samtools misc/samtools.pl $HOME/bin)
    export PATH="$PATH:$HOME/bin" # this is bash only.

    when doing command as cp samtools misc/samtools.pl /usr/bin
    only samtools.pl can be copied.

    I appreciate any help. Thanks!

    Comment


    • #3
      Originally posted by wangli View Post
      samtools view -H INX730_D0AJWACXX_6_AAACAT.bam
      bash: samtools: command not found

      (cd samtools-0.1.7a; make; cp samtools misc/samtools.pl $HOME/bin)
      export PATH="$PATH:$HOME/bin" # this is bash only.

      when doing command as cp samtools misc/samtools.pl /usr/bin
      only samtools.pl can be copied.

      I appreciate any help. Thanks!
      If the samtools executable isn't copied properly, as you suggested, then that's probably the problem. If you get an error when you copy the executable then it'd be helpful if you provided it.

      Comment


      • #4
        I go to the samtools-0.1.8 directory, and didnot find the executable "samtools", except a file named as samtools.1, which explains the usage of samtool command.
        My version is 0.1.8.
        I could not find the executable file.

        Comment


        • #5
          Then something borked during compilation. Type "make clean && make" (without the quotes) in that directory and post whatever error you eventually get. Of course, you could get lucky and it works properly in compiling the executable. In that case, copy it into your PATH and proceed with usage.

          Comment


          • #6
            I go to the samtools-0.1.8 directory, and didnot find the executable "samtools", except a file named as samtools.1, which explains the usage of samtool command.
            My version is 0.1.8.
            I could not find the executable file.

            when I do make, I run into the following problems:
            bam_tview.c:5:20: error: curses.h: No such file or directory
            bam_tview.c:7:2: warning: #warning "_CURSES_LIB=1 but NCURSES_VERSION not defined; tview is NOT compiled"
            bam_tview.c:434:2: warning: #warning "No curses library is available; tview is disabled."
            make: *** [bam_tview.o] Error 1

            Thanks!

            Comment


            • #7
              Then either install ncurses or follow the INSTALL document:
              The text-based viewer (tview) requires the GNU ncurses library
              <http://www.gnu.org/software/ncurses/>, which comes with Mac OS X and most of
              the modern Linux/Unix distributions. If you do not have this library installed,
              you can still compile the rest of SAMtools by manually changing:
              `-D_CURSES_LIB=1' to `-D_CURSES_LIB=0' at the line starting with `DFLAGS=', and
              comment out the line starting with `LIBCURSES='.

              Comment


              • #8
                Oh, great! Thanks a lot!
                I have make it.

                Comment

                Latest Articles

                Collapse

                • seqadmin
                  Essential Discoveries and Tools in Epitranscriptomics
                  by seqadmin


                  The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
                  Yesterday, 07:01 AM
                • seqadmin
                  Current Approaches to Protein Sequencing
                  by seqadmin


                  Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
                  04-04-2024, 04:25 PM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by seqadmin, 04-11-2024, 12:08 PM
                0 responses
                55 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 04-10-2024, 10:19 PM
                0 responses
                51 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 04-10-2024, 09:21 AM
                0 responses
                45 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 04-04-2024, 09:00 AM
                0 responses
                55 views
                0 likes
                Last Post seqadmin  
                Working...
                X