Biostar Beta. Not for public use.
Converting narrowPeak to bed
2
Entering edit mode
2.4 years ago
Spacebio • 180

Hi all,

I am trying to convert a regular narrowPeak file into a BED file for use with diffBind... any ideas?

Thanks.

narrowPeak BED • 2.5k views
1
Entering edit mode
17 months ago
h.mon 25k
Brazil

Do you really need to convert? narrowPeak already is in bed 6+4 format, see here, here and here.

edit: in case DiffBind if very strict, use this solution:

cut -f 1-6 macs_output.narrowPeak > macs_output.bed

0
Entering edit mode

I tried but it is not working, any other suggestion? Thanks for your help!

0
Entering edit mode

Yes, describe how it is not working. What have you been trying? Errors you got?

0
Entering edit mode

the sample sheet is the more likely problem....the narrowPeak file doesnt need any editing.

0
Entering edit mode

But then how can I obtain the count matrix? For that reason I wanted to convert the narrowPeak to bed because i already established the pipeline in that way. Any suggestion is very appreciated.

1
Entering edit mode
16 months ago
Rory Stark • 510
University of Cambridge, Cancer Researc…

DiffBind supports narrowPeak format directly, Just specify "narrow" as the value for PeakCaller in your samplesheet.

-Rory