Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • johnny
    Member
    • Dec 2009
    • 15

    BED Tools Tutorial

    Sorry I'm a total beginner in bioinformatics and really need some help.

    I'm on a mac and so far I've managed to install xcode and therefore was able to execute the installation process described here: http://code.google.com/p/bedtools/

    Now I've got the problem that I can't get anything started because I'm lacking the 'terminal' commands. So here I picked an example from the manual:

    ###########################

    5.4.1 Usage and option summary

    Usage: $ bamToBed [OPTIONS] -i <BAM>

    ###########################

    How would on use this command ?

    Thanx a lot in advance!
  • mgogol
    Senior Member
    • Mar 2008
    • 197

    #2
    Do you have data in .bam format?

    Comment

    • johnny
      Member
      • Dec 2009
      • 15

      #3
      Yes, but do I have to give the full path to the files or in which directory do I have to place them ?
      Which directory do I have to open in terminal, when I execute a command ?

      Comment

      • mgogol
        Senior Member
        • Mar 2008
        • 197

        #4
        You can either give the full path to the files or work in the same directory as the files. You can call a command from any directory if it's installed somewhere in your PATH.

        Comment

        • johnny
          Member
          • Dec 2009
          • 15

          #5
          I told you I'm an absolute beginner, but finally I've solved the problem.
          When I copied an example command like: $ bamToBed [OPTIONS] -i <BAM> I didn't remove the '$' so I had 2 '$' in the terminal which led to a 'command not known'. But now it works so I'll finally get back to you with some other basic usage questions

          Comment

          • johnny
            Member
            • Dec 2009
            • 15

            #6
            Okay, as proposed here is my next question.
            When I use the coverageBed command, it gives me only the coverage for the specified regions in file b but not of the whole span. E.g. reference file b contains chr1: 1000-2000 , then I only get the mean coverage for this region. How can I get the per base coverage in this region ?

            Comment

            • quinlana
              Senior Member
              • Sep 2008
              • 119

              #7
              Use the -d option for per base coverage. Available in version 2.9 and later.
              Aaron

              Comment

              • johnny
                Member
                • Dec 2009
                • 15

                #8
                -d is what I used. The problem is, if in the reference b file are given e.g. 5 ranges like described before, I only get one value per each range. What I would like to have is for every base in the range. In this case: chr1: 1000-2000 I would expect 1000 lines of output.

                Comment

                • quinlana
                  Senior Member
                  • Sep 2008
                  • 119

                  #9
                  That is odd. Could you post the command you used and the output?
                  Section 5.9.6 of the manual illustrates the way the output should loo.
                  Last edited by quinlana; 09-28-2010, 08:33 AM.

                  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-17-2026, 06:09 AM
                  0 responses
                  24 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 06-09-2026, 11:58 AM
                  0 responses
                  42 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 06-05-2026, 10:09 AM
                  0 responses
                  48 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 06-04-2026, 08:59 AM
                  0 responses
                  49 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...