Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cmccabe
    Senior Member
    • Jul 2012
    • 355

    #1

    path error for samtools-1.2 after re-install

    I recently re-install ubuntu and am getting a path error, but things seem like they are added.

    Code:
    cmccabe@HPZ640:~$ echo $PATH
    /home/cmccabe/Desktop/ngs_analysis/samtools-1.2/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
    cmccabe@HPZ640:~$ cd "/home/cmccabe/Desktop/NGS"
    cmccabe@HPZ640:~/Desktop/NGS$ samtools view -H /media/cmccabe/C2F8EFBFF8EFAFB9/pool_I_090215/IonXpress_008_150902.bam | sed '/^@PG/d' | samtools reheader - /media/cmccabe/C2F8EFBFF8EFAFB9/pool_I_090215/IonXpress_008_150902.bam > /home/cmccabe/Desktop/NGS/pool_I_090215/IonXpress_008_150902_newheader.bam
    The program 'samtools' is currently not installed. You can install it by typing:
    The program 'samtools' is currently not installed. You can install it by typing:
    sudo apt-get install samtools
    sudo apt-get install samtools
    What am I doing wrong? Thank you .
  • westerman
    Rick Westerman
    • Jun 2008
    • 1104

    #2
    My samtools is in .../samtools-1.2/bin ... you do not have the 'bin' path in your path thus I suspect that is your problem. Do an

    ls /home/cmccabe/Desktop/ngs_analysis/samtools-1.2/

    And see what you have there. Then a

    ls /home/cmccabe/Desktop/ngs_analysis/samtools-1.2/bin

    And see what is there.

    Comment

    • cmccabe
      Senior Member
      • Jul 2012
      • 355

      #3
      I do not have a /bin but added the path of where all the binaries are. I am getting a permission denied error and I'm not sure why. Thank you .

      Code:
      cmccabe@HPZ640:~$ echo $PATH
      /home/cmccabe/Desktop/NGS/samtools-1.2:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
      cmccabe@HPZ640:~$ ls /home/cmccabe/Desktop/NGS/samtools-1.2/
      AUTHORS          bam_md.c            bam_tview_html.c  padding.o
      bam2bcf.c        bam_md.o            bam_tview_html.o  phase.c
      bam2bcf.h        bam.o               bam_tview.o       phase.o
      bam2bcf_indel.c  bam_plbuf.c         bedcov.c          README
      bam2bcf_indel.o  bam_plbuf.h         bedcov.o          sam.c
      bam2bcf.o        bam_plbuf.o         bedidx.c          sam.h
      bam2depth.c      bam_plcmd.c         bedidx.o          sam_header.c
      bam2depth.o      bam_plcmd.o         ChangeLog.old     sam_header.h
      bam_aux.c        bam_reheader.c      cut_target.c      sam_header.o
      bam_aux.o        bam_reheader.o      cut_target.o      sam.o
      bam.c            bam_rmdup.c         errmod.c          sample.c
      bam_cat.c        bam_rmdup.o         errmod.h          sample.h
      bam_cat.o        bam_rmdupse.c       errmod.o          sample.o
      bam_color.c      bam_rmdupse.o       examples          samtools
      bam_color.o      bamshuf.c           faidx.c           samtools.1
      bam_endian.h     bamshuf.o           faidx.o           samtools.h
      bam_flags.c      bam_sort.c          htslib-1.2.1      sam_view.c
      bam_flags.o      bam_sort.o          INSTALL           sam_view.o
      bam.h            bam_split.c         kprobaln.c        stats.c
      bam_import.c     bam_split.o         kprobaln.h        stats_isize.c
      bam_import.o     bam_stat.c          kprobaln.o        stats_isize.h
      bam_index.c      bam_stat.o          libbam.a          stats_isize.o
      bam_index.o      bamtk.c             LICENSE           stats.o
      bam_lpileup.c    bamtk.o             Makefile          test
      bam_lpileup.h    bam_tview.c         Makefile.mingw    version.h
      bam_lpileup.o    bam_tview_curses.c  misc              win32
      bam_mate.c       bam_tview_curses.o  NEWS
      bam_mate.o       bam_tview.h         padding.c
      cmccabe@HPZ640:~$ ls /home/cmccabe/Desktop/NGS/samtools-1.2/bin
      ls: cannot access /home/cmccabe/Desktop/NGS/samtools-1.2/bin: No such file or directory
      cmccabe@HPZ640:~$ cd "/home/cmccabe/Desktop/NGS"
      cmccabe@HPZ640:~/Desktop/NGS$ samtools view -H /media/cmccabe/C2F8EFBFF8EFAFB9/pool_I_090215/IonXpress_008_150902.bam | sed '/^@PG/d' | samtools reheader - /media/cmccabe/C2F8EFBFF8EFAFB9/pool_I_090215/IonXpress_008_150902.bam > /home/cmccabe/Desktop/NGS/pool_I_090215/IonXpress_008_150902_newheader.bam
      [B]bash: /home/cmccabe/Desktop/NGS/samtools-1.2/samtools: Permission denied
      bash: /home/cmccabe/Desktop/NGS/samtools-1.2/samtools: Permission denied
      [/B]
      EDIT: forgot to do make install, it's working now. Thank you
      Last edited by cmccabe; 09-15-2015, 10:25 AM.

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
        by SEQadmin2



        Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

        Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
        ...
        10-14-2026, 09:55 AM
      • SEQadmin2
        New Genomics Technologies Take Aim at Long-Standing Limits
        by SEQadmin2


        Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

        We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
        ...
        09-28-2026, 10:25 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 10-22-2026, 11:13 AM
      0 responses
      24 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 10:48 AM
      0 responses
      20 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      36 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      42 views
      0 reactions
      Last Post SEQadmin2  
      Working...