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

feat: collapse peak p-values in bedtools/merge, reformat with new process #39

Merged
merged 27 commits into from
Dec 1, 2023

Conversation

kelly-sovacool
Copy link
Member

@kelly-sovacool kelly-sovacool commented Dec 1, 2023

Changes

  • new process formatmergedbed to take the output from calling bedtools merge -c 1,5,6,7,8,9 -o count,collapse,collapse,collapse,collapse,collapse on concatenated peak files and format it as a narrow peak file.
    • For each consensus peak, the score/p-value/q-value etc. is kept for the peak with the highest -log10(p-value).
  • Peak p-values are normalized prior to bedtools merge.
  • Bedtools merge now accepts optional CLI args as a second input channel.
  • Now use GNU sort instead of bedtools sort -- more efficient per bedtools docs.

Issues

Related to CCBR/CHAMPAGNE#151

PR Checklist

(Strikethrough any points that are not applicable.)

  • This comment contains a description of changes with justifications, with any relevant issues linked.
  • Write unit tests for any new features, bug fixes, or other code changes.
  • Update docs if there are any API changes.
  • Update CHANGELOG.md with a short description of any user-facing changes and reference the PR number. Guidelines: https://keepachangelog.com/en/1.1.0/

@kelly-sovacool kelly-sovacool self-assigned this Dec 1, 2023
@kelly-sovacool kelly-sovacool merged commit d1cb7d8 into main Dec 1, 2023
21 of 23 checks passed
@kelly-sovacool kelly-sovacool deleted the cons-peak-norm branch December 1, 2023 21:37
@kelly-sovacool kelly-sovacool added this to the 2023w48_1201 milestone Jan 10, 2024
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

Successfully merging this pull request may close these issues.

1 participant