Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • samtools-1.2 re-header command

    I downloaded the samtools-1.2 zip, unzip, and did make: I tried using the reheader command that used to work but am getting the below error. Do I still need the sudo apt-get install of samtools, it would appear that I do. Thank you .

    Code:
     cmccabe/C2F8EFBFF8EFAFB9/LCH pool I 090215/IonXpress_008_150902.bam | sed '/^@PG/d' | samtools reheader - /media/cmccabe/C2F8EFBFF8EFAFB9/LCH pool I 090215/IonXpress_008_150902.bam > /home/cmccabe/Desktop/ngs_analysis/pool1/IonXpress_008_150902_newheader.bam
    The program 'samtools' is currently not installed. You can install it by typing:
    sudo apt-get install samtools
    samtools-1.2: command not found
    added to path:

    Code:
     echo 'export PATH=$PATH:/home/cmccabe/Desktop/ngs_analysis/samtools-1.2' >> ~/.bashrc
    Last edited by cmccabe; 09-09-2015, 10:59 AM.

  • #2
    Just adding a directory to your PATH does not mean it has the program you will eventually want to run (or that it is set as an executable). Does home/cmccabe/Desktop/ngs_analysis/samtools-1.2 have the samtools program and is it executable is the first thing I would look at.

    Comment


    • #3
      The samtools exe is in that directory and should be executable. Maybe

      Code:
      echo 'export PATH=PATH=/home/cmccabe/Desktop/ngs_analysis/samtools-1.2:$PATH >> ~/.bashrc
      Would help to find and use that exe? Thank you .

      Comment


      • #4
        Before you get into piping multiple set of commands together make sure that the individual commands are working properly. One piece of advice: get away from using spaces in file/directory names ASAP. That is just asking for trouble.

        Comment


        • #5
          I know the pipes work as I have used them before. I must have the path wrong as it is not finding the exe in the samtools-1.2 directory, is the below not the correct way to add to path:

          Code:
           echo 'export PATH=PATH=/home/cmccabe/Desktop/ngs_analysis/samtools-1.2:$PATH >> ~/.bashrc
          Thank you .

          Comment


          • #6
            Try removing the second "PATH=". You're also missing a '.

            Comment


            • #7
              Thank you very much, its working .

              Comment

              Latest Articles

              Collapse

              • seqadmin
                Recent Advances in Sequencing Analysis Tools
                by seqadmin


                The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
                05-06-2024, 07:48 AM
              • 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...
                04-22-2024, 07:01 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, Yesterday, 06:35 AM
              0 responses
              15 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 05-09-2024, 02:46 PM
              0 responses
              21 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 05-07-2024, 06:57 AM
              0 responses
              18 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 05-06-2024, 07:17 AM
              0 responses
              19 views
              0 likes
              Last Post seqadmin  
              Working...
              X