Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dphansti
    Member
    • May 2011
    • 28

    #1

    problems with bedtools mapBed

    I am trying to use mapBed but I am running into a problem that I can illustrate with the examples below. I am using this testfile.

    >cat test.bed
    chr1 100000 109000
    chr2 100000 109000
    chr3 100000 109000
    chr4 100000 109000
    chr5 100000 109000
    chr6 100000 109000
    chr7 100000 109000
    chr8 100000 109000
    chr9 100000 109000
    chr10 100000 109000
    chr11 100000 109000
    chr12 100000 109000
    chr13 100000 109000
    chr14 100000 109000
    chr15 100000 109000
    chr16 100000 109000
    chr17 100000 109000
    chr18 100000 109000
    chr19 100000 109000
    chr20 100000 109000
    chr21 100000 109000
    chr22 100000 109000

    I am querying that against a bedgraph file that I downloaded and sorted from UCSC genome browser. I can't show the whole file but I can show you how it is sorted.

    >cat wgEncodeSydhHistoneK562bH3k4me3bUcdSig.bedgraph.noM | awk '{print $1}' | uniq
    chr1
    chr2
    chr3
    chr4
    chr5
    chr6
    chr7
    chr8
    chr9
    chr10
    chr11
    chr12
    chr13
    chr14
    chr15
    chr16
    chr17
    chr18
    chr19
    chr20
    chr21
    chr22
    chrX

    When I run the command...

    >mapBed -c 3 -o sum -a test.bed -b wgEncodeSydhHistoneK562H3k9acbUcdSig.bedgraph.noM

    I get...

    chr1 100000 109000 1584710
    chr2 100000 109000 6965660
    chr3 100000 109000 4067179
    chr4 100000 109000 3997623
    chr5 100000 109000 22672757
    chr6 100000 109000 100786
    chr7 100000 109000 13187590
    chr8 100000 109000 .
    chr9 100000 109000 5536045
    chr10 100000 109000 .
    chr11 100000 109000 .
    chr12 100000 109000 .
    chr13 100000 109000 .
    chr14 100000 109000 .
    chr15 100000 109000 .
    chr16 100000 109000 .
    chr17 100000 109000 .
    chr18 100000 109000 .
    chr19 100000 109000 .
    chr20 100000 109000 .
    chr21 100000 109000 .
    chr22 100000 109000 .

    It is fine that I dont get anything for chr8. I checked that one and there is no coverage in that region. But for the later chromosomes (10 and on) I should be seeing a signal. Can anyone explain why this is happening or what I can do to fix it? mapBed says...

    "Notes:
    (1) Both input files must be sorted by chrom, then start."

    Are my files sorted wrong? Thanks so much.
    Doug
    www.sharedproteomics.com
  • ildem
    Junior Member
    • Jan 2015
    • 5

    #2
    column

    Hi Doug,

    I know its a super old post, but i came across it, since i have the same problem.

    Though i can see from your command that you used -c 3 for a bedgraph file, it should be -c 4 (4th column is the score in bedgraph).

    My problem is, i am in a similar situation and mapBed is assigning 0's to coordinates that i know are non-zero!

    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, 10-15-2026, 10:52 AM
    0 responses
    23 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    27 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-13-2026, 09:56 AM
    0 responses
    23 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-09-2026, 11:14 AM
    0 responses
    28 views
    0 reactions
    Last Post SEQadmin2  
    Working...