-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add Unzipping deeparg db option #320
Conversation
This PR is against the
|
|
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.
I tested:
- Running with autodownload – ❌ as expected because server down
- Running with supplying a Zenodo downloaded ZIP – ✔️
- Running with an uncompressed database – ✔️
Note: The ZIP file is a bit annoying, because it contains another folder (which is actually our required input) plus irrelevant MacOS system files. But it runs smoothly now with the pipeline.
|
||
if ( file(params.arg_deeparg_data).getExtension() == "zip") { | ||
UNZIP( [ [id: "deepargdb"], params.arg_deeparg_data ] ) | ||
ch_deeparg_db = UNZIP.out.unzipped_archive.map{meta, db -> [db]} |
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.
ch_deeparg_db = UNZIP.out.unzipped_archive.map{meta, db -> [db]} | |
ch_deeparg_db = UNZIP.out.unzipped_archive.map{meta, db -> db} | |
.flatMap { it -> [ it + "/deeparg"] } |
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.
The Zip file on Zenodo is a bit annoying because it contains a subfolder /deeparg
which is the actual input we want. Hence the .flatMap
line.
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.
Hmm I don't like that solution in case someone has made their own zip in the correct manner... So appending that may not always work... I guess we need to make update the module to find a file within it like is done in other modules like bwa/bowtie2
Co-authored-by: Jasmin Frangenberg <73216762+jasmezz@users.noreply.github.com>
Co-authored-by: Jasmin Frangenberg <73216762+jasmezz@users.noreply.github.com>
@nf-core-bot fix linting |
Closing as tool should deal with does this now itself |
Needs testing! DeepARGi sn't working on my laptop atm for reasons unknown to me...
Please test:
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).