How to annotate a MACS2 peak output file that is in tabular format?
1
0
Entering edit mode
21 months ago
Jen ▴ 80

I am fairly new to ChIP-seq analysis. I am using data from someone else and they only have the MACS2 peak file in tabular format. I have annotated peaks previously using MACS2 .bed files using ChIPseeker, but am unsure of how to go about annotating the tabular peak file. Can I convert this into bed somehow? Is there another way I should go about this? The tabular file has the genomic locations, so I'm assuming there is an easy way to go about doing this. Thanks in advance.

Annotating ChIPseq MACS2 • 1.5k views
ADD COMMENT
0
Entering edit mode

Please show an example of that file you have. BED is in fact a tabular format.

ADD REPLY
0
Entering edit mode

enter image description here

ADD REPLY
0
Entering edit mode

I'm just confused because the person provided both .bed and this tabular file for MACS2 for their other samples. Sorry if there is an obvious solution here....

ADD REPLY
3
Entering edit mode
21 months ago
jv ★ 1.8k

BED files are tab-delimited so that's not the real issue here.

You already have all the info you need to convert this to a BED file, but you need to keep in mind that BED files (and bedgraphs too) use a 0-based coordinate system and the stop coordinate is exclusive.

Ultimately the only change you need to make is to subtract 1 from the start position and leave the stop position as is. For example, the first peak in your example here would look like the following in bed format:

chr1 44270098 4427779

For more details on BED file format see https://genome.ucsc.edu/FAQ/FAQformat.html#format1

ADD COMMENT
0
Entering edit mode

Got it. Thanks!

ADD REPLY

Login before adding your answer.

Traffic: 1830 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6