Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • nicedad
    Member
    • May 2011
    • 49

    samtools installation

    Hi everyone,
    Can anyone show me how to install samtools step by step?
    I hope someone answers this naive question::

    best,
  • nilshomer
    Nils Homer
    • Nov 2008
    • 1283

    #2
    What operating system? Are you a user or administrator?

    Comment

    • nicedad
      Member
      • May 2011
      • 49

      #3
      Hi nilshomer,
      am using linux suse on 64 bus machine. I've got Win. 7 on the same machine also.
      I am the admin.

      cheers,

      Comment

      • nilshomer
        Nils Homer
        • Nov 2008
        • 1283

        #4
        you download the source, compile, then move the binary to your local bin directory. Here are some links to help (the first few links from google):


        Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc


        Comment

        • nicedad
          Member
          • May 2011
          • 49

          #5
          Thanks milshmore, unfortunately still have the following error.
          When I use the quick and dirty SAMtools install, i get this:
          Code:
          [COLOR="Red"]vo-zapus:/windows/D/samtools # make
          make[1]: Entering directory `/windows/D/samtools'
          make[2]: Entering directory `/windows/D/samtools'
          make[2]: Nothing to be done for `lib'.
          make[2]: Leaving directory `/windows/D/samtools'
          make[2]: Entering directory `/windows/D/samtools/bcftools'
          make[2]: Nothing to be done for `lib'.
          make[2]: Leaving directory `/windows/D/samtools/bcftools'
          make[2]: Entering directory `/windows/D/samtools/misc'
          make[2]: Nothing to be done for `lib'.
          make[2]: Leaving directory `/windows/D/samtools/misc'
          gcc -c -g -Wall -O2  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_tview.c -o bam_tview.o
          make[1]: gcc: Command not found
          make[1]: *** [bam_tview.o] Error 127
          make[1]: Leaving directory `/windows/D/samtools'
          make: *** [all-recur] Error 1[/COLOR]
          And when I use pysqlite method I get this:
          Code:
          [COLOR="Red"]evo-zapus:/windows/D/pysqlite # python setup.py build
          running build
          running build_py
          creating build
          creating build/lib.linux-x86_64-2.7
          creating build/lib.linux-x86_64-2.7/pysqlite2
          copying lib/dbapi2.py -> build/lib.linux-x86_64-2.7/pysqlite2
          copying lib/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2
          copying lib/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2
          creating build/lib.linux-x86_64-2.7/pysqlite2/test
          copying lib/test/dbapi.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
          copying lib/test/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
          copying lib/test/factory.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
          copying lib/test/hooks.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
          copying lib/test/py25tests.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
          copying lib/test/regression.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
          copying lib/test/transactions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
          copying lib/test/types.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
          copying lib/test/userfunctions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
          copying lib/test/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
          running build_ext
          building 'pysqlite2._sqlite' extension
          creating build/temp.linux-x86_64-2.7
          creating build/temp.linux-x86_64-2.7/src
          gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -DSQLITE_OMIT_LOAD_EXTENSION=1 -I/usr/include/python2.7 -c src/module.c -o build/temp.linux-x86_64-2.7/src/module.o
          unable to execute gcc: No such file or directory
          error: command 'gcc' failed with exit status 1[/COLOR]
          could anyone help please what a library am missing (gcc)?

          Comment

          • nicedad
            Member
            • May 2011
            • 49

            #6
            Additionally, I tried to install it using cygwin unfortunately got this message:

            Code:
            akram@evo-zapus /cygdrive/c/samtools-0.1.9
            $ make
            make[1]: Entering directory `/cygdrive/c/samtools-0.1.9'
            make[2]: Entering directory `/cygdrive/c/samtools-0.1.9'
            make[2]: Nothing to be done for `lib'.
            make[2]: Leaving directory `/cygdrive/c/samtools-0.1.9'
            make[2]: Entering directory `/cygdrive/c/samtools-0.1.9/bcftools'
            make[2]: Nothing to be done for `lib'.
            make[2]: Leaving directory `/cygdrive/c/samtools-0.1.9/bcftools'
            make[2]: Entering directory `/cygdrive/c/samtools-0.1.9/misc'
            make[2]: Nothing to be done for `lib'.
            make[2]: Leaving directory `/cygdrive/c/samtools-0.1.9/misc'
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_tview.c -o bam_tview.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_maqcns.c -o bam_maqcns.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_plcmd.c -o bam_plcmd.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. sam_view.c -o sam_view.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_rmdup.c -o bam_rmdup.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_rmdupse.c -o bam_rmdupse.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_mate.c -o bam_mate.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_stat.c -o bam_stat.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam_color.c -o bam_color.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bamtk.c -o bamtk.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. kaln.c -o kaln.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. bam2bcf.c -o bam2bcf.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. errmod.c -o errmod.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I. sample.c -o sample.o
            gcc -I/usr/include/ncurses -o samtools bam_tview.o bam_maqcns.o bam_plcmd.o sam_view.o   bam_rmdup.o bam_rmdupse.o bam_mate.o bam_stat.o bam_color.o     bamtk.o kaln.o bam2bcf.o errmod.o sample.o libbam.a -lm  -lcurses  -lz -Lbcftools -lbcf
            make[1]: Leaving directory `/cygdrive/c/samtools-0.1.9'
            make[1]: Entering directory `/cygdrive/c/samtools-0.1.9/bcftools'
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I.. -I. call1.c -o call1.o
            gcc -c -I/usr/include/ncurses -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -D_CURSES_LIB=1 -Dexpl=exp -Dlogl=log -I.. -I. main.c -o main.o
            gcc -I/usr/include/ncurses -o bcftools call1.o main.o ../kstring.o ../bgzf.o ../knetfile.o -lm  -lz -L. -lbcf
            ./libbcf.a(prob1.o): In function `mc_cal_y':
            /cygdrive/c/samtools-0.1.9/bcftools/prob1.c:275: undefined reference to `_expl'
            collect2: ld returned 1 exit status
            Makefile:34: recipe for target `bcftools' failed
            make[1]: *** [bcftools] Error 1
            make[1]: Leaving directory `/cygdrive/c/samtools-0.1.9/bcftools'
            Makefile:26: recipe for target `all-recur' failed
            make: *** [all-recur] Error 1

            Comment

            • Ivan Castro
              Member
              • Dec 2013
              • 10

              #7
              I got the same problem. This still without some solution?

              Comment

              • sklages
                Senior Member
                • May 2008
                • 628

                #8
                What is "same problem"? With cygwin, suse,..? Errors?

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                  by SEQadmin2



                  Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                  There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                  Today, 05:17 AM
                • GATTACAT
                  Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                  by GATTACAT
                  Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                  07-01-2026, 11:43 AM
                • SEQadmin2
                  Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                  by SEQadmin2


                  I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

                  Here are nine questions we think about, in roughly the order they matter, before...
                  06-18-2026, 07:11 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, Yesterday, 11:05 AM
                0 responses
                7 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-02-2026, 11:08 AM
                0 responses
                28 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 06-30-2026, 05:37 AM
                0 responses
                28 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 06-26-2026, 11:10 AM
                0 responses
                27 views
                0 reactions
                Last Post SEQadmin2  
                Working...