Unconfigured Ad

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

    #1

    mergeBed command not found

    I am running bedtools 2.17.0 and using the mergeBed command I get an error that says comand not found

    Code:
     mergeBed -i hgTables.bed > merged.bed
    The mergeBed folder is in the srcdirectory and has Makefile, mergeBed.cpp, mergeBed.h, mergeMain.cpp in it. Thank you.
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    It's not in your PATH then. It's simplest to keep executables in ~/bin or somewhere like that and then just copy things there after you compile them.

    Comment

    • cmccabe
      Senior Member
      • Jul 2012
      • 355

      #3
      So are you saying to put the hgTables.bed in the bin? Where is the executable for bedtools, I though that was the main folder. Thank you.

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        No, put the executables in a folder in your path and keep the bed files where ever they currently are. When you type a command, the list of folders in the $PATH are traversed until the executable is found. Since the mergeBed executable isn't in one of those, you get the error. So, either move it to one of those or change the variable (how to do this depends on your shell, which is likely bash).

        Comment

        • cmccabe
          Senior Member
          • Jul 2012
          • 355

          #5
          So I put the hgTables.bed in the /home/dnascope/bedtools_2.17.0/bin and changed the directory to there. I can see the mergebed executable there, but when I run the command
          Code:
           mergeBed -i hgTables.bed > merge.bed
          the mergeBed command is not found. Thank you for your help.

          I also tried, /home/dnascope/bedtools_2.17.0/bin and changed the directory to there andleaving the hgTables in the Bedtools-2.17-0 folder outside the bin folder with the same result.
          Last edited by cmccabe; 06-14-2014, 07:01 AM.

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #6
            As I said, /home/dnascope/bedtools_2.17.0/bin isn't in your PATH. Very few systems will looks for executables in your current directory (it's good way to shoot yourself in the foot). You could just:
            Code:
            ./mergeBed -i hgTables.bed > merge.bed
            since you're already in the same directory. "./" is just short-hand for "the directory I'm in". If you give the path to an executable when you issue a command, then the system will alternatively just look there (obviously, this requires more typing, which is why moving executables to a directory in the $PATH is normally done.

            Comment

            • cmccabe
              Senior Member
              • Jul 2012
              • 355

              #7
              Thanks that worked. Out of curiosity what is the $PATH of bedtools or is there a way to find it in ubuntu? Thanks

              Comment

              • dpryan
                Devon Ryan
                • Jul 2011
                • 3478

                #8
                $PATH is a variable used by your shell. The actual path of bedtools is where ever you put it (you can use the "find" function should you ever forget). You'll want to get a book on using unix/linux.

                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, Yesterday, 11:13 AM
                0 responses
                21 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, Yesterday, 10:48 AM
                0 responses
                18 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...