Entering edit mode
6.2 years ago
linjc.xmu
▴
30
Deal all, I am using bedtools to produce a bedgraph from bed file. a.bed is:
Chr1 5846 5847 1
Chr1 5851 5852 1
Chr1 5861 5862 2
Then I use:
bedtools genomecov -bg -strand + -i a.bed -scale unscaled -g chrom.size > a.bedgraph
This will change the column 3 into 0. If I use:
bedtools genomecov -bg -strand + -i a.bed -scale 10 -g chrom.size > a.bedgraph
This will change the column 3 into all 10.
bedtools version is 2.27.0
I think there is some problem in it. Can anyone help me? Thanks a lot
I cannot reproduce this. First, you input file has no strand information, so bedtools should throw an error when using
-strand +
. Also,-scale
only acts on column 4. Can you double-check that your input files are ok. Please showhead a.bed
,head a.bedgraph
for both outputs andhead chrom.sizes
.Thanks. head a.bed
head a.bedgraph
head chrom.sizes
Hello linjc.xmu ,
these files looks fine to me (and they have nothing to do with your example in the initial post). So what's your problem with them?
fin swimmer