Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nimrod337
    Member
    • Jun 2013
    • 22

    #1

    Expected bowtie2 to be in same directory with bowtie2-align

    Okay, sorry if this is a little newbish, but I cannot seem to get bowtie2 to run on my mac OS terminal for the life of me. When I run the 'bowtie2' command I get the error "Expected bowtie2 to be in same directory with bowtie2-align"

    I can see that this is in fact true. In the unzipped bowtie2 folder I see bowtie2*, bowtie2-build*, and bowtie2-inspect*

    I saw someone had this problem in a different thread and the person resolved the issue by finding the correct paths to bowtie2 and bowtie2-align by using the

    $which bowtie2
    $which bowtie2-align

    However, this is where I am stuck. when I run the "which command in the terminal, it just brings up a new $ line. It doesn't print any path... This is the same for samtools (which I have been able to run successfully already). This problem is essentially impossible to google, because the word "which" is almost exclusively ignored by the search engine.
    the $which command works perfectly fine for normal executables such as mkdir, touch, et cetera...

    On a related note, I have installed blast+ so I can make blast databases, and perform blast searches locally, and it installs to the usr/bin/ncbi without me even moving it, or anything. This differs greatly from the other programs that I just download the zipped file from sourceforge, unzip, and make in terminal.

    I know the second step in a lot of these bioinformatic programs is to add them to the $PATH, but I've never been too clear on what that is, or how it's done (I've honestly tried to do some reading on that issue, and all of it is either super vague, or just skips past the part I am not clear on.) If anyone has some literature or links that can explain this portion of UNIX command line as if I was 5 years old, I would be forever grateful.
    There seems to be a large gap in the available information from what UNIX command line is, and how to actually download source files, and compile them in a way that is helpful, and somewhat futureproof. If anyone knows of a good book, or wiki that sort of starts from the ABSOLUTE bottom, and goes all the way up to fancy bioinformatics, I would be forever grateful.

    Thanks so much, this forum is a real lifesaver sometimes!
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Once you download the precompiled binary zip file OS X should have uncompressed it once you double clicked on the file.

    At this point you can move the "bowtie2-2.2.5" directory to a location you want (optional). Then you should be able to run bowtie2 by providing

    Code:
    $ /path_to/bowtie2-2.2.5/bowtie2
    If you are inside the bowtie2-2.2.5 directory then doing the following should work.

    Code:
    $ ./bowtie2 -h
    There is a great basic unix tutorial for biologists at Korf lab site: http://korflab.ucdavis.edu/Unix_and_...ent.html#part1

    BTW: Did you get the OS X binary from this link: http://sourceforge.net/projects/bowt...owtie2/2.2.5/?

    Comment

    • nimrod337
      Member
      • Jun 2013
      • 22

      #3
      Thanks for your reply! That is exactly where I downloaded the source file from. I have unzipped and moved it into my "bioinformatics/programs" folder. I am currently in the directory where the bowtie2 executable is, and that is when I get that error. I don't know if it's specific to bowtie2 because I was able to run bowtie and BWA and Samtools without incident... I still don't like that I can't see the path by using "$which"...

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        If you are in the directory where the bowtie2 executables are then the second command above should work. Does this not print help text to screen?

        Code:
        $ ./bowtie2 -h
        Apple does things differently (I have not found how to force the database update for "which" as yet) compared to "which" on linux.

        If you want to find files you can use mdfind command (which should generate which equivalent output).

        Code:
        $ mdfind "kMDItemDisplayName == bowtie2"
        
        $ mdfind -name bowtie2
        Second option will generate a list of all objects that have bowtie2 somewhere.

        It is possible that you have bowtie2 in some other path on the system that is being executed preferentially than the one in the directory you are in.
        Last edited by GenoMax; 04-11-2015, 01:42 PM.

        Comment

        • GenoMax
          Senior Member
          • Feb 2008
          • 7142

          #5
          You could also try this: https://coderwall.com/p/eexczq/updat...-back-updatedb and then use the locate command as an option.

          At least for me, locate does not find bowtie2 after the database upgrade (OS X yosemite). YMMV.

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
            by SEQadmin2



            CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

            Despite this, “CRISPR helped turn genome editing from a specialized technique into
            ...
            07-31-2026, 11:01 AM
          • SEQadmin2
            Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
            by SEQadmin2


            Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

            The systematic characterization of the human proteome has
            ...
            07-20-2026, 11:48 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 08-11-2026, 10:35 AM
          0 responses
          10 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 08-06-2026, 07:41 AM
          0 responses
          29 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 08-03-2026, 10:13 AM
          0 responses
          48 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-31-2026, 02:55 AM
          0 responses
          48 views
          0 reactions
          Last Post SEQadmin2  
          Working...