Hi all,
I am using macs2 callpeak
, which they have options for both bam
and bed
files, where the bed
file can be generated by bam
file.
Then, do you know which could be difference between the outcome from the two settings?
Hi all,
I am using macs2 callpeak
, which they have options for both bam
and bed
files, where the bed
file can be generated by bam
file.
Then, do you know which could be difference between the outcome from the two settings?
bam
file are just bed
files with extra information, so I would not expect better peak calling with bed
files than bam
files.
For the opposite, it seems that macs2 is using the FLAG
information to only consider paired reads.
As for BAM file, only FLAG field is checked so MACS won’t check mapping quality
It has been asked here before.
But nothing gives you a better answer than your own expriment ! Let us know what you find.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Hi, thank for your response. My data is pair-end sequencing. I tested on 4 modes from
macs2 callpeak
: BAM, BAMPE, BED, BEDPE. Whilemacs2
does not documents on these mode, macs3 does.Peaks returns are already different: BAM: 401512, BAMPE: 304071, BED: 442285, and BEDPE is error. I check the BAM and BED file and it return exactly same coordinates:
I think for BAM setting, they use more information in the flag to check the coordinate.
Then I checked visualization for these 3 modes, I see the BED mode seem to return the most correct regions visibly; while BAMPE mode has the tendency to over extend the peak region:
I am not sure if this is the correct way to perform, but I will go for BED mode as it is visibly better.
It all depends of how confident you are to include reads not paired end in your peak calling.
Discussion between BAM/BAMPE here.
Even if the data "looks" better, does not mean they are more robust. Calling peaks with your BED files will assign non paired reads into your peak calling.
As it is a paired end library, I would advise you to use the BAM files to call your peaks, but the last call is up to you.
that make more sense for me; I would go for BAM file. thank you!