Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qnc
    Member
    • Jun 2010
    • 51

    #16
    Thanks guys having a bit of a mental block here..

    Am I suposed to:

    Create the following folders inside my BEDTools-v2.13.3/bin folder:
    /usr/local/bin/

    and then place whole folders with *.cpp , *.h and Makefiles into that?

    Will the commands work when I type then then?

    Comment

    • GenoMax
      Senior Member
      • Feb 2008
      • 7142

      #17
      Noooooooooo

      Change to the directory where you have the BED files you want to manipulate with BEDTools.

      Then use the full path to your BEDTools executables (/path_to/BEDTools-v2.13.3/bin) as I had shown in the example in my previous post (#12 in this thread).

      See this link for explanation of UNIX filesystem paths: http://ultra.pr.erau.edu/~jaffem/tut...tem_basics.htm

      Originally posted by qnc View Post
      Thanks guys having a bit of a mental block here..

      Am I suposed to:

      Create the following folders inside my BEDTools-v2.13.3/bin folder:
      /usr/local/bin/

      and then place whole folders with *.cpp , *.h and Makefiles into that?

      Will the commands work when I type then then?
      Last edited by GenoMax; 10-21-2011, 06:05 AM.

      Comment

      • qnc
        Member
        • Jun 2010
        • 51

        #18
        That BEDTools-v2.13.3/bin is empty on my system does that mean it wasn't unpacked/complied properly?

        Comment

        • qnc
          Member
          • Jun 2010
          • 51

          #19
          Originally posted by dpryan View Post
          I don't think /usr/local/bin exists under OSX by default, so you may have to create it (e.g. "sudo mkdir -p /usr/local/bin") or copy the files to a different directory in your PATH. You didn't destroy anything when you forgot the cp command, you just confused sudo. BTW, you may want to ensure that /usr/local/bin is actually in your PATH (type "echo $PATH" and see if it's listed), otherwise make sure to add it.
          DO I create this in the BEDTools folder?

          i.e. cd to BEDTool then "sudo mkdir -p /usr/local/bin"

          And then its an empty folder do I have to put something in it?

          Sorry will get this eventually

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #20
            Can you look in the "src" directory to see if the files remain there? It is possible that compiled files were not moved to the "bin" directory.


            Originally posted by qnc View Post
            That BEDTools-v2.13.3/bin is empty on my system does that mean it wasn't unpacked/complied properly?
            Last edited by GenoMax; 10-21-2011, 07:13 AM.

            Comment

            • qnc
              Member
              • Jun 2010
              • 51

              #21
              Thanks for helping me trouble shoot this guys I really do appreciate this.

              GenoMax I am using:

              Mac OSX 10.6.8
              Terminal version 2.1.2 (273.1)

              I used the commands as they gave in
              BEDTools-User-Manual.v4.pdf page 17


              $ curl http://bedtools.googlecode.com/files/BEDTools.<version>.tar.gz > BEDTools.tar.gz $ tar -zxvf BEDTools.tar.gz
              $ cd BEDTools
              $ make clean
              $ make all
              $ sudo cp bin/* /usr/local/bin/


              Should I run it again and see if there are any error message which might help get to the bottom of this?

              Comment

              • qnc
                Member
                • Jun 2010
                • 51

                #22
                Here is what the src folder looks like

                Comment

                • dpryan
                  Devon Ryan
                  • Jul 2011
                  • 3478

                  #23
                  I can confirm that the standard Makefile copies things properly to the bin/ directory on OSX (just tried it on the laptop).
                  This is the directory containing the actual compiled programs (the *.cpp and *.h files are source code):


                  You can either copy those somewhere or just execute them where they are (either will work). If running through the commands provided in your most recent post (well, the one prior to the post with the image) doesn't produce an error message then things should be installed and ready to use. BTW, if you happen to have a friend/colleague nearby that's familiar with Linux then he/she should be able to help you as well.

                  Comment

                  • qnc
                    Member
                    • Jun 2010
                    • 51

                    #24
                    Ok will retry the complie and let you know.

                    If I get any errors I'll post them up here.

                    Comment

                    • qnc
                      Member
                      • Jun 2010
                      • 51

                      #25
                      Ok it seems to have worked... but is still not working?

                      here is the bin now with the programs and two small bed files (less.bed & more.bed) just to see if it is working but I get the following return on the command. I have cd to the bin folder and can see the files/programs with a ls command

                      $ intersectBed -a less.bed -b more.bed
                      -bash: intersectBed: command not found



                      What is going wrong!!

                      Comment

                      • GenoMax
                        Senior Member
                        • Feb 2008
                        • 7142

                        #26
                        Issue the command like this:

                        $./intersectBed -a ./less.bed -b ./more.bed

                        You need to tell the shell to look for the program in the current directory.


                        Originally posted by qnc View Post
                        Ok it seems to have worked... but is still not working?

                        here is the bin now with the programs and two small bed files (less.bed & more.bed) just to see if it is working but I get the following return on the command. I have cd to the bin folder and can see the files/programs with a ls command

                        $ intersectBed -a less.bed -b more.bed
                        -bash: intersectBed: command not found



                        What is going wrong!!

                        Comment

                        • qnc
                          Member
                          • Jun 2010
                          • 51

                          #27
                          Awesome!!!


                          $ ./intersectBed -a less.bed -b more.bed
                          chr6 112879106 112879267 D6S474 1000 + 112879106 1chr69267119553773,0,0, 119553939 D6S287-L-5-18 1000 + 11955377chr6 124656623 124656633 SNP_A-1677306 1000 + 124656628 124656628 255,0,0

                          We have lift off.

                          Thanks guys... amazing got there in the end and I learned a lot thank you.

                          No doubt I'll have more questions but for now...

                          Thank you!

                          Comment

                          • GenoMax
                            Senior Member
                            • Feb 2008
                            • 7142

                            #28
                            Excellent

                            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
                            • SEQadmin2
                              Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                              by SEQadmin2



                              Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                              ...
                              07-09-2026, 11:10 AM

                            ad_right_rmr

                            Collapse

                            News

                            Collapse

                            Topics Statistics Last Post
                            Started by SEQadmin2, 08-03-2026, 10:13 AM
                            0 responses
                            15 views
                            0 reactions
                            Last Post SEQadmin2  
                            Started by SEQadmin2, 07-31-2026, 02:55 AM
                            0 responses
                            32 views
                            0 reactions
                            Last Post SEQadmin2  
                            Started by SEQadmin2, 07-24-2026, 12:17 PM
                            0 responses
                            23 views
                            0 reactions
                            Last Post SEQadmin2  
                            Started by SEQadmin2, 07-23-2026, 11:41 AM
                            0 responses
                            21 views
                            0 reactions
                            Last Post SEQadmin2  
                            Working...