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

broad option #1

Open
WardDeb opened this issue Sep 28, 2024 · 1 comment
Open

broad option #1

WardDeb opened this issue Sep 28, 2024 · 1 comment

Comments

@WardDeb
Copy link

WardDeb commented Sep 28, 2024

Hi,

Thanks for the package, it's quite nice !
Is there an option to set peak calling to broad ?

Cheers,

WardDeb

@jrboyd
Copy link
Contributor

jrboyd commented Sep 30, 2024

Hi WardDeb,
This not directly supported, but there are a couple ways you could accomplish what you want.

One would be to edit the script file that peaksat uses to run macs2. You can locate the script file from R easily with:
system.file(package = "peaksat", "extdata/run_subsample_peak.sh", mustWork = TRUE)

There are 2 lines in that file that define macs2 commands and you'll need to edit both of them. Search for "callpeak" to locate them and add the --broad flag there. You can add any other broad peak related parameters you want too.

Note that if you reinstall peaksat or update you'll lose these changes.

You could also clone/fork peaksat if you're comfortable with git and installing R packages; then make these same changes for a more robust solution.

Keep in mind that beyond saturation the peak number will start going down as nearby peaks get merged together more and more. This happens with narrowPeak already but I expect will be more severe with broadPeak. You may want to consider looking at peak widths instead with peaksat::load_widths.

I'm glad you find the package useful,
-Joe

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