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
                  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-06-2026, 07:41 AM
                0 responses
                23 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 08-03-2026, 10:13 AM
                0 responses
                39 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-31-2026, 02:55 AM
                0 responses
                44 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-24-2026, 12:17 PM
                0 responses
                27 views
                0 reactions
                Last Post SEQadmin2  
                Working...