Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • papori
    Senior Member
    • Dec 2010
    • 181

    twoBitToFa: command not found

    Hey, when i try to convert 2bit file to fasta file by using twoBitToFa prog,
    and i get "command not found" message..
    why?
    thanks in advance..
  • dawe
    Senior Member
    • Apr 2009
    • 258

    #2
    Originally posted by papori View Post
    why?
    Either because it is not in your path or because you didn't install it…

    d

    Comment

    • papori
      Senior Member
      • Dec 2010
      • 181

      #3
      what do you mean : it is not in your path..
      where do i have to change?

      Comment

      • papori
        Senior Member
        • Dec 2010
        • 181

        #4
        now the error is :
        bash: ./twoBitToFa: cannot execute binary file

        Comment

        • dawe
          Senior Member
          • Apr 2009
          • 258

          #5
          Originally posted by papori View Post
          what do you mean : it is not in your path..
          where do i have to change?
          the "path" is the set of directories that are "scanned" by default when you need to run an executable. This set is included in the $PATH environmental variable, i.e.

          Code:
          $ echo $PATH
          /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/X11/bin:/opt/local/bin:/Users/dawe/Library/Bioinfo/bin:/usr/local/cuda/bin/:/usr/local/mysql/bin:/usr/local/root/bin
          All you have to do is one of these:
          • place twoBitToFa into a directory included in $PATH
          • add the directory containing twoBitToFa to the $PATH
          • run twoBitToFa specifying the full qualified path (i.e. /directory/where/you/have/twoBitToFa)


          Also, take a look at this

          HTH
          d

          Comment

          • dawe
            Senior Member
            • Apr 2009
            • 258

            #6
            Originally posted by papori View Post
            now the error is :
            bash: ./twoBitToFa: cannot execute binary file
            Mmm... you probably downloaded the binary for a wrong arch/os. check the output of these commands:

            Code:
            $ uname -ps
            $ file twoBitToFa
            They somehow have to match (i.e. Linux x86_64 will match ELF 64-bit for GNU/Linux, Darwin will match Mach-O file type)

            d

            Comment

            • papori
              Senior Member
              • Dec 2010
              • 181

              #7
              sorry, when i am doing:
              echo$PATH
              i get:
              bash: echo/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory

              i was wrong before..

              Comment

              • dawe
                Senior Member
                • Apr 2009
                • 258

                #8
                Code:
                $ echo <SPACE> $PATH

                Comment

                • papori
                  Senior Member
                  • Dec 2010
                  • 181

                  #9
                  Ok, my fault...
                  so my output is:
                  /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

                  So, i copy the twoBitToFa to /usr/sbin.
                  now, when i am doing twoBitToFa hg18.2bit hg18.fa
                  i have this error:
                  bash: /usr/sbin/twoBitToFa: cannot execute binary file

                  Thanks for your patience...

                  Comment

                  • papori
                    Senior Member
                    • Dec 2010
                    • 181

                    #10
                    when i am doing: uname -ps
                    i get: Linux unknown

                    or , when doing: file twoBitToFa
                    i get: twoBitToFa: ERROR: cannot open `twoBitToFa' (No such file or directory)

                    Comment

                    • dawe
                      Senior Member
                      • Apr 2009
                      • 258

                      #11
                      Originally posted by papori View Post
                      Ok, my fault...
                      so my output is:
                      /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

                      So, i copy the twoBitToFa to /usr/sbin.
                      now, when i am doing twoBitToFa hg18.2bit hg18.fa
                      i have this error:
                      bash: /usr/sbin/twoBitToFa: cannot execute binary file

                      Thanks for your patience...
                      I believe you need to study a little bit more about bash and command line interfaces. Take a look at the Bash Beginner Guide and, please, practice a little bit.
                      Also, I understand you couldn't know, but /usr/sbin is preferred for system commands available to the super user. You'd better place your custom commands into /usr/local/bin.
                      About the "file" command... again, you need to specify the fully qualified path.
                      Lastly, about the impossibility to execute, you may look at this http://tinyurl.com/2uka6tq :-)

                      d

                      Comment

                      • salturki
                        Member
                        • May 2008
                        • 12

                        #12
                        I got same issue but thanks for dawe's answers I solved it and thought the solution may benefit someone later.

                        All you need is just download the right version and change the file permissions

                        first download the right version for your machine from this link (Mac i386 or PPC or Linux 32 or 64)




                        then go to the directory where you downloaded the file in the terminal and write:

                        chmod 755 twoBitToFa

                        this will make twoBitToFa file executable.

                        Comment

                        Latest Articles

                        Collapse

                        • 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
                        • SEQadmin2
                          From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                          by SEQadmin2


                          Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                          The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                          ...
                          06-02-2026, 10:05 AM

                        ad_right_rmr

                        Collapse

                        News

                        Collapse

                        Topics Statistics Last Post
                        Started by SEQadmin2, 06-26-2026, 11:10 AM
                        0 responses
                        12 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 06-17-2026, 06:09 AM
                        0 responses
                        46 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 06-09-2026, 11:58 AM
                        0 responses
                        106 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 06-05-2026, 10:09 AM
                        0 responses
                        125 views
                        0 reactions
                        Last Post SEQadmin2  
                        Working...