-
Notifications
You must be signed in to change notification settings - Fork 118
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
Adding peak-calling with Genrich (fix #108) and multi-mapping read analysis #331
Draft
samuelruizperez
wants to merge
19
commits into
nf-core:dev
Choose a base branch
from
samuelruizperez:dev
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
10 tasks
Hi, I am interesting in this PR, I am happy to catch up and make it happens. Just want to make sure is ok for me to take this, or work with somebody to get it done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR:
Addresses issue Addition of peak-calling with Genrich #108:
This version of the pipeline keeps the current pipeline structure the same but adds a separate "branch" for peak-calling with Genrich and its necessary up and downstream processes.
--skip_genrich_sep
tofalse
.NOTES:
This PR uses this version of the nf-core module: Update Genrich module input tuple and argument modules#3720.
Based on DO NOT MERGE yet: Discuss fixes of #164 #168 #169 #301, it would seem that using Genrich's ATAC-seq mode for peak calling would solve:
Adds a parameter
--analyze_multimappers <Int>
to include multimapping reads (secondary alignments) in Genrich's peak calling process (see Genrich#multimap). Currently, it only works with--aligner bowtie2
or--aligner star
, the option with Chromap is a work in progress.For example, setting
--analyze_multimappers 50
, will run Bowtie2 with-k 50
(or STAR with--outFilterMultimapNmax 50 --winAnchorMultimapNmax 100
) and Genrich with-s 50
. This means the aligner will report 50 distinct valid alignments for each read, and Genrich will keep secondary alignments whose scores are within 50 of the best for peak calling.Secondary alignments will still be filtered out with
samtools view -q 1 -F 4 -F 256
before calling peaks with MACS2 unless--keep_multi_map
is set.NOTES:
--analyze_multimappers
with all the test datasets without issues, but when using other experimental data I have found that the allocated resources for Bowtie2 alignment (withLabel:process_high
) might not be enough. Usually, it runs out of time or memory. Perhaps we could set up a conditional label/process resource allocation when this parameter is used with Bowtie2?PR checklist
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).I would really appreciate it if you could take a look at these changes. This is my first attempt at a contribution to nf-core, so please let me know if have made any basic mistakes or if I could do something better to follow the guidelines.
Thanks!
@samuelruizperez