Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error with BEDTools

    Dear all,
    I want your help!
    I want to use bedtools to calculate the overlap between two bed format files.It recorded chromosome,startposition and endposition informations.
    When i run bedtools, there was no error indicated and no results displayed. But i'm sure overlaps exist!
    Maybe bedtools restricted the file size?
    I feel confused. Can you kindly help me?

  • #2
    What is the command you used?
    How do the files look like?

    Comment


    • #3
      Originally posted by Jetse View Post
      What is the command you used?
      How do the files look like?
      I used bedtools intersect -a A.bed -b.B.bed
      The first few lines are as follows,
      Click image for larger version

Name:	A.png
Views:	1
Size:	10.7 KB
ID:	304292

      Click image for larger version

Name:	B.png
Views:	1
Size:	13.5 KB
ID:	304293

      Comment


      • #4
        What is your output when you use the command:
        Code:
        bedtools intersect -a A.bed -b B.bed -wao | less
        Do you see a lot of output, all with a zero at the end? (this means they don't have overlaps)

        Comment


        • #5
          Originally posted by Jetse View Post
          What is your output when you use the command:
          Code:
          bedtools intersect -a A.bed -b B.bed -wao | less
          Do you see a lot of output, all with a zero at the end? (this means they don't have overlaps)
          There was nothing even zero.
          But it works when i write some data in new files to test that.
          Is it necessary to sort my data?

          Comment


          • #6
            It could be your computer ran out of memory, then sorting would solve your problem.

            From the manual:
            Note
            If you are trying to intersect very large files and are having trouble with excessive memory usage, please presort your data by chromosome and then by start position (e.g., sort k1,1 -k2,2n in.bed > in.sorted.bed for BED files) and then use the -sorted option. This invokes a memory-efficient algorithm designed for large files.

            Comment


            • #7
              Originally posted by Jetse View Post
              It could be your computer ran out of memory, then sorting would solve your problem.

              From the manual:
              I have tried it,but it doesn't work.
              Any other suggestions?

              Comment


              • #8
                Originally posted by Jetse View Post
                It could be your computer ran out of memory, then sorting would solve your problem.

                From the manual:
                It has been resolved.Thank you!

                Comment


                • #9
                  How did you solve it?
                  So other people who find this thread with the same problem can try your solution too...

                  Comment


                  • #10
                    Originally posted by Jetse View Post
                    How did you solve it?
                    So other people who find this thread with the same problem can try your solution too...

                    It is due to file format error caused by newline character.
                    And your suggestions are also really important!

                    Comment

                    Latest Articles

                    Collapse

                    • seqadmin
                      Current Approaches to Protein Sequencing
                      by seqadmin


                      Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
                      04-04-2024, 04:25 PM
                    • seqadmin
                      Strategies for Sequencing Challenging Samples
                      by seqadmin


                      Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
                      03-22-2024, 06:39 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by seqadmin, 04-11-2024, 12:08 PM
                    0 responses
                    27 views
                    0 likes
                    Last Post seqadmin  
                    Started by seqadmin, 04-10-2024, 10:19 PM
                    0 responses
                    31 views
                    0 likes
                    Last Post seqadmin  
                    Started by seqadmin, 04-10-2024, 09:21 AM
                    0 responses
                    27 views
                    0 likes
                    Last Post seqadmin  
                    Started by seqadmin, 04-04-2024, 09:00 AM
                    0 responses
                    52 views
                    0 likes
                    Last Post seqadmin  
                    Working...
                    X