-
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
Use staged blacklist file in makeGenomeFilter #47
Conversation
Dev > Master for v1.0.0 release
Add Zenodo doi
Create an empty channel for blacklist when params.blacklist is false.
@@ -461,7 +464,7 @@ process makeGenomeFilter { | |||
genome_sizes_mrep_bigwig | |||
|
|||
script: | |||
blacklist_filter = params.blacklist ? "sortBed -i ${params.blacklist} -g ${fasta}.sizes | complementBed -i stdin -g ${fasta}.sizes" : "awk '{print \$1, '0' , \$2}' OFS='\t' ${fasta}.sizes" | |||
blacklist_filter = params.blacklist ? "sortBed -i ${blacklist} -g ${fasta}.sizes | complementBed -i stdin -g ${fasta}.sizes" : "awk '{print \$1, '0' , \$2}' OFS='\t' ${fasta}.sizes" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blacklist_filter = params.blacklist ? "sortBed -i ${blacklist} -g ${fasta}.sizes | complementBed -i stdin -g ${fasta}.sizes" : "awk '{print \$1, '0' , \$2}' OFS='\t' ${fasta}.sizes" | |
blacklist_filter = params.blacklist ? "sortBed -i $blacklist -g ${fasta}.sizes | complementBed -i stdin -g ${fasta}.sizes" : "awk '{print \$1, '0' , \$2}' OFS='\t' ${fasta}.sizes" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fine without the '{}'.
Thanks @jinmingda . This is perfect. Im quite impressed with your level of knowledge of Nextflow by the way 😎 Would you mind also adding a line to |
Ill make the changes in to get the PR merged 👍 |
Many thanks to contributing to nf-core/atacseq!
Please fill in the appropriate checklist below (delete whatever is not relevant). These are the most common things requested on pull requests (PRs).
PR checklist
nextflow run . -profile test,docker
).nf-core lint .
).docs
is updatedCHANGELOG.md
is updatedREADME.md
is updatedLearn more about contributing: https://github.com/nf-core/atacseq/tree/master/.github/CONTRIBUTING.md
Description
The channel containing a staged blacklist file is not added to the process
makeGenomeFilter
. Usingparams.blacklist
will cause an error when the pipeline is running on an environment where workers don't have access to the files stored in head node (like AWS Batch). This PR attempts to solve this problem by using the staged blacklist file from the channel input, which has been created already.