Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use consensusSeeker for broad peak from macs2? #11

Open
xiasijian opened this issue Oct 31, 2024 · 3 comments
Open

Can I use consensusSeeker for broad peak from macs2? #11

xiasijian opened this issue Oct 31, 2024 · 3 comments

Comments

@xiasijian
Copy link

How can I import broad peak into R using consensusSeekeR?
image

@adeschen
Copy link
Contributor

Hi Sijian Xia,

As the broad peak GRanges object has the same fields than the narrow peak GRanges, you should be able to use the broad peak Granges as input to the narrowPeaks parameter instead of a narrow peak GRanges. You will still need to add a specific row name information to the GRanges as described in the vignette. You will also need the corresponding peak parameter.

Best,
Astrid

@xiasijian
Copy link
Author

Hi Astrid,
Thanks for your reply. The difference between narrow peaks and broad peak may be in the column"peak". In broad peak, the value in broad peak is negative. In your package, is negative value support? right?

@adeschen
Copy link
Contributor

adeschen commented Nov 1, 2024

Hi Sijian Xia,

What is the definition of the peak column for a broad peak?

The peak definition for the narrowPeak format is the position of the summit relative to peak start. In presence of negative peak value, the summit would be located outside of the peak region. The consensusSeekeR package has not been developed/tested to support this case. However, it might still work out (with or without side effect).

A safer approach would be to relocate all peaks to the center of the regions.

Best,
Astrid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants