-
Notifications
You must be signed in to change notification settings - Fork 4
add nf-core style module for assembly_manifest #12
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
Conversation
|
| @@ -0,0 +1,46 @@ | |||
| process GENERATEMANIFEST { | |||
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.
make a name GENERATE_ASSEMBLY_MANIFEST (because we generate manifests for genomes as well with another process)
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.
We now use the suggested new name
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| """ | ||
| assembly_manifest \\ | ||
| --study results \\ |
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 would use ${prefix} insted of results here. It should not be a magic value in script
| @@ -0,0 +1,65 @@ | |||
| # yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json | |||
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.
That file should be re-writtern according to tool's docs
https://github.com/EBI-Metagenomics/assembly_uploader/tree/main
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.
done - please review and see if it looks ok
| @@ -0,0 +1,2 @@ | |||
| Runs,Coverage,Assembler,Version,Filepath,Sample | |||
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.
if data from pipelines_testdata_base_path works - delete that file
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.
deleted
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.
Nearly done! Good job
| val(assembly_study) | ||
|
|
||
| output: | ||
| tuple val(meta), path("${assembly_study}_upload/*.manifest", glob: true) , emit: manifest |
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.
what is glob: true for? maybe we do not need it?
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.
removed
| } | ||
| } | ||
|
|
||
| then { |
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.
Please, check for "PRJ12345" in manifest file and .manifest exists in output folder
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.
done - test is more specific now
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.
Nice! Thank you!
This pull request adds a local module to run
assembly_manifest. Closes issue #3PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).